Support » Plugin: Yoast SEO » Problem with attributes with 2 letters in snippets

  • Resolved jimfek


    Hello, i think i found a small bug , if you use a 2 word attribute in the woocomerce variable it doen’t render the results. It works perfect with one word.

    For example we have the attribute (with 2 words) Publish Year.
    If i place the snippet %%ct_pa_publish-year%% it doesn’t work.
    Althought if i place only one word it works %%ct_pa_year%%

    Is it something i am doing wrong ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne


    Hello @jimfek

    Thanks for using the Yoast SEO plugin.

    I see you are referring to snippet variables for custom taxonomies. I tested what you described and could replicate it. I edited the product attribute slug from publish-year to publish_year to get it to work. Notice that the difference is to use an underscore instead of a hyphen. So using %%ct_pa_publish_year%% should work.

    Plugin Support Maybellyne


    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.