do_shortcode(“[ratemypost]”) does not work on CPTs
-
You made a suggestion in one of my earlier issues that one could always use do_shortcode(“[ratemypost]”) to control how/where the rating is rendered, which does not appear the case.
A quick review.
1. We have a content filter that provides custom content when content is EMPTY.
2. We have numerous custom post typesAdding “[ratemypost]” to our custom content for the CPT does nothing.
The only way I can get ratemypost to show, is to whitelist the custom post type in the “Add rating widget automatically to custom post types” setting.
But making this setting change causes the content to be automatically MODIFIED BEFORE the custom content filter (which is at priority 1). As the content is now no longer empty, the custom content will never show, defeating the purpose of the content filter.
Might you have another suggestion work around?
Thanks!
The topic ‘do_shortcode(“[ratemypost]”) does not work on CPTs’ is closed to new replies.