You need to add
'post_type' => array('post', 'opinion')
to your $normal_args
array and maybe remove the meta_query
?. Are you sure you have any opinions
with a _custom_blog_enhome
of 1
?
Start from
$normal_args = array(
'post_type' => 'opinions',
'post_status' => 'publish'
);
and add arguments one by one and watch the results.
Related Posts:
- How to create posts (not post template) to be displayed on projects page?
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Loop on front-page.php
- WP_Query with custom post type ID
- display posts of custom post type with custom taxonomy
- How to fetch posts that are stored in the different table than (default) wp_posts?
- SEARCH QUERIES – REVERSE OUTPUT
- subtracting the current post form then whole loop, which is generating all CPT titles
- Custom post Query and WordPress Post Query Clash
- Only show current category post
- How To Loop Through list with Custom Post Types
- is there a way to retrieve posts that do not have a featured image assigned?
- 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?
- How to add post_type=value when editing that post type in the WordPress admin?
- Display CPT posts based on specific taxonomy
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- 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
- Storing posts from query and accessing later via AJAX call
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- Show custom post type filtered by category
- Custom loop with multiple taxonomy queries
- I would like to have different styles for my posts based on the content of each post
- Get latest 3 posts from multiple CPT in one query
- List custom taxonomy specific to one custom post type
- What’s the WP way to load remaining custom posts?
- Several post types on WP Query by tag and taxonomy
- WP Query with categories only shows one post and ignores the category
- Shortcode not working with post counter
- Problem: wp_query outputs all images on site
- Prioritize posts in query by meta keys?
- How to get all tags of a custom post type by id
- pagination not working for category.php (custom post types in categories)
- WP the_posts() on single-cars.php get category link
- Conditional for a Single Post That Belongs to a Category?
- 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
- Different Limit number of post on different archive page
- 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
- Using wp_query to modify the loop in index.php for a CPT
- Custom post types and ‘new WP_Query’
- Custom WP_Query doesn’t display all posts
- Query & the_content() is showing in the header
- Variable not working in WP_Query
- get_pagination not working on a custom post type query (using WP_Query)
- How to Make infinite loop of post
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Pagination not working on custom query on a page
- Query within a foreach within a query (queryception)
- wordpress lists similar type of posts in a custom post type
- Get post format
- Custom wordpress loop
- Trying to add a class to post links
- How to Query in WordPress which shows Alphabetic Posts?
- displaying content of custom post type
- postsperpage value not being applied
- Posts are not rendering perfectly [closed]
- Display the current post in browser as the first post in a loop (for a slideshow)
- How to query Posts from a custom post type which contains a custom taxonomy?
- Use post in multiple places on a page with multiple posts
- List all Custom Post Type posts excluding certain Taxnomy term
- foreach loop inside the loop creating duplicates in output
- list posts of two post types in a single template
- The loop does not show users
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Cant’ Display Custom Post Type Title Base on Tax Terms
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- How do I list a custom field and custom taxonomies for each result in a loop?
- If/Else child list for Custom Post Type single template within loop?
- Custom Post Type Query W/Category Dropdown
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Custom post type pagination error
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- What is the most efficient way to execute recursive complex queries?
- Page that lists publications by classifying them by taxonomy
- posts_per_page in custom WP_Query does not override “Reading” settings?
- Exclude a specific post in a Custom Post Type
- Display Parent-Child Posts in specific order by comparing IDs in array
- Pin posts to top of custom loop
- Filtering posts based on three taxonomies
- Pagination Not Working When Used With WP_Query() `offset` Property
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- wp_post_delete is deleting all offices
- How do I insert a custom post type query after a certain number of recent posts and then resume recent posts?
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Error in the page of a CPT file in WordPress
- post_type incorrect for custom post type
- Staggering featured post using ‘sticky’