You should modify this fragment:
// Define the query
$args = array(
'post_type' => 'fiction',
'booktype' => $term->slug,
'orderby' => 'name',
'order' => 'ASC'
);
Related Posts:
- Show posts without term
- How to get order of posts?
- Order posts by ID in the given order
- How to order posts tag by tag?
- List taxonomy terms plus their latest post ordered by post date
- Show all parents and children in custom post type in right order
- Change default ordering of taxonomy terms – pre_get_terms
- WP_Query Order by Specific Post ID First
- Order by empty custom field
- Two loops on archive page
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- WP Query – order posts by meta field first and then order the rest
- How to Order a list of taxonomies? orderby?
- Check if a post has term inside loop
- Filtering by multiple conditions in the loop
- WP_Query orderby random do not repeat infinite scroll – one loop
- Creating ‘posts page’ loop based on the page itself
- How can I do a orderby by the number of items? So basically list by starting with the array with the largest number of post
- get_children() Archive Template
- How can I order a post query’s results based on the number of matching taxonomy terms?
- display ACF repater field in archive page
- How do I stop the same post showing multiple times in a archive?
- Get categories within specific term
- How to order posts, that have already been filtered by custom taxonomy, by their category names?
- Display three sequential posts on each page load, without repeating previous
- Order by multiple meta keys on wordpress
- Main loop querying current template’s info only in custom category archive pages, not my posts
- query only direct child and sub-terms of a current term archive
- the_excerpt() not working in custom archive
- How to list some posts first in the loop based on post id
- Use WP_Query with have_posts()?
- Custom WP_Query order by post_meta and (author) user_meta
- How do I reorder (pop and push) items from WP_Query?
- WordPress Custom Query to show posts from last x years
- Pagination with 5 posts per page
- Reverse chronology of post listing
- Custom archive page based on array of categories and tags
- Order by the results of a function with WP_query
- How to order posts in wp_query by a meta_value of the corresponding author
- Order by menu structure
- How to display 3 different loops in 3 columns on homepage
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Order WP Query posts by custom order calculated from post meta values
- WP_Query to get posts in a specific category and post format
- Can’t get drafts with WP_Query using post_status parameter
- Wp query orderby ‘title’ doesn’t work
- WP_Query doesn’t get sticky post at the top, when used in a page template
- Prevent duplicate post from dynamic multiple loops
- if/else on custom query gives 200 OK when condition not met?
- Multiple Loops Inside a Function
- Sticky posts are not showing at the top of category posts
- Storing query variable and then using wp_reset_query
- From where is archive.php getting its posts?
- Can I set my WP_Query to be a Main Query?
- Group and list posts by custom taxonomy
- Show scheduled posts in main loop but not in WP_Query?
- Get a list of posts with associated meta_value
- Check if loop has any categories?
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- get_template_part causes 500 error
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- How to add custom meta to ‘pre_get_terms’?
- Get posts that do not have the same tags as current
- wp_query is showing posts from other categories
- Exclude a Woocommerce product from WP_Query
- WP_QUERY wrong ammount of posts
- How to add sort order to incremented and paginated category loop
- Expecting statement error from php loop using ACF plugin
- How do I sort this custom list of sticky posts
- Query only displays one page_id
- Get posts with no tags?
- wp-query, pull children of parent page
- I am officially missing something about transient posts
- how to retrieve WP_Query without ordering by date [duplicate]
- Ascending order has strange effects on wordpress loop
- WP_Query orderby
- How to sort store location by specific category order in WP store locations
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- SEARCH QUERIES – REVERSE OUTPUT
- display the children of the post using the current page as the main parent
- Display 3 levels of categories on page
- Paging works correctly on local version, but not live?
- Custom post type loop error: Trying to get property of non-object
- How to add in WP_Query to every 3 posts displayed? [duplicate]
- In Product Category archives how to show Posts having same/similar prod_cat slug structure?
- How to make a wordpress loop file that displays posts based on certain conditions
- Find by post_meta, then sort by post_meta, then sort by date (wp_posts)
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Issue in If else condition [closed]
- Pagination not working with WP_QUERY
- How do I display posts with specific value in a custom field into my loop?
- wp_query pagination links producing 404
- Display First posts without the default featured image
- WP_Query with several meta_query-statements and order by meta_value
- Pagination problem with multiple loops on the same page
- Output ACF field dynamicaly within a taxonomy loop [closed]
- How do I split a large query with a semi-expensive function included into multiple smaller queries
- Query All Posts: Either Display Most Recent or One with Particular ACF Value Chosen
- WordPress WP_Query custom order_by post_type functionality