Viewing 8 replies - 1 through 8 (of 8 total)
  • This is a list of the custom values available: https://kb.yoast.com/article/146-yoast-wordpress-seo-titles-metas-template-variables

    You may possibly be able to do that with a custom field value:

    %%cf_<custom-field-name>%% Replaced with a posts custom field value

    ~ Kim ~
    Support at Yoast

    Thread Starter MarcusFuto

    (@marcusfuto)

    Thanks a lot for the reply!

    I have tried everything now.

    %%cf_sku%%
    %%cf__sku%%
    %%SKU%%
    %%ct_sku%%
    %%ct__sku%%

    I just can’t get it to work!

    There is just nothing showing at all where I write it.

    What could be the problem?

    Thread Starter MarcusFuto

    (@marcusfuto)

    Hello!

    I managed to get it right in the end.

    I had to put:

    %%cf__sku%%

    and flush the caches. And now it works great! ??

    Hope this helps someone!

    Leavenworth

    (@leavenworth)

    I cannot get cf_ to work. I placed %%cf_manufacturer%% in Post Types tab : Products : Meta description template. In my Product data I added a Custom Field “manufacturer” with the manufacturer name as the value. Only raw code (%%cf_manufacturer%%) appears in the Snippet Editor.

    Not sure if “flush the caches” means browser cache, woocommerce – tools Clear Cache option, or something else. I cleared browser and woo caches.

    Basic Variables work as expected.

    Any clues are appreciated.

    Thread Starter MarcusFuto

    (@marcusfuto)

    I had to do it with two underscores. Don’t know why, but try that. I just do a flush all caches with w3tc.

    try %%cf__manufacturer%%

    I think the seoworkers tool has some caching too, so you have to wait like 30 sec before trying again. 30 seconds is a long time when just waiting for it. So set a timer so u dont try too early ??

    I’m no pro, but I wish you well ??

    Thread Starter MarcusFuto

    (@marcusfuto)

    i think it is the database entry _manufacturer you should put in there. Mine saved SKU like _SKU so thats why I put the two underscores in the end.

    ravimevcha

    (@ravimevcha)

    I have similar problem. I am using %%cf_role%% and %%cf_cmp%% as custom variable for titles. However snippet view does not show actual value. Problem is in snippet view only, when I open up my actual post in browse Title is coming up properly.

    is %%cf__sku%% will work to display my sku? The Snippet Preview doesn’t show the sku but it shows “%%cf__sku%% | My product title” is it gonna work even tho the Snippet Preview don’t show it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘SKU in the Title %%SKU%% Woocommerce’ is closed to new replies.