Skip Navigation

[Gelöst] How to use toolset shortcode in meta title and description

This support ticket is created vor 1 Jahr, 2 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 Antworten, has 2 Stimmen.

Last updated by Waqar vor 1 Jahr, 2 Monate.

Assisted by: Waqar.

Author
Artikel
#2552867

Hi, I list taxonomies on a page using

[wpv-post-taxonomy type="english-name" format="name" separator="

  • "]

    How can I use the above in the page meta title or description?

    Thanks for your help

  • #2553417

    Waqar
    Supporter

    Languages: Englisch (English )

    Timezone: Asia/Karachi (GMT+05:00)

    Hi,

    Thank you for contacting us and I'd be happy to assist.

    Are you using any SEO plugin to manage meta titles and descriptions on the website? Each SEO plugin offers its own method to include meta titles and descriptions and usually supports shortcodes ( like 'wpv-post-taxonomy' ) or custom tags for the dynamic taxonomy and custom fields data.

    If you're not already using one, here is an article that reviews some of the popular SEO plugins:
    hidden link

    I hope this helps and please let me know if you need further assistance.

    regards,
    Waqar

    #2554075

    Hi Waqar, Thanks for this.
    Having a bit of trouble seeing how to implement toolset shortcode in seo plugin.
    Is there an example using a free seo plugin you could point me to.
    Thanks for your help

    #2554115

    Waqar
    Supporter

    Languages: Englisch (English )

    Timezone: Asia/Karachi (GMT+05:00)

    yoast-seo-meta-title-description.png

    Thanks for writing back.

    You can install the most popular SEO plugin 'Yoast SEO' and then in your page or post, where you'd like to include the target term names in the meta title or description, you can call the variable in this format.

    
    %%ct_{term-slug}%% 
    
    

    For example, if your term's slug is 'english-name', the variable for it, will look like this:
    ( example screenshot attached )

    
    %%ct_english-name%% 
    
    

    The Yoast SEO's meta title and description fields don't support the shortcodes like the one Toolset offers, but it offers its own extensive list of variables for showing the dynamic data, as explained in their official documentation:
    hidden link

    #2555719
    source.JPG

    Hi Waqar,
    I've installed Yoast, but I understand to use it for meta description etc.. I need there to be an archive page.
    I have custom posts without archives, is it enough to just click add archive in toolset dashboard for the custom post?
    What's the recommended way to add archive pages?
    I've attached the source listing - after clicking add archive for the custom post type, the English name taxonomy doesn't appear in the description just:
    "<meta name="description" content="%% english-name %%" class="yoast-seo-meta-tag" />"
    Thanks for your help

    #2556643

    Waqar
    Supporter

    Languages: Englisch (English )

    Timezone: Asia/Karachi (GMT+05:00)

    > I've installed Yoast, but I understand to use it for meta description etc.. I need there to be an archive page.
    - The use of an archive page is not necessary to include term names in the meta titles and/or descriptions of a page/post.

    Can you please share temporary admin login details, along with the link to the target page where you'd like to include these term names as meta titles and/or descriptions?

    I'll be in a better position to suggest the next steps, accordingly.

    Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

    #2557973

    Waqar
    Supporter

    Languages: Englisch (English )

    Timezone: Asia/Karachi (GMT+05:00)

    Thank you for sharing the admin access details.

    In field at 'WP Admin -> Yoast SEO -> Settings -> Content types -> Plants -> Meta description', the following text was added:

    
    %%%%ct_%% english-name %%
    
    

    I've changed it to the following text and it is working now:
    ( screenshot: hidden link )

    
    %%ct_english-name%%
    
    
    This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.