Show the most recent post for an author on the author page

Basic debugging… $current_author = get_query_var(‘author’); var_dump($current_author); … would reveal that $current_author is a string, not an object. The problem is that you are trying to use the string as an object in the query. get_posts( ‘author=”.$current_author->id.”&posts_per_page=1&order=DESC&orderby=post_date’ ); Change $current_author->id to $current_author and the query works. $author_posts = get_posts( ‘author=”.$current_author.”&posts_per_page=1&order=DESC&orderby=post_date’ );

Removing Author name

First you need to have a child theme. Add this to your style.css of your child theme .entry-meta .byline { display: none; } This should remove only the author from the post. Here’s a bit more information on customizing twenty fourteen theme in wordpress: http://techdwarf.com/customize-twenty-fourteen-theme-wordpress

how to show all type of author posts in author page (SOLVED)

If you use WordPress author template to show user posts ( example.com/author/{user_name} ) the best solution will be to change the main query via the pre_get_posts filter hook. function se339534_author_any_post_types $query ) { // apply changes only for author archive page if ( ! is_author() || ! $query->is_main_query() ) return; $query->set(‘post_type’, ‘any’); } add_action( ‘pre_get_posts’, … Read more

How to Hide Blog Post Author?

I’d use Firebug in Firefox to see the CSS class used for the author name, then disable display. So, assuming that the css class was called ‘author_name’, I would put this in the styles.css of the child theme that I was using, or in the ‘extra CSS’ area of the theme settings (if available); .author_name … Read more