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] Tags for custom taxonomies?"

$
0
0

I'm using shopperpress theme and am desperately trying to pull in the parent category to use in the title tag.. would this work for my fix? The main problem I have is identifying the Parent Category so the variable fetches what I need?

wp-admin/admin.php?page=wpseo_titles&settings-updated=true#top#template_help -
this is ideally what I'm looking for..

%%term_title%% %%page%% %%category_parents%% %%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>