Site logo

Archived topic

Desciption now shown on archive

17 replies · Started by Jarko on July 25, 2021

Viewing posts 16–18 of 18

I downlaoded the Plugins .zip and checked the taxonomy-mp_menu_category.php template to find those hooks.
As currently the archive title is being output by the plugins template, so that seemed the most logical place to output it, instead of rehooking in the title and description in the GP templates

Thanks with your info I found the correct one. "mprm_page_template_taxonomy_header" when using a Element I can specify the vegan-option taxonomy only. As PHP snippet I could disable the element part (the archive description would been shown on every taxonomy but In my case I only have it on vegan-option). What's better to use element or snippet? Thanks again, puhh this was to much "programming" for a tester...

add_action('mprm_page_template_taxonomy_header', function() {
    echo get_the_archive_description();
},15);

Thats great!
Hook Element is probably the better place for it go, as you have the Display Rules built in and working :).

This archived topic is closed to new replies.