Set ‘posts_per_page’ to 1 on your args variable. I also suggest that you add ‘page-attributes’ while registering the magazine’s post type and order the result by ‘menu_order’. This way, you will have the field Order while editing a magazine, and set the highest which should appear on this query.
Related Posts:
- WP_Query by a category id and a custom post_type
- Exclude a category from WP_Query
- WP_Query ignores post_type in category view
- The Operator “NOT IN” Does Not Work In tax_query
- category__in not working on custom post type
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- List with categories, subcategories and posts of custom posttype
- New WP_query in template not working with CPT+category on some pages
- Combine tax_query and meta_query in WP_Query
- WP Query group/order by category name
- List all custom post type posts from a given category?
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- WP_Query with custom post_type and cat retrieving unwanted posts with the custom posts
- Query Custom Post by Category
- Loop through categories and create tab for each
- Getting all custom posts with a certain category
- Query Custom Post Types & category_name?
- Show Post Count of a Category
- CPT posts listed by category with custom rewrite URL, please help!
- tax_query returning all posts instead of selective posts in WP_Query
- Querying Term Posts in Loop
- Pagination on category page with custom post types
- How to show CPTs in term archive
- Query custom post type by category slug
- showing custom post types of a certain category only
- Linking to the most recent post in a Custom Post Type
- Show custom post type filtered by category
- forming WP_Query for posts of all post types but from specific categories
- Custom post taxonomies as tax_query terms?
- Why is this query not working? (Standard posts + custom post type)
- WP Query with categories only shows one post and ignores the category
- Custom Widget WP_Query problem
- Why is my category template ignoring post type?
- How to display Related Posts based on number of taxonomy terms matched
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- WP_Query Custom Post Type if Category ID Equals
- Custom post types and ‘new WP_Query’
- WP_query – Filter by tax_query and meta_query using multiple select
- WP_Query parameter conflict
- How to include category name/id in wp_query for retrieving “custom post type” from a particular category?
- Get category if used in a custom post type
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- List categories, subcategories and posts from custom taxonomy and custom post type
- WP Query results showing posts outside of category ID
- tax_query (if the terms are empty)
- How to get Custom Post Type with Categories wise in WordPress using wp_query
- Create query for both custom post type and category
- Running a custom query inside another cpt single and trying to grab a variable
- How to properly use Categories with Custom Post Types
- Custom Query: Multiple CPTs and a taxonomy filter
- Display related CPT with custom taxonomy
- custom post type and a “sticky” position taxonomy
- How to output custom post type title on custom page with category next to it?
- How to search through all child taxonomies using WP_Query?
- Cannot get to work tax_query array for terms
- Custom Post By Category
- Only show categories that have posts within custom post type
- Query the title of the page to show posts with matching category in the loop
- WP Query tax_query not returning posts
- Not able to get my custom search result using meta_query and tax_query together?
- Only show current category post
- Query breaking with ‘posts_per_page’ => -1
- Can’t seem to filter wp_query by current category ID
- Custom Post Type + Category archive
- tax_query showing no results
- category_name not working in WP_Query
- Cannot query custom post type taxonomy from theme options array
- Get all custom_post_type posts + blog posts from one category in a single query
- Are custom posts included when getting a categories’ posts?
- Is it possible to make is_category() recursive?
- WP Query Conditionally query meta and taxonomy
- WP Query filtering by custom category not showing all relevant posts
- How to change post featured image using a custom field of category?
- How to add post_type=value when editing that post type in the WordPress admin?
- Display CPT posts based on specific taxonomy
- CPT Archive with core Category
- Can’t query tag and post_type at the same time
- Group posts by custom post type
- Setting proper query for multiple custom admin filters
- shortcode to show custom post types by category
- Unable to retrieve any posts of CPT in wp-admin
- WP_Query: include custom post type only with specific meta value
- Pagination on a custom post type loop
- Display all posts in main category and 1 subcategory
- Replace li Items with divs with classes
- WP_Query orderby modified to include custom meta changes
- WordPress custom loop filter by meta_key and value with serialize data
- Returning a list of custom post types excluding those without a specific meta_value
- query private custom post type
- Get posts from a custom post type by child categories of a parent category
- Display custom post type from dynamic custom field
- Query/list all terms and their custom post count
- Custom Post Type Archive Page Filtering
- Getting posts under the custom post type ui category
- How to make sure content doesn’t display if selection is empty
- Show category ID on custom post type
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Filtering WP_Query Dynamically on the Front-End
- Show one item per category of a custom post type