• Resolved kerchmcc

    (@kerchmcc)


    I did not set the site up originally so some decisions I’m not sure I understand.. however

    The upcoming events show on a page which is a category page and not a regular page. So it shows with no posting date (good).
    https://traciemcmillan.com/appearances/

    I want a separate page with PAST events. For that I used a short code on a page called Past Events. https://traciemcmillan.com/past-events/
    That page shows with a posting date, which I think is confusing to visitors
    I’d like the past event list to show up without a date.

    PS: I know how to MAKE a category, but not how to make calendar events go into it

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    Is there something in your theme that is causing this? It looks like on “posts” there is always a date but “pages” there is not? We don’t add anything besides the output of the events so that date is not coming from the plugin.

    Also, you are using a shortcode and not just a direct link to the page correct?

    Thread Starter kerchmcc

    (@kerchmcc)

    And you’re right Nick, generally there are only dates on the posts.
    But somehow, on the past events PAGE (using a short code on the page) I get a date.

    I have not been successful putting the short code in the menu. I tried using the plugin Shortcodes in Menus. But it’s not tested on WP 4.2.2 and I also could not get it to work.

    If you have another suggestion, I’d appreciate it.
    Kerch

    Plugin Contributor Nick Young

    (@nickyoung87)

    If you are comfortable with editing the code you could try changing this line:

    https://github.com/pderksen/WP-Google-Calendar-Events/blob/master/google-calendar-events/includes/gce-feed-cpt.php#L43

    It sets GCE up to be used as a post type, you could try changing that to 'page'. It’s a longshot and I am not sure if it will work.

    You could also always use CSS to hide the date:

    #content .post .pretty-date {
    display: none;
    }
    Plugin Contributor Nick Young

    (@nickyoung87)

    I am assuming this got resolved since there has not been a reply here. Please let us know if we can help with anything else.

    Thanks!

    Thread Starter kerchmcc

    (@kerchmcc)

    Nick
    Thanks for the poke. I like to close the loop in case my experience is helpful to others. And I just forgot.

    The display:none was not the fix to the problem but sent me looking in some other directions (so thanks for that)

    Here’s what I learned/how I solved the problem:

    In general, almost all posts carry the “pretty-date”
    The Appearances calendar link in top nav is a catetory .. not a page or post.

    SO
    I added the gcal code to a POST with the category Past Events

    I added ‘past-events’ to category.php

    <?php if(!is_category(array('articles', 'interviews-and-profiles', 'reviews', 'video-media', 'media', 'past-events'))) { ?>
    	<div class="pretty-date"><span>
            <?php the_time('d'); ?></span>
    	<span><?php the_time('M'); ?></span>
    	</div>
    <?php } ?>

    Then I added the CATEGORY of past-events to the menu.

    Good by Pretty Date!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Events in a category or on a page’ is closed to new replies.