As @TheDeadMedic said, you’ve to work like that. in the default loop like:
while( have_posts() ) : the_post
endwhile;
in this case, the loop is running with the default $wp_query
variable. But as you are running custom queries, you need to use while( $query_obj->have_posts() ) : $query_obj->the_post();
like that
But while logged in and logged out, you shouldn’t get different results :S
Related Posts:
- How do I exclude a custom taxonomy from the post loop
- Using WordPress to make a “Product Search” type navigation drilldown
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- search query within custom taxonomy term, post title and meta field
- Advanced Tax Query
- Using WP_Query and Query_post for the loop?
- Using wp_query is it possible to orderby taxonomy?
- “tax_query” parameter not working with WP_Query
- Custom Taxonomy and Tax_Query
- Filtering custom taxonomies
- display posts with same taxonomy term
- get_query_var(‘paged’) always returns empty
- Including all terms in wordpress tax_query
- How to get first post in a category of a custom taxonomy
- Display one post from each term in a custom taxonomy [closed]
- Using tax_query creates a 1 = 0 or 1 = 1 in $wp_query->request
- how to group custom post type posts by custom taxonomy terms
- wp query with multiple taxonomy?
- Showing posts by collection of specific terms and texonomy
- wp_query orderby title and meta key value (WP3.1)
- How to get the parent’s taxonomy?
- On Taxonomy Template page, want to add Post_Type
- Page queried instead of a custom taxonomy
- Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
- The next_posts_link() show me a aditional page in blank
- Problem with query_posts for a custom taxonomy in theme options
- Link to most recently created category of custom taxonomy in primary navigation menu
- Help with a query not working with custom taxonomy
- Adding session variable and/or cookie based on user-selected input
- How to display posts from a single category within a custom taxonomy
- Excluding a custom taxonomy term breaks wp_get_post_terms
- Query for posts in 2 taxonomies
- why do drafts return as part of wp_query?
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- Last posts from custom taxonomy
- Improving WP_Query performance for multiple taxonomies
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Taxonomy.php issue with search and filters
- WP Query with custom taxonomy
- how to search in custom fields & custom taxonomy for custom search
- WP_Query on custom taxonomy works fine but fails if run through wp_ajax_
- Query with custom taxonomy not working
- Advanced Query Logic With Multiple Taxonomies
- How do I Use Multiple Loops with WP_Query?
- Query/list all terms and their custom post count
- Archive for custom taxonomy lists all posts instead of current taxonomy
- Alter post order on taxonomy template
- Display all posts for taxonomy term across multiple custom post types
- query_posts and custom taxonomy posts order
- Selecting all posts from the children of a particular parent taxonomy
- quey posts from different categories with taxonomy
- Show all taxonomy’s terms’ posts having another taxonomy’s term in common
- How to display an other custom post type in a different custom post type’s archive?
- Display custom tags on pages that have a specific page parent
- Hiding taxonomies with no children WP_Query & tax_query
- Can I use OR relation for one item when calling tax_query from WP_Query and use AND for the rest?
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- How to display Related Posts based on number of taxonomy terms matched
- Set tax_query conditionally with new WP_Query
- querying posts by custom taxonomy terms right from a querystring based URL
- How to make WP_Query not to show irrelevant posts?
- Query custom taxonomy by term id?
- Filter Custom Taxonomy Posts
- When filtering query on custom taxonomy; main menu dissapears
- Exclude taxonomy term from all loops, but having it on widget
- Why can’t I use an array of term slugs in WP_Query?
- wp_query not resetting, last post hanging
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Problem with wordpress pagination
- How to write sql query to get the posts from a custom taxonomy term name
- How to do a particular wp_query taxonomy search
- one post per term taxonomy
- Loop through custom taxanomy in post and display custom fields from posts
- Wp_query…a type of term a different div
- check if a taxnomy queried in $wp_query?
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- WP_Query tax_query – Show results if child has parent X
- Query custom taxonomy for category including children
- Proper way to create taxonomy queries
- how to use tax_query to apply both terms or one if one is empty
- Get current page term title to use in WP_Query
- passing moree than one value of slugs in taxonomy using variable
- Insert taxonomy slug into loop class
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Sorting the Loop by Taxonomy Value
- custom post type and a “sticky” position taxonomy
- How do I stop the same post showing multiple times in a archive?
- Group posts in a category based on tags in custom taxonomy
- My entry results are not consistently alphabetized
- WordPress custom post type
- How do you move custom fields to custom taxonomies using WP Queries
- WordPress hiding posts without content on custom taxonomy query. How to solve?
- Run next query based on first query’s term
- Get the original menu item name string instead of the label
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Order posts with custom taxonomy array
- Getting grandchildren of a post with a specified custom taxonomy?
- Taxonomy Parameters in WP Query to get posts from two different taxonomies
- Custom Taxonomy + JQuery Tabs