Articles of author template

Show woocommerce products in author archive

I’ve added permissions to authors to add products in woocommerce. I would like to know if there is a way to display products by current user in archives. Is this possible?

Current author archive in navigation menu

I want logged-in user see her/his own author archive page link in top navigation menu,say (a link to a list of all her/his posts). What I achieved so far is this: function my_nav_menu_author_link( $menu ) { if( !is_user_logged_in() ){ return $menu; }else{ $link = get_author_posts_url( get_current_user_id() ); $author_archive_link = ‘<li>’ . ‘<a href=”‘ . $link […]

The best way to create pages like an 'about', 'contact' and etc

I develop my own theme and I need to create nice looking sites like a contact page or about me page. But I don’t have any idea what wordpress template file I can use. Will I have to use page-template or something else? How do they do a premium themes?

Return subpages of an author if the parent page was published by an other author

I just stumbled over an issue while programming my own WordPress theme and I need your help. I defined an author.php file which should display the static pages and the blog pages of a given author. You have to know, that our website has a lot of pages with sub-, subsub- and even subsubsub- pages. […]

Unpublish Authors With not Fulfilled Fields

I want to unpublish profiles of users that doesn’t have all extra fields that I’ve created filled. I use a custom meta_query in a user taxonomy in order to filter those authors, and that work, but it doesn’t in author templates. function unpublish_not_full_authors( $query ) { if ( $query->is_author() && $query->is_main_query() ) { // your […]

Author Page Create Link to Page That Lists All Author's Posts?

In my author.php page, I’m wanting to create a link that sends the user to a list of all posts by that author. I thought this was a built in function of WordPress, but having trouble finding the function and its syntax. the_author_posts_link() seems to just link back to the author page. <div class=”outerContainer longFormContainer”> […]

wp_list_authors() returning the wrong member url

I’ve recently started work on a site which includes both BuddyPress and bbPress. When I use the wp_list_authors() function the list returned to me links to each author’s BuddyPress profile. Disabling BuddyPress makes wp_list_authors() link to the author’s bbPress forum profile page. How can I ensure that wp_list_authors() returns links to each author’s standard author […]

Authors Page : A page of authors

I’m looking for a way to create a parent authors page and then use the author.php for the individual author pages. I’ve been out of the loop (no pun) for a couple months and am wondering the best way to do it.

Author template help. How to check if field exists in the profile?

I’m coding my author template. I want something like this <?php if(Author filled about me)) { ?> <div class=”title”>About me</div> <div class=”descwrap”> <div class=”descinner”><?php echo about me; ?> </div> </div> <?php } ?> I tried this code. But its not working. <?php if(isset($curauth->description)) { ?> <div class=”title”>About me</div> <div class=”descwrap”> <div class=”descinner”><?php echo $curauth->description; ?> […]

next_posts_link and previous_posts_link problem

Below is the code from my author.php file. The problem is that next_posts_link and previous_posts_link only generate links based on the number of posts in the blog authored by the author in question, not the number of posts in the query ( which includes pages and events). I have used WP_Query to add the custom […]