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
- Redeclare/Change Slug of a Plugin’s Custom Post Type
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Make custom column sortable
- How to get custom post type label and singular label from its slug?
- Custom Post type & Taxonomy URL structure
- Slug Formatting : Acceptable Characters?
- Combining Multiple Taxonomies in one URL
- Drag n Drop Post Order for multiple Custom Post Types
- Custom sortable columns ordered by meta-value?
- Sorting a query by custom field date
- Ordering Posts List By Taxonomy Terms?
- Change slug of registered custom post type in child theme
- Number of pages – multiple (custom) post types
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- how to sort post in admin column by recently
- How to sort a table of custom posts by column containing custom field
- Custom Post Type – Same Post Name, Different Post Type
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- Force unique page slugs across all post types
- Custom Slug for a custom post type and default post
- How to Sort Custom Field Admin Column by Date
- Interesting Custom Post Type Slug with Taxonomy and Custom Field
- Get slug to point to different content of the same post
- Sort Posts Best Practice
- Custom Post Type sorted by Title
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- How do I sort a custom post type admin column using two meta keys?
- 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?
- How to remove slugs from multiple custom post types
- How to rank custom post type from score points
- Combining sorted and random CPT
- Wrong generated page_name/slug on first publish of custom post type
- Stop / prevent WordPress from updating permalinks of custom post type
- Rewrite slug for CPT
- Default sort on admin columns with meta date hides draft posts with empty date value
- Categories sorting
- Wp_query: sort by PHP variable
- Crafting WP_Query array, sort by date
- Using Same Slug With Multiple Post Types
- Remove the parent slug in a CPT URL
- How to target a specific custom post type post and its all children and grandchildren?
- Index page with the same id as the slug
- Custom Post Type with Same Page URL
- Sort and filter custom post type posts by custom taxonomy
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- Removed custom post type slug but not working for child pages
- Including taxonomy term before post type breaks top level pages
- Custom Post Type – Duplicate Page Slugs
- Remove permalink for custom post type
- Custom Post Type archive-{post-type}.php not working
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- sort post types by amount of views
- Slug for custom post type
- Rename a slug label
- Using page slug in wp_query
- Listing all slugs?
- WordPress Custom Post Type – Rewrite Query
- Automatically update slug with latest title within custom post type [duplicate]
- Sort results without WP_QUERY?
- How to use a specific custom field in a custom post type as slug
- Make a custom column sortable by a value from a different custom post type
- Sorting custom post types in edit.php : Post disappear
- How can I sort the order of multiple custom field values in a custom post type?
- Sorting the Loop by Taxonomy Value
- Custom post type and multi taxonomies + customize url
- Custom Post type dont use custom page template (slug is not right)
- Show code dependant on CPT & category
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- Sort custom post type by custom datepicker instead of filtering
- How to sort by multiple values in a nested WP_Query
- How to use multiple orderby conditions on query search results? (orderby one post type, relevance)
- Change permalink incrementor into pseudo-subdirectory
- week days sorting based on starting day
- Custom Post Type duplicating slug for new posts
- WP gives 404 error for custom post type with GET variable
- Group/list/sort custom post type posts by date in tabs from acf datepicker field
- Grouping and paging CPT events by month with custom field date
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Ordering Posts List By Taxonomy Terms?
- Generate slug and meta data if meta field is empty
- Add category slug as class attribute in a link array
- Costum post type with costum (sub)taxonomy
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Category slug not showing for Custom Post Type
- How do I sort post listing by child post count?
- Make custom post type column sortable
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Ideal top-level slug methods
- Test if a Category contains certain Custom Post Types
- is this a bug or not?
- Create page using same slug as custom post type
- Removing custom post type name from permalink
- Custom Post Type slug has the same Redirection entry
- 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
- How to get taxonomy category in permalink for each taxonomy OR How to give a parent page to a given taxonomy?