The “sort” query param is usually “orderby” not “sortby”, to match the SQL ORDER BY
clause.
Perhaps try:
$the_query = 'posts_per_page=-1&orderby=name&order=ASC&post_type=mycustom&custom_cat=mycat';
It’s also possible that the value you are passing is incorrect, but without knowing the details of your custom post type there’s not much else I can suggest.
Related Posts:
- Remove slug from custom post type post URLs
- Can the Next/Prev Post links be ordered by menu order or by a meta key?
- Redeclare/Change Slug of a Plugin’s Custom Post Type
- Theme localization of “slugs” (custom post types, taxonomies)
- How do I set the default admin sort order for a custom post type to a custom column?
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Make custom column sortable
- Using meta_query, how can i filter by a custom field and order by another one?
- How do I get a post (page or CPT) ID from a title or slug?
- group search results by post type?
- register_post_type sort order by title by default
- How to get custom post type label and singular label from its slug?
- Custom Post type & Taxonomy URL structure
- custom slug for custom post type
- Slug Formatting : Acceptable Characters?
- Disable permalink on custom post type
- Get list of all registered post types slugs
- Combining Multiple Taxonomies in one URL
- Drag n Drop Post Order for multiple Custom Post Types
- Sort custom post type list table by display name of a user id stored as post meta value
- Custom sortable columns ordered by meta-value?
- How to order adjacent posts (prev / next) by custom field value?
- Using Custom Fields in Custom Post Type URL
- WordPress post sorting with AJAX
- Ordering posts by custom taxonomy in admin area
- Custom Post Type, WP_Query and ‘orderby’
- Filter admin columns by custom post field value
- Sorting a query by custom field date
- Custom Taxonomy Template Post List with Sort Order
- Ordering Posts List By Taxonomy Terms?
- Change slug of registered custom post type in child theme
- Column sorting with emtpy meta values
- Taxonomy archive with same slug as custom post type?
- Number of pages – multiple (custom) post types
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Post slug changed using code doesn’t reflect on editor when post is published
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- how to sort post in admin column by recently
- Taxonomy page returns 404 page not found
- Custom Post type sort order not working in the admin area
- How to sort a table of custom posts by column containing custom field
- Prepend meta_value to permalink of post
- Custom Post Type – Same Post Name, Different Post Type
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- Setting a title on a Custom Post Type that doesn’t support titles
- Reslug a Custom Post Type
- Removing CPT slug from URL results in 404 error for archive page
- Custom Post Type pagination when CPT ‘rewrite’ rule and a page have the same slug
- Remove Slug from Custom Post Type results in 404
- Force unique page slugs across all post types
- Getting Post ID from slug during init
- Alphabetical sorting of custom post type – one letter per page
- Custom Slug for a custom post type and default post
- sort events based on event date custom field
- How to Sort Custom Field Admin Column by Date
- How to Sort by Date When Using d-m-Y Format
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Custom post type’s slug gets wrong when adding a custom meta box
- Interesting Custom Post Type Slug with Taxonomy and Custom Field
- Rewrite CPT slug with two taxonomy slug instead of one
- Get slug to point to different content of the same post
- WP query by custom post type slug/name
- Can’t edit Custom Post Type slug/permalink
- Sort Posts Best Practice
- Custom Post Type sorted by Title
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- How to add new tab to admin list of posts and handle result list
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Sort by two dates. Default entry date and custom field if present
- Custom Taxonomy breaking pages permalinks
- How do I sort a custom post type admin column using two meta keys?
- Custom-post-type-archive: posts sorted/filtered by year?
- Using custom post type parent as slug
- How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- is this a bug or not?
- Create page using same slug as custom post type
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Hide custom post type slug url from search engine [closed]
- Sort CPT by taxonomy AND THEN by custom field
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- Custom order of CPT posts by title, in wp-admin area by default
- Custom post type Premalinks main page and details page
- Removing custom post type name from permalink
- Is it possible to use a post name in a custom post slug?
- Custom slugs with dates & IDs on Custom Post Type
- Sorting by Title for Post Archive Categories for Custom Post Type
- How to change permalink structure off default posts and also CPT’s posts
- Add post id to url instead of WordPress default -2 suffix
- Custom Post Type slug has the same Redirection entry
- Taxonomy Archive URL + Template
- How to change rewrite slug for custom post type without conflicting w/ child pages of page with same slug
- Meta query sort order is lexigraphical instead of numeric
- Custom post type URl Cutomization
- Right Permalink for Custom Post Type with number slug
- Custom post type slug localization
- How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?
- I want to change the Post Type slug of a CPT (custom post type) to the category slug of the page
- Admin custom post ordering