How to get metadata of different post
-
Hi there,
since version 5.0.0 deprecated many filters in favor of
the_seo_framework_meta_render_data
, I struggle a bit with adjusting my code.Currently, I use the filter
the_seo_framework_description_output
, where I first check if I need to output the description of another post (something like an ancient post of the current). This was easily possible by just requesting the metadata post meta of the ancient post.However, at least for the new version it looks more like a hacky workaround. So the question is: how do I get the metadata of a different post inside the filter
the_seo_framework_meta_render_data
(I’m aware that I need to remove the filter inside my filter before getting the metadata of the different post in order to prevent recursion)?Best regards,
Matthias
- The topic ‘How to get metadata of different post’ is closed to new replies.