Hi there. I’ve got a metabox I set up using WPAlchemy that allows authors to add a link to an associated post. It’s been working fine for months but now for some reason the dropdown with the appropriate posts isn’t updating. Here’s the code in the custom post meta php file:
I tried adding a couple test posts in the Product Videos category and they didn’t show, either. I commented the lines that filtered for that category and the Meta box dropdown updated to show every post… except the one I wanted and the new test ones. Anybody have any idea what might be going on? Is there some part of the machinery here that isn’t updating that I should fix? Thanks so much!
Never mind, I figured it out. The issue was “numberposts=5000” – the blog just exceeded 5000 posts so new ones weren’t showing up. I fixed it by changing to “numberposts=-1” which tells WordPress to search through all posts.
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘get_posts in meta box dropdown not showing latest posts’ is closed to new replies.