SOLUTION: I looked through Divi’s functions.php & saw that the term for the project tags is 'project_tag'
, so when I amended my $query args it now works!
Thank you very much to everyone who responded 🙂
$query_args = array(
'post_type' => 'project',
'post_status' => 'publish',
'order' => 'DESC',
'orderby' => 'date',
'posts_per_page' => '3',
'project_tag' => $tag
);
Related Posts:
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Custom Post Type Loop within Shortcode
- Display all posts in a custom post type, grouped by a custom taxonomy
- How do you get the count of posts in an archive page?
- How to use a custom post type as front page?
- Display several random posts, but make sure a condition is met
- WP_Query to loop a Custom Field, Custom Post Types do not show
- Retrieving 3 latest post from each of 5 different custom post types
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- How to show posts from multiple post types in a single loop? And display them separately on the same template
- How to create posts (not post template) to be displayed on projects page?
- WP_Query post at custom position
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- exclude custom post type by meta key in wp_query
- Query for posts in 2 taxonomies
- Query Custom Post by Category
- IF statement in a do_shortcode
- How do I Use Nested Loops of Custom Post Types for MultiSite Blogs using WP_Query()
- WP_Query and using a variable for ‘cat’=> in the args array = WP Bug?
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Impossible to get Attachments Outside WordPress?
- Unable to get post content from custom post type loop
- Lists Posts from CPT that match the Title of the Page
- Help Structuring Query for Archive Pages
- How would I create a shortcode to display a custom post within a page or regular post?
- Loop on front-page.php
- Is it possible to create a shortcode that will query a post based on taxonomies?
- wp_query to find posts by year and month
- WP_Query is printing out only one post when posts_per_page is set to multiple
- Remove duplicated values from a loop
- Get custom posts with certain ids in a custom loop using a shortcode
- WP_Query | ‘post_type’ doesn’t work
- How to connect two custom post types with nested loops
- Filter by custom taxonomy slug on a custom post type
- Query custom post type in the loop
- Loop through Custom Post Type, and then show children within each iteration
- Very Slow Page – How to Optimize # of Queries?
- Can I create a loop with multiple post types and specify different $args for each post type?
- Display CPT posts based on specific taxonomy
- WP_Query orderby modified to include custom meta changes
- How to make sure content doesn’t display if selection is empty
- Show one item per category of a custom post type
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Custom loop with multiple taxonomy queries
- What’s the WP way to load remaining custom posts?
- WP Query with categories only shows one post and ignores the category
- Problem: wp_query outputs all images on site
- wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query
- pagination not working for category.php (custom post types in categories)
- Wrapping x posts in html without leaving empty html
- WP Query post__in not returning correct results
- Sort posts in loop by the WooCommerce Membership of the author
- How can I group posts by months and years?
- Multiple Custom Post Type queries, how to DRY it up
- Custon Content within WordPress Loop
- Loop increase number
- get_post_meta is not working inside shortcode
- Using wp_query to modify the loop in index.php for a CPT
- the_post() is printing titles in page footer
- Custom WP_Query doesn’t display all posts
- Query & the_content() is showing in the header
- get_pagination not working on a custom post type query (using WP_Query)
- WP_Query with custom post type ID
- Shortcode leaves no space for other elements?
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Pagination not working on custom query on a page
- display posts of custom post type with custom taxonomy
- Shortcode with WP_Query more than once on one page
- Trying to add a class to post links
- posts within custom post type all share the same content in the front-end
- How To Loop Through list with Custom Post Types
- Is it possible to add query parameters on the archive page?
- Custom Post Type + Category archive
- Modify shortcode to work with custom taxonomies and slugs
- Loop with Custom Post Type and Taxonomies
- display news with pictures 3 small and one large (loop)
- Shortcode display CPT Query only showing 1 post?
- Post data in separate divs with incrementing class using WP_Query
- How can I pull information from my loop and divide them seperately?
- Fallback if statement based on the number filtered from it
- Nested loop called with shortcode duplicating the content above the main loop
- shortcode for recent custom type post
- next_posts_link returns same content of 1st page
- Custom loop won’t work, can’t find problem
- Custom post-type’s pagination not working in category.php
- Query Custom Post Type by Tag
- Fourth page of custom post type archive page does not exist
- Catergory args causing loop not to show
- How do I correctly query posts from a post ID?
- Adding custom shortcode to page leads to page without styling
- display custom post type from register taxonomy
- How to exclude certain portfolios from a loop
- Custom post type and have_posts() return empty result
- How to loop through a custom post type using a shortcode and output each element in the loop using shortcodes
- How can I show posts with the same tag?
- How to insert a post from a different post type after every nth post
- Complex Custom Loop with Includes
- Query Multiple Post Types and Paginate Newly Created List
- author archives, showing all custom post types, problem on pagination