try like this:
if ($obj->have_posts()){
while($obj->have_posts()){
$obj->the_post();
$slug = get_the_tags();
$obj->the_title();
echo "<br/>";
$queryH = array("cat"=>13,"order"=>"ASC","posts_per_page"=>-1,"tag__in"=>$slug);
$objH = new WP_Query($queryH);
if ($objH->have_posts()){
while($objH->have_posts()){
$objH->the_post();
$objH->the_title();
echo "<br/>";
}
}
}
}
Related Posts:
- How to list some posts first in the loop based on post id
- How to order posts tag by tag?
- How do I run through a WordPress loop called from a filter function?
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- Filtering by multiple conditions in the loop
- relation OR instead of AND – Filtered term ID’s in loop
- Why does apply_filters behave different inside and outside a loop?
- Woocommerce set loop_shop_columns to be 3 in the main shop page loop only and 4 otherwise
- Resetting post data to previous loop in nested loops
- Whats the difference between post_limits and pre_get_posts?
- How to add taxonomy filter on the query fly?
- Pagination returns 404 after page 20
- Make loop display posts by alphabetical order
- get custom post type by tag
- Group posts by custom field
- Transient pagination not working properly
- get_posts() seemingly ignoring post_type
- Woocommerce custom loop to show all the products [closed]
- How to bring specific post to front of wordpress loop?
- Which filter/action hook gets triggered after a query has been performed?
- List the 5 most recent child pages
- How to show the posts of some category first, and then all other
- Pagination stops at page 6
- Paginated HTML Sitemap
- Why does the_content not work like others for a set post id?
- How to limit total number of posts in wp query loop?
- Using one WP_Query object within the loop of another WP_Query object
- Pagination is broken and I need help fixing it
- Query total number of posts
- How to add post_distinct filter to WP_Comment_Query?
- How to vary post loop results layout and resume?
- Using Ajax to load more posts | Help me change the wording on my button to notify the user
- Get a post from other loop each n-posts in the main loop
- Loop returning only 1 result
- WordPress Loop and $post
- How to filter, restrict and return posts based on custom user meta information
- posts_per_page not working for first page of pagination
- Excluding pages in WP_query using ACF
- reset to main loop doesnt work
- Applying posts_clauses filter to specific queries only
- Add class to first post in custom loop using post_class filter
- Some doubts about how the main query and the custom query works in this custom theme?
- Post loop for all taxonomy terms
- Stuck in the query loop
- Only display post if published in last 24 hours?
- How to remove the most recent post from $the_query
- WP_Query loop else statement not executing
- Include current post into loop
- How to display the featured image for each post?
- Check for the main query from the template
- Trying to retrieve random post, getting a page
- Filter post query to only show direct children of category
- has_excerpt() not working inside wp_query
- Save (and exclude) posts from loop to use in another loop on page
- Get all posts with empty meta_value
- Loop 3 posts column wise and continue the loop into same columns
- PHP – Loop custom post type categories within jQuery Tabs
- Check if a post has term inside loop
- Remove post type filter added by the plugin in the final query
- How to Order By Two Custom Fields?
- Display specific page (that is child) content on parent page
- Query Taxonomy By Page Title
- Can’t order the query result as given posts id’s array
- How to change the default post type over the loop?
- Query Not working as expected
- Compare “Main” post ID to ID inside wp_query loop
- Paginate pages with dynamic query
- WP_Query loop doen’t work with my custom taxonomy
- Determine if ID is page or post and query the ID
- problem with the loop
- get_children() Archive Template
- Filter sub-category from checkbox form
- My combination of ‘post_type’ and ‘tax_query’ not working?
- How to add a “base” filter for all posts visible to visitors on the site?
- Populate select list with meta values from all posts of a Custom Post Type
- show most viewed post
- Bootstrap grid while loop
- WordPress – Form does not filter the results of taxonomies
- Woocommerce featured products query no longer working
- How can I use WP_Query to sort ‘event’ custom post type by date?
- Display posts side by side with custom query
- WordPress For Loop Prints Unwanted Extra Paragraph Element
- Custom category page with taxonomy filters
- modifying the loop multiple times with arguments passed through ajax to wp_query
- WP_Query causing links to not work
- Retrieving category pages from subcategory returns empty sets
- Add filter to Orderby Parameter using Array
- Iterate through ID’s in loop
- Loop through multiple custom fields with increasing number
- Different number of posts showing in development vs production server
- An archive page without post format (just standard post)
- query post based on comparison
- Pull Instagram images into an existing loop?
- Multiple loop for “featured” items returns wrong posts
- Pagination in custom query not working [duplicate]
- wp_query->set for several categories
- How to write a query-function as a query-shortcode?
- Print post data inside loop using theme content template
- First post outside of loop, homepage only?
- Custom WordPress loop, articles not in same order as Array