Setting for “Post Terms” also includes Post Metadata
-
Hi,
I checked the option “Post Terms” in the BasicData -> Posts GUI setting. The resulting datalayer now contains additional data that , IMHO, does not fit the definition of “Post Terms”. What I would expect is a list of Terms that I have assigned to the current Post in one or more Taxonomies, even custom ones.
Actually, that is the case, so it basically works – but in addition there is an object “meta” that contains data that is not term-related. This data can be quite long and does IMHO not belong into a variable whose scope is to contain, well, the TERMSs of a post.
Example: I have a custom taxonomy named “business_partner” , and for this taxonomy, the output is fine. However look at how much undesired data is added to the page, making it larger than necessary:
( ...)(...) "pagePostDateUnix": 1693558256, "pagePostTerms": { "business_partner": ["Partner foo", "Partner bar"], "meta": { "rank_math_internal_links_processed": ["1", "1"], "rank_math_seo_score": "25", "kde_subheading": "some text here from a custom field ", "kde_comment": "some more text here from a custom field ", "rank_math_og_content_image": "a:2:{s:5:\"check\";s:32:\"877fb2524ed40232b731b1d6d7ff6e2e\";s:6:\"images\";a:1:{i:0;i:9325;}}", "rank_math_description": "Some loooooon text will be here", "rank_math_title": "even more text here", "rank_math_analytic_object_id": "323", "footnotes": "", "rank_math_focus_keyword": " text and more text ", "rank_math_robots": "a:1:{i:0;s:5:\"index\";}", "rank_math_breadcrumb_title": "xxxxxx" } }, "postFormat": "standard" (...) "pagePostDateUnix": 1693558256, "pagePostTerms": { "business_partner": ["Partner foo", "Partner bar"], "meta": { "rank_math_internal_links_processed": ["1", "1"], "rank_math_seo_score": "25", "kde_subheading": "some text here from a custom field ", "kde_comment": "some more text here from a custom field ", "rank_math_og_content_image": "a:2:{s:5:\"check\";s:32:\"877fb2524ed40232b731b1d6d7ff6e2e\";s:6:\"images\";a:1:{i:0;i:9325;}}", "rank_math_description": "Some loooooon text will be here", "rank_math_title": "even more text here", "rank_math_analytic_object_id": "323", "footnotes": "", "rank_math_focus_keyword": " text and more text ", "rank_math_robots": "a:1:{i:0;s:5:\"index\";}", "rank_math_breadcrumb_title": "xxxxxx" } }, "postFormat": "standard"
There might be use cases for this “meta” object, but it should be included on its own ( configurable), not together with the “Post Term” setting.
Regards,
Ulrich
- The topic ‘Setting for “Post Terms” also includes Post Metadata’ is closed to new replies.