I found it (easy one):
In functions.php:
// Allow author for custom post
function allowShowAuthor()
{
add_post_type_support( 'cust_post-type', 'author' );
}
add_action('init','allowShowAuthor');
In the content template:
<ul class="author-posts">
<?php
$current_page_author = get_the_author();
$catquery = new WP_Query( 'cat=7&posts_per_page=30&order=DESC&author_name=" . $current_page_author );
while($catquery->have_posts()) : $catquery->the_post();
?>
<li class="author-post"><?php the_content();?></li>
<?php endwhile;?>
Related Posts:
- WP-Admin edit.php & post.php slowdown after import of 10k users
- How do I get all authors posts of a custom post type outside loop
- How to use a custom post type archive as front page?
- Combining queries with different arguments per post type
- How do you get the count of posts in an archive page?
- Mixing regular and custom post types (with meta_query) on home page
- How to make a WP_Query search with custom post types?
- $wp_query->queried_object->ID throws warning: Undefined property
- how to filter by last name for custom post
- The Operator “NOT IN” Does Not Work In tax_query
- Display Custom Post Type Fields
- Use WP_Query object inside a function
- WP_Query search custom posts meta date fields
- Get posts with tag all post types
- How to get the parent’s taxonomy?
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- WordPress query by multiple Custom fields and order by date
- Help with hierarchical custom taxonomies and permalinks…almost there
- New WP_query in template not working with CPT+category on some pages
- query order by date on custom type: wrong order
- Displaying a specific post in a wp query by post id
- Prevent author role from editing all posts in custom post type?
- Display only custom post type count for current author on the “At a Glance” dashboard widget
- Query custom post types and a specific page?
- Optimised Code for Pulling Taxonomy Posts
- Help with CPT template pagination
- How can I get the first 50% of all posts (within a custom post type)?
- Custom query shows custom post types in trash
- Fetch taxonomies by custom post type id array
- is there a way to retrieve posts that do not have a featured image assigned?
- How to connect two custom post types with nested loops
- Custom Post type and Custom Field WP_Query
- Display multiple custom post types and sort them chronological by one of their fields
- Using DISTINCT in wp_query
- Related posts in all categories of current post (custom post types)
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- How to show CPTs in term archive
- shortcode to show custom post types by category
- Query/list all terms and their custom post count
- Genesis filterable portfolio isotope [closed]
- convert custom query to wp_query
- Get custom taxonomies from multiple posts
- Pagination on with query_posts in custom post type template
- Loop to fetch 3 post_thumbnail instances from 3 most recent custom post types named “portfolio”
- Custom post ui plugin & WP_Query – Polylang
- How to use load more custom post type data normal or according to on click category tab In WP
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- Polylang non-default language ignores tags in WP_Query
- wp_reset_postdata() and wp_reset_query() inside shortcode are not working to reset original page query
- Why is my WP_Query outputting my entries twice?
- How to display Related Posts based on number of taxonomy terms matched
- Author posts not appearing for custom post type
- Using wp_query to modify the loop in index.php for a CPT
- Custom WP_Query doesn’t display all posts
- WP_Query() with custom post type and taxonomy — get all terms?
- Query & the_content() is showing in the header
- Variable not working in WP_Query
- Wp Query with multiple custom tag(taxonomy) by get the terms
- Query within a foreach within a query (queryception)
- Restrict category access to specific users/groups. Author always has access
- How to get Custom Post Type with Categories wise in WordPress using wp_query
- WP_Query of a custom post type isn’t working
- Query custom posts from custom taxonomy
- Related “custom post type” using “custom taxonomy”
- Page that lists publications by classifying them by taxonomy
- Exclude a specific post in a Custom Post Type
- Random item on Custom Query working Local but not on live
- Filtering posts based on three taxonomies
- wp_post_delete is deleting all offices
- How can I get custom post types to recognize pretty permalink variables?
- How to display grandchildren only of custom post?
- Sort custom post archives by a meta value from a different custom post type?
- WP_Query based on ‘s’ and tax_queries
- post type => ‘any’ not applied my custom queries
- One of my headings is mysteriously coming up as a link in my CPT Archive
- Query the title of the page to show posts with matching category in the loop
- WP Query tax_query not returning posts
- The most recent post of custom taxonomy
- How to use costum database table for custom post type
- Querying, storing, and using data from 2 separate custom post types
- date_query won’t accept day parameter, but will accept month and year for a custom post
- How can I use WP_Query argument ‘Like %..%’?
- WordPress custom post type
- Custom Post ‘Post Per Page’ Crashing Page?
- Custom post type single display is ommited
- Issue with permalinks for custom post type
- Query child posts on parents single.php?
- Paged within a custom content type template [duplicate]
- Author template – separate custom post type by custom taxonomy term for $curauth
- Custom Post Query Combined with Conditional Tags
- Custom loop won’t work, can’t find problem
- Query by post type or category
- Get all custom_post_type posts + blog posts from one category in a single query
- Customising wordpress search and using $_GET[“s”]
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- How is get_the_author connected to a custom post type?
- How to exclude certain portfolios from a loop
- show the most recent date of all posts to display on front end
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- WP Query – Can’t get posts with specific taxonomy