• Anonymous User 12673376

    (@anonymized-12673376)


    Hi !
    Thank for this so useful plugin and thank you for your last answer !
    I need to get the category url link of an event when I list events, something like #_EVENTCATEGORYURL.
    I know #_EVENTCATEGORIES but I need to i,sert the url in a tag.
    Many thanks in advance !
    jd

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

    Perhaps the placeholder #_CATEGORYURL would help you? You can find a complete list of placeholders here: https://wp-events-plugin.com/documentation/placeholders/

    If the placeholder you’re looking is not in the list, You could create your own custom placeholder by following this tutorial: https://wp-events-plugin.com/tutorials/create-a-custom-placeholder-for-event-formatting/

    Thread Starter Anonymous User 12673376

    (@anonymized-12673376)

    Hello,
    Thank you. Actually I need to display #_EVENTCATEGORIES in a event list in order to link the thumbnail to the category.
    That’s what I did, I can display the ul > li > #_CATEGORYURL above the thumbnail width an absolute ul. It works fine !
    Is there any way to :
    1/ display only the main category of an event ? (categorie principale in french) ?
    OR
    2/ reorder or exclude tree (use term queries) : foreach($EM_Event->get_categories() as $EM_Category): in placeholders/categories.php ?
    I tried to add something like that but it doesn’t work…
    foreach($EM_Event->get_categories(array(“orderby=”id”)) as $EM_Category):

    I would like tu use “exclude_tree” or “orderby”.
    Many thanks !
    jd

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get the category slug or url of an event’ is closed to new replies.