• Resolved andersonmultimedia

    (@andersonmultimedia)


    When I update WordPress to any version after 4.3.17, and update the DB per instruction from the Dashboard, I loose functionality of display-posts-shortcode, revealing the shortcode on my pages.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter andersonmultimedia

    (@andersonmultimedia)

    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.

    Plugin Author Bill Erickson

    (@billerickson)

    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).

    Thread Starter andersonmultimedia

    (@andersonmultimedia)

    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”]

    Plugin Author Bill Erickson

    (@billerickson)

    The post_parent parameter only accepts a post ID, not the slug / title of the post.

    Thread Starter andersonmultimedia

    (@andersonmultimedia)

    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”]

    Plugin Author Bill Erickson

    (@billerickson)

    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.

    Thread Starter andersonmultimedia

    (@andersonmultimedia)

    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??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WP 4.3 > 4.4 DB update broke functionality’ is closed to new replies.