Problem with WP_Query
-
Hey guys,
I created a custom post type called ‘brands’ which is just as simple as an image and a title.
And in regular pages I need a reference to a single brand. So I added a metabox with a select list using WP_Query to list all posts with post type equal to brands…
But the problem is that when I click to create a new page it’s title is the same as the last record returned by the wp_query instance…
And I used both wp_reset_query and wp_reset_postdata…I have no ideia where is this problem coming from
The topic ‘Problem with WP_Query’ is closed to new replies.