Because your posts are only saved whithin the $promo var and not in the $wp_query global var. I recommend you to use get_posts() http://codex.wordpress.org/Template_Tags/get_posts
Related Posts:
- Page template query with WP_Query
- How to display page content in a page template?
- Does WordPress generate an automatic page for post formats?
- Single page theme that uses pages for the content
- Trying to list out child pages with WP_Query
- Order by menu structure
- Targeting specific pages in the loop
- What are the differences between “Latest Posts” and “Static Page”?
- WP_Query not retrieving by random order under parent
- Set if condition with wp_nav_menu
- Set order of returned items in the WP_Query() class/function
- Search pages that are a child of the current page
- How to display summary content from a Page (Not a Post) on another page
- Serve specific “template” page at any URL that ends in its slug
- Display custom tags on pages that have a specific page parent
- Is there a reason why Pages are not publicly_queryable?
- Why post__not_in is ignored?
- Exclude parent with child pages from WP_Query
- Create a loop on my pages with new “WP_Query”
- All blog data on a page using custom query gives 404 for page 2 and onward
- When listing child pages run out of memory
- WPQuery calling specific posts problem
- WP_Query with multiple orderby NOT working with ASC and DESC, what’s wrong?
- Display specific page (that is child) content on parent page
- Get query results with a page title
- How to get current page nearest parent id?
- How to get main menu only with wp_nav_menu
- Unable to paginate a custom page query
- How to create single page site in WordPress
- Determine if ID is page or post and query the ID
- How to query for a page, get data, then query for child pages of that page
- Get list of all Grandchild Pages
- Custom query does not find pages
- How to get pages of parent (non-recursive)?
- How to use custom page for all posts with custom url, call another directory?
- display the children of the post using the current page as the main parent
- pages shortcode filtering by category
- How to create page that lists tags by initial letter?
- Get a page ancestor from a most viewed list
- How can I use a specific wordpress page template if certain words are used in page title [closed]
- Category Archive not working for pages
- Retrieving category pages from subcategory returns empty sets
- Issue in If else condition [closed]
- Show parent’s child and also child’s, child on a page?
- get contents and permalink from a specified page
- Hierarchical List Pages as a table
- Get next post when using pagination with WP_Query?
- WordPress pagination returns the same posts
- How to write short code with if else to get page_id?
- Rewrite URL custom search query
- Paginate_Links page 2 doesn’t work
- Include current post into loop
- Is it safe to access the underlying mysqli object from \wpdb for custom queries?
- wp_query to print posts if have X custom field value
- Rewrite gets completely ignored
- get_posts() and global variables
- Should $query-> be used with conditional tags?
- How to combine two WP_Query objects?
- WP_Query author parameter not working
- How to order posts on each different category?
- Loop 3 posts column wise and continue the loop into same columns
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- WP Query and date format
- WP_Query custom order and pagination
- Why is the value zero going in my custom database table?
- function wp() does not use meta_query?
- Query Not working as expected
- Widgets: Show Recent Posts Only if the Posts Have Both Categories X and Y
- How to get all user posts from two post types in wp_query
- WP_Query for distinct meta values
- Group Product Types
- meta_query with meta values as serialize arrays
- pre_get_posts pagination not working
- Prevent Duplicate Post Counted by Query
- Save queried result into database
- wp_set_object_terms() custom taxonomy not working correctly when using insert post
- WP Query by variable custom field
- WP_Query multiple value not working
- Move some posts to end of sort order, even if there is a sort in the wp_Query already
- Translating WP query into to SQL query
- Is my code correct?
- TAG Query showing only 1 result
- Tax_Query not working – connecting to second wordpress database
- How to search CPTs in draft using get_page_by_title()
- wp_query returns match with no criteria
- WP Query Meta Query
- How can I modify standard search query to include also ACF custom fields values?
- Archive – Show Page Month Headers
- Order WP_Query results in order other than ASC or DESC
- More efficient query to display posts in same sub-category?
- Return a single custom post from multiple meta queries
- query post based on comparison
- wp_pagenavi on WP_Query using customfields
- How to write a query-function as a query-shortcode?
- Show number of posts AND number on current page (cannot make it work)
- How to include custom fields in wordpress search
- Extend search query to search meta keys values based on search string
- When I visit my website there is only slash(-) showing intead of home or my website name. how to solve this? I am attaching image also to understand
- How to get products with the same custom attribute like ean code
- When to use WP_query(), query_posts() and pre_get_posts