meta_key in query_posts, it doesn't work anymore
-
Hi there,
on our website we use custom fields to store the ID of Vimeo movies that are displayed on the page. We also us that field to display an archive of all our videos and to feature on the frontpage the latest video published.
It used to work well, lately we updated WordPress, and now it doesn’t seem to work. I’m not sure when it stopped working, but I know it used to work under 2.9, and it doesn’t work anymore on 3.1.1. The queryposts looks like this for the archive :
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("meta_key=vimeo&showposts=5&paged=$paged"); ?>
Nothing is displayed, if I remove the meta_key=vimeo argument, then all the posts are displayed.
It seems like the part regarding custom fields in query_posts has disappear from WordPress Codex.
What is the right way of doing this now ? Custom SQL ?!? It feels like a step backward…
Thanks for your input !
- The topic ‘meta_key in query_posts, it doesn't work anymore’ is closed to new replies.