• Resolved mica123

    (@mica123)


    Hello,

    I hope you will be able to help.

    I created a page called Programmes and put a shortcode for listing events with excerpts. This works fine – no problem. It is just that clicking on an event shows a page with the full description and the map (which is fine too) but the URL shows a link to events rather than programmes. I know that I could add the links to the custom menu – but then the dropdown will show too many links. So I was wondering if there is any way to highlight the Programmes label on the menu when a visitor clicks on an event with the full description? (the same way as it is highlighted when a visitor views the main Programmes page with the eo listing shortcode?

    Many thanks.

    https://www.ads-software.com/extend/plugins/event-organiser/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Mica,

    Its not easy to do because WordPress understands the hierarchy as Post Type archive > Post type page – and reflects this in the menu.

    Seems to me that your ‘Programmes’ page is doing the job of the post type archive page. Maybe it would be better to use that page instead? The settings (General tab) allow you add it to the menu and set its name, as well decide whether past events are included or not.

    Thread Starter mica123

    (@mica123)

    Many thanks, Stephen.
    Yes, I will leave it with the ‘Programmes’ page.

    I have another question; I noticed only recently that you upgraded your Event Organiser – I was still on version 1.5.7. When I upgraded it I found that the format for the single event has changed. So I modified the single-event.php to get my old format back. It looks fine to me but I would be grateful if the following code is still acceptable in your latest version (I prefer to show the full event and I also call the map later on in the code which works well too):

    </header><!– .entry-header –>

    <div class=”entry-content”>
    <!– The content or the description of the event–>
    <?php the_content(); ?>
    <?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”><span>’ . __( ‘Pages:’, ‘eventorganiser’ ) . ‘</span>’, ‘after’ => ‘</div>’ ) ); ?>
    </div><!– .entry-content –>

    Many thanks.

    Plugin Author Stephen Harris

    (@stephenharris)

    Did some of that get swallowed by the forum? Pastebin it instead?

    Please note the comments at the top of the file – don’t make changes to the templates in the plug-in, copy them to your theme. That way you won’t have to keep making the alterations every time you update.

    Thread Starter mica123

    (@mica123)

    No, it did not get swallowed up – I only pasted part of the code – but I have now pasted the whole code into pastebin:
    https://pastebin.com/ptDJTEaZ

    Yes, I created a new single-event.php

    Many thanks.

    Plugin Author Stephen Harris

    (@stephenharris)

    That all looks good.

    R.e. new single page – sorry I misread your original post – thought you had made changes that were lost – hence I wanted to highlight the comments :).

    Thread Starter mica123

    (@mica123)

    Thank you so much! That’s great.
    Just to make sure: I upgraded your EO on my testsite which went fine except for the single-event.php (which I have now corrected and it is fine too). Now I am going to upgrade it on my real site – is there anything else i should be aware of?

    Plugin Author Stephen Harris

    (@stephenharris)

    Nothing but the template changes introduced in 1.7, which you’re aware of ??

    Thread Starter mica123

    (@mica123)

    Many thanks for this! I very much like your EO. I’ll mark this topic as resolved.
    Best wishes.

    Plugin Author Stephen Harris

    (@stephenharris)

    Your welcome, and thank you :).

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Menu link’ is closed to new replies.