Tag Info

New answers tagged

1

Go into your themes single.php file and put this code in a proper place under the the_title(); This Post was written by <?php the_author(); ?>


1

/** * Get the author post count for a tax query. * * @link http://wordpress.stackexchange.com/q/159160/1685 * * @param array $tax_query * @return int */ function wpse_159160_get_author_posts_by_tax( $tax_query ) { global $wpdb; $where = get_posts_by_author_sql( 'post', true, get_post()->post_author ); $tax_query = new ...


1

You could modify it through the the_author filter: /** * Set the author name as the site title. */ ! is_admin() && add_filter( 'the_author', function( $author ) { return get_bloginfo( 'name' ); } ); where we change the author name to the site name on the frontend with the help of the get_bloginfo() function.


1

It is just easier and much more secure to have an admin user which is not an author, and use plugins like https://wordpress.org/plugins/user-switching/ to switch if there is something that can't be solved with having two browsers open at the same time ;)



Top 50 recent answers are included