• I am editing a tag and adding description information but when going to the url the description is not shown ? I have cleared all caches. (All menu items using the tag is shown)

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support dimned

    (@dimned)

    Hi @ipajen, It looks like the archive page layout that is defined by your theme does not show the description of the tag. You may try to override the files of your theme to add a description of the tag to the layout.

    Thread Starter Jarko Piironen

    (@ipajen)

    @dimned Got this from the theme authors:
    ” It is an archive page but it looks like a custom archive page, which is doing its own thing. For example it has its won mprm-header element for outputting the title within the content. I am not sure what method they are using but the GP Entry Header exists on that template but its empty – by default this would get the archive title and description if it existed.

    Can you check with developer as to how their description should be output ?”

    Thank you

    Plugin Support dimned

    (@dimned)

    Hi @ipajen,
    If you enable the default twenty twenty theme you should be able to see description of the tag on the archive page since there is added get_the_archive_description() in the archive file of the theme. Please try to add get_the_archive_description() to the archive file of your theme.

    Thread Starter Jarko Piironen

    (@ipajen)

    @dimned I got the same not working result with Twenty Twenty-One v1.4 theme

    If i put a static page and use the

    [mprm_categories view=”grid” categ=”” col=”3″ categ_name=”1″ feat_img=”1″ categ_icon=”1″ categ_descr=”1″ desc_length=””]

    Then the description is shown, but if I go to the direct link for example any following urls the description doesn’t show up?

    /menu-tag/biff/
    /menu-ingredient/ananas/
    /menu-category/soppor`

    (Also made a test to make a category (not your plug-in) in WordPress directly category/thai/ and then the description is working good in both themes)

    Thread Starter Jarko Piironen

    (@ipajen)

    @dimned I have tried with the get_the_archive_description() but it dident help?

    Thread Starter Jarko Piironen

    (@ipajen)

    @dimned a update: I tried with Twenty Twenty theme v 1.8 and it showing the description but in the Twenty Twenty-One it doesn’t?

    Thread Starter Jarko Piironen

    (@ipajen)

    @dimned Good news, was Missing a echo for the hook using get_the_archive_description() so the description is shown but
    But I need to use generate_before_content as generate_after_archive_title not working ? Is the title of the tag Custom? As want to put the description after title.

    Plugin Support dimned

    (@dimned)

    Hi @ipajen,
    it looks like you use generatepress theme on your site. I’ve installed it locally and I can see the description of the tag on the archive page without adding any custom code http://prntscr.com/1iqbdns

    Thread Starter Jarko Piironen

    (@ipajen)

    @dimned
    Strange, but I used a hook with following and now it working

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

    (@dimned)

    Hi @ipajen, Thank you for your reply. Do not hesitate to contact us if you have any further questions.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Description not showing for tags’ is closed to new replies.