Seems the post_parent argument is no longer respected after 4.3.17 db update. I am able to make the other arguments work in the shortcode still. As soon as I try to restrict post_parent arg to ‘current’ or specified post_parent id, breaks the display. Any help is much appreciated. Thank you.
Thanks for the message. Can you paste here the exact shortcode you’re using?
I can confirm the post_parent parameter works in the latest version of WordPress (4.9.8) and Display Posts Shortcode (2.9.0).
Thanks for the response, Bill. Here is an example shortcode:
[display-posts post_parent=”north-america-programs” post_type=”program_listings” taxonomy=”category” tax_term=”day-school-affordability-and-sustainability” order=”ASC” orderby=”title”]
The post_parent parameter only accepts a post ID, not the slug / title of the post.
Thanks Bill. I try like that, but still no luck.
[display-posts post_parent=”32″ post_type=”program_listings” taxonomy=”category” tax_term=”day-school-affordability-and-sustainability” order=”ASC” orderby=”title”]
Are you sure you have a custom post type called “program_listings”, and that you’ve assigned the “category” taxonomy to it, and that there’s a category with a slug of “day-school-affordability-and-sustainability” ?
If any of those are incorrect – for instance, if you’re actually querying the “page” post type – it would find no results for that query.
If you know those are all correct, then you likely have a theme or plugin that is modifying WordPress queries and affecting this query as well. On a staging environment you can switch to the default WP theme and disable plugins to identify the issue.
This functionality broke for me ‘on most’ program_listings CPT pages… but not ‘all’. When I analyzed the shortcode between the shortcodes that rendered and the ones that don’t, I can see no inconsistencies… AND update permalink does nothing. However if I copy and paste this portion of the shortcode from a working page:
display-posts post_parent="fsu-programs" post_type="program_listings" taxonomy="category"
over the same portion on a non-working page like tis one:
display-posts post_parent="fsu-programs" post_type="program_listings" taxonomy="category"
and Preview, the functionality that disappeared after WordPress 4.3.17 -> 4.4 upgrade is restored. Got me??