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
- Anyway to assign custom post types to a specific category?
- Can’t sort order of wp_query with 2 meta keys
- Get count of custom post type created by current user
- How can i list custom post type categories?
- WP_Query and using a variable for ‘cat’=> in the args array = WP Bug?
- Custom post query by taxonomy
- Add category in post type dynamically
- Group custom posts by custom taxonomy names
- Use regular category with custom post types
- Wrong request query on cpt and tax
- Custom post type, organized by categories
- get_category_link() for custom post type does not include custom slug rewrite?
- Custom post type loop with custom category filtering
- Assigning a category to a custom post type in WordPress
- Show message when query has no posts
- How to show all taxonomies within custom post type loop
- Foreach loop returning more than one item when querying taxonomy
- Previous / Next Links For Custom Post Type Sorted By Meta_Value
- “Menu order” being ignored when querying posts from a parent taxonomy with “include_children” set to true
- Custom post type query with taxonomy
- Pagination for a cpt filtered with a category
- assign array of category to custom post type
- How to manage a dynamic multi-level page hierearchy system?
- Change Custom Post Type to Post + Category
- Strange behavior on WP_query
- Help with Multi Level Category Archive Page
- display news with pictures 3 small and one large (loop)
- Stop header code from showing in category page?