i have some posts with a certain shortcode in them. unfortunately these posts are in different categories and contain different tags so i am not able to query them. is it possible that i run a query which will display all posts containing this shortcode [fileurl=xx] where xx is a certain id (number). Help is appreciated . cheers
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
Taxonomy Query
You can query posts by a taxonomy (category, term, etc.):
Shortcode QueryYou could also, if you want to query by shortcode, add/remove a filter on the query for the content.
An even better approach may be to wrap it up in a class like the one shown in the other Q. |
|||||||||||
|
