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?
- How-to exclude terms from the main query the most performant way?
- Pagination with WP_Query is buggy – working for some pages, but not the others
- Why is my WP_Query not working when tax_query terms are an array?
- Make First post different from rest?
- How to count post meta key values for all posts in database
- How to disable the editing of the time and date published?
- Injecting content with $wp_query->current_post restarts from zero on paged pages. How to inject content after X posts, regardless of pagination?
- Find all product that contain terms with %keywords% in WP_Query
- Multiple search queries on one page
- Filtering WP_Query result by category
- posts order by title second word
- Merged two WP_Queries, posts per page and pagination not working
- Why WP_Query::is_date() returns false when ‘date_query’ argument is set?
- Query all posts in a given taxonomy
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- Unexpected end of file
- WP_Query To call data from diffrent tables
- new WP_Query with author argument return no results
- Clean up WordPress code that repeats
- WP_Query: “post_parent” and “post_type” combination returning strange results
- Display Featured Post by Categories and Avoid duplicated posts
- How to show optimized list of posts with all their attachment images
- WP_query return more results than SQL query. post_count > found_posts
- How do I exclude the lowest level terms in a taxonomy?
- Pagination inside of a edit page
- Error with function in functions.php?
- I am having problem sorting custom post type using WP_Query
- WP_Query and is_page_template() conditional
- difference between querying database and using the loop
- How to do logical OR in terms in WP Query?
- Slow Query On Search
- Loop posts based on permalink term
- Error in meta_query not get result
- Custom wp_query – I’m getting ‘all’ post, not the specific post in the query
- wp Query Posts to display in Nivo Slider
- In a WP_Query can I force the results’ is_singular() to be set to false?
- My combination of ‘post_type’ and ‘tax_query’ not working?
- Query pages created by deleted users
- Get posts that match defined arrays of tags
- WordPress live search and filter
- Why can my filter query SOME metadata but not other metadata?
- The query show user list orderby count published posts in last month
- Sorting Posts by Taxonomy thats not within the query’s $args
- Rewind posts then show only first post
- Ordering Posts by parent category, name ascending
- WP_Query Sorting Posts by month … timeline effect
- how do i remove plusone js from WP? [closed]
- Fatal error with wp-livechat plugin
- Bulk delete comments, foreach loop
- Send a variable with a URL and get a variable with Wp query
- Showing Counts on Comment List with Custom Query