Include posts with a specific custom taxonomy term in author page
Include posts with a specific custom taxonomy term in author page
Include posts with a specific custom taxonomy term in author page
How to track all users logged into a site?
Limit authors on specific catogories
Guest author – URL, base and custom taxonomy – working but unstable
To do this we will need to do 2 queries: 1) Get a list of all the users on the site via wp_user_query 2) Get posts from all the users using wp_query The code: $user_query = new WP_User_Query( ‘Author’ ); if ( ! empty( $user_query->results ) ) { foreach ( $user_query->results as $user ) { … Read more
Create a file called author.php and place the code below in it. Save that file in your themes folder. The themes folder is located at yoursite.com/wp-content/themes/themename <?php include_once(‘header.php’); ?> <div id=”container”> <div class=”content”> <?php $curauth = (isset($_GET[‘author_name’])) ? get_user_by(‘slug’, $author_name) : get_userdata(intval($author)); ?> <div id=”author-contact-info”> <h2>Information about: <?php echo $curauth->nickname; ?></h2> <ul> <li>First Name: <?php … Read more
you can hook yourself into save_post and check there if the image is present. if it is not there fire an admin_notice. more here https://wordpress.stackexchange.com/a/15355/32776 http://codex.wordpress.org/Plugin_API/Action_Reference/save_post Edit: I dont have the time to provide working code but here is a copy paste from the links above. i think that you have to figure what the … Read more
Featured Image metabox (postimagediv) doesn’t appears when it should
How to redirect author subdomain pages to each author pages on www
You can use get_the_author_meta to retrieve the username for the author of the current post in the loop. You could then use that in the image URL. <?php _e(‘Posted by’); ?> <a href=”https://wordpress.stackexchange.com/questions/147891/<?php echo get_author_posts_url(get_the_author_meta(“ID’)); ?>” rel=”author”> <img src=”/wp-content/themes/mytheme/img/<?php echo esc_attr( get_the_author_meta( ‘user_login’ ) ); ?>.png” alt=”author” /> <?php the_author_meta(‘display_name’); ?> </a> You can also … Read more