Quantcast
Channel: WordPress.org Forums » [Yoast SEO] Support
Viewing all articles
Browse latest Browse all 41911

Get taxonomy SEO data dynamically, by php code

$
0
0

Replies: 0

Hi, how can I get custom seo taxonomy data using a function?

for example, I am in taxonomy A and on this page I want to get taxonomy B data

This code didn’t help
YoastSEO()->meta->for_term(B_TERM_ID)->title

Because it contains of a variable like “%%term_title%%” and it doesn’t render

SEO Title in admin panel
%%term_title%% other text , content text

Because it contains of a variable like “%%term_title%%” and it doesn’t render

SEO Title in admin panel is —— %%term_title%% other text , content text
output of function —— other text , content text
expected result —— B CATEGORY NAME other text , content text

  • This topic was modified 4 hours, 6 minutes ago by christiart.

Viewing all articles
Browse latest Browse all 41911

Trending Articles



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