• Resolved Mateo

    (@mateico)


    Is there a way to post a Marker on a page? Or post it in the style of a category?
    I would greatly appreciate your help, and thank you in advance for your time!

Viewing 1 replies (of 1 total)
  • Plugin Author Sven Hofmann

    (@hofmannsven)

    Hi @mateico! You can retrieve the markers on the frontend like any other taxonomy terms in WordPress. Use get_the_terms() to get the terms as an array or get_the_term_list() to get the terms as a formatted list.

    Use it like this in your WordPress template:
    echo get_the_term_list(get_the_ID(), 'marker');

    Make sure to set 'public' to true in the mark_posts_taxonomy_args filter if you also want to enable the archive pages and make the markers public.

    • This reply was modified 3 years, 8 months ago by Sven Hofmann.
    • This reply was modified 3 years, 8 months ago by Sven Hofmann.
Viewing 1 replies (of 1 total)
  • The topic ‘Post a Marker’ is closed to new replies.