Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42467

weller33 on "[Plugin: WordPress SEO by Yoast] Tag/Category Broken in Page Titles"

$
0
0

Does anyone know how to add a variable in to pull the parent category into the title tag - so wwhen using this wp-admin/admin.php?page=wpseo_titles&settings-updated=true#top#template_help - I might be able to add %%category_parents%% before my title end s with %%sep%% %%sitename%%

I know I will probably need to set up an ID for it like so in wordpress-seo/inc/wpseo-functions.php:
'%%category_parents%%' => wpseo_get_terms( $r->ID, 'category_parents' ),

but where and what would I add it so it can get..?

any help much appreciated!


Viewing all articles
Browse latest Browse all 42467

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>