• Resolved MegaZ

    (@megaz)


    The latest Yoast SEO has a problem with %%category%% snippet not working anymore. All pages return empty string when using this snippet.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support devnihil

    (@devnihil)

    @megaz We attempted to replicate your issue using the current version of Yoast SEO (version 14.4.1) and were unable to.

    Can you please let us know where you are using the %%category%% variable so we can try to recreate the issue?

    Also, can you please confirm you are using the most recent Yoast v14.4.1? You can learn more about updating here: https://kb.yoast.com/kb/how-can-i-update-my-free-plugin/

    Can you confirm you are using WordPress 5.4.2? You can check by clicking on the W in the top left and selecting About. If you need to update, please check with your host provider. Please know that if you are using an older version of WordPress Core you may experience unexpected behavior with Yoast. This guide explains more: https://yoast.com/why-we-dont-support-old-wordpress-versions/
    ?
    ?If you update to the most current version of WordPress and Yoast SEO, does this resolve the issue?

    If the issue is still occurring after confirming both Yoast SEO and WordPress are updated, this may be due to a plugin or theme conflict. Can you try and gather as much information for us as possible? Please perform the following:

    1. Check for conflicts.
    2. Check for JavaScript errors with your console.
    If you find any JavaScript errors related to Yoast SEO or if there is a conflict with a plugin or a theme, you can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.

    Thread Starter MegaZ

    (@megaz)

    Running Yoast 14.4.1 (latest version).

    Under Search Appearance -> Taxonomies, I have SEO title set as “%%category%% %%page%% %%sep%% %%sitename%%”.

    After saving, the result is the following: ” – Site Name”. Page and separator are working fine, only the category title itself isn’t showing up.

    All other snippets are working just fine, only categories is messed up.

    Thread Starter MegaZ

    (@megaz)

    Forgot to add, there are no Javascript errors in the console. WordPress version is 5.4.2.

    Plugin Support devnihil

    (@devnihil)

    @megaz The %%category%% variable is meant to return the categories to which a post belongs. Can you please clarify in what taxonomy type you are trying to use it for, and how that taxonomy is part of a post category?

    Thread Starter MegaZ

    (@megaz)

    OK, I see what the issue is. Well, it used to work before, and now it doesn’t ??

    I changed the variable to the following:
    %%term_title%% %%page%% %%sep%% %%sitename%%

    After I did that, the Category title started working again. Thanks for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘%tegory%% Snippet Not Working’ is closed to new replies.