• Resolved dimekmaurer

    (@dimekmaurer)


    Hello,
    How are you? I hope its good.
    I have a problem with category shortcode. I would like only events from a specific category to be displayed on the website. For this purpose, I put a shortcode:
    [events_list scope = ‘tomorrow’ pagination = 1 category = ‘comercial-video-modeling’] [/ events_list]
    However, it still shows all the events …

    Is it possible to limit the search to a specific category only by adding an attribute to [event_search_form]?

    I will be grateful for your help.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Please make sure that you’re using quotes or single quotes. Sometimes when you copy and paste from code it changes them to a curly quotes like the one from your code. here’s zoomed screenshot of your code: https://take.ms/M0lr2

    Here’s a sample shortcode:

    [events_list scope="tomorrow" category="concert"]<p>#_EVENTLINK will take place at #_LOCATIONLINK on #_EVENTDATES at #_EVENTTIMES</p>[/events_list]

    Thread Starter dimekmaurer

    (@dimekmaurer)

    Okay, it works fine, thank you. How about the limitation [event_search_form]? Is it possible to create a search engine only in specific categories?

    Hello,

    Can you perhaps explain to us more on what you mean by search engine only in specific categories?

    Thread Starter dimekmaurer

    (@dimekmaurer)

    Hello,
    I mean, is it possible to create an event_search_form search engine in which only some categories are selected? And not as it is currently the case, the user chooses in all of them.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    Yes, you can modify categories dropdown part by modifying template events-manager/templates/templates/search/categories.php

    to use templates: https://wp-events-plugin.com/documentation/using-template-files/

    eg. wp-content/themes/Your Theme/plugins/events-manager/templates/search/categories.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘category=’slug-name’ doesn`t work’ is closed to new replies.