• Resolved robpinney

    (@robpinney)


    I have been using the code below to pull posts and info from the most recent category ID that is a child of 3. This is a magazine-style site with grouped issues, and using the ID lets me dynamically grab the latest set of posts with each new issue that gets published.

    After updating to 4.5.1 it no longer works – it now doesn’t load the category info (description) and pulls the first posts that were added to the site, suggesting that the query no longer works. I have tried the steps listed in the master docs for 4.5.1 but with no luck.

    I’ve reverted the live site to the last version and have the new one in staging to test until it works. Would really appreciate some help!

    <?php $issue = get_terms('category', 'orderby=ID&order=DESC&number=1&child_of=3'); $latest_issue = $issue[0]->term_taxonomy_id; ?>

    Thank you

Viewing 3 replies - 16 through 18 (of 18 total)
Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Most recent category query broken after update’ is closed to new replies.