• Resolved nsimmons

    (@nsimmons)


    Greetings- really enjoy the plugin. I have read a couple hundred of pages of the support topics and searched but cannot find my answer.

    I have two categories: activities and menu
    When the user clicks on an event with the category activities I would like them to see the single event and then a full calendar below showing all the events that have the activity category (but no other events).
    Similarly when the user clicks on an event with the menu category they would see the single event info and below a full calendar with just the other menu events.

    One option was to enter the full calendar shortcode (with the category selected) at the end of every text entry for the event, however that is going to be cumbersome for the client.

    I am using WP Full calendar as well.

    Is there a way to streamline this?

    Nick

    • This topic was modified 8 years, 4 months ago by nsimmons. Reason: Reworded confusing title
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Nick,

    Glad you’re enjoying the plugin.

    Do you need this for every event? If so, you might be able to automate this by creating a custom single event template that automatically parses the category ID into the full calendar shortcode.

    Thread Starter nsimmons

    (@nsimmons)

    Yes, it would be needed for every event. So I would copy the single event template and parse the category id which would then be used in the full calendar shortcode. Conceptually I understand, however translating this into funtional php will be a stretch for me. I would gladly take any advice.

    Thank you for your help

    Nick

    I’m afraid it’s fairly in-depth. Basically, within you’d need to use something like

    get_term_by('id', $cat_name, EM_TAXONOMY_CATEGORY)

    to get the category ID dynamically.

    Thread Starter nsimmons

    (@nsimmons)

    Caimin_nwl

    Again, thank you for the assistance. I had another thought to accomplish the same end, but I could use your advice again. I installed Advanced Custom Forms to insert the WP FullCalendar shortcode filtered by category. ACF has the option to insert the shortcode in a WYSIWYG using conditions so that a full calendar filtered by X category will show in a single event page with X category. However, the shortcode [fullcalendar category=”X”] will not filter by category (it shows the full calendar with all categories). If I use the OOTB post WYSIWYG then the shortcode filters as intended.
    I have been in contact with the ACF author and he mentioned that the ACF WYSIWYG and the post content editor have different filters. Does the EM look at the $post->post_content to see if there is a shortcode?
    What code might I need to add if I am trying to store a shortcode value as a custom field? I am passing the value through the ‘do_shortcode’ filter and everything works except for the filtering.

    Kind regards

    Nick

    • This reply was modified 8 years, 4 months ago by nsimmons. Reason: misspelling
    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry Im afraid that we are quite limited with regards to custom coding since ACF is not integrate with EM at the moment – https://eventsmanagerpro.com/support-policy/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link single event categories to a full calendar filtered by that category’ is closed to new replies.