Set the limit to allow author when make post!
Set the limit to allow author when make post!
Set the limit to allow author when make post!
Change the Author name to a custom field?
Write an email to plugins [at] wordpress.org, and explain your problem. There is nothing you can do without their help.
You can write your own query to include or exclude posts from an Author, This page has documentation about the options you can pass to a query. http://codex.wordpress.org/Class_Reference/WP_Query#Author_Parameters Here is an example to only get posts from the user $author. $author_query = new WP_Query(‘author_name=”.$author); for user “Amin’ : 🙂 $author_query = new WP_Query(‘author_name=Amin’);
Use get_the_author_meta(), this function returns data, it doesn’t display it. For example:– <?php $user_email = get_the_author_meta(‘user_email’); ?> For more information check it in the codex
Working code: <?php if (is_user_logged_in() ) : ?> <?php //if a certain page, then display posts authored by the logged in user $page_title=”Support History”; if ( is_user_logged_in() && is_page($page_title) ) { global $current_user; get_currentuserinfo(); $args=array( ‘author’ => $current_user->ID, ‘post_type’ => ‘post’, ‘post_status’ => ‘publish, private’, ‘posts_per_page’ => -1, ‘caller_get_posts’=> 1 ); $my_query = null; $my_query … Read more
If I’m understanding this correctly something along these lines should work. $authors = array( 1, 2, 3 ); // privileged users array $signed_in_user = wp_get_current_user(); // get current user // check if singed in user is in authors array if ( in_array( $signed_in_user->ID, $authors ) ) { $query = array( ‘posts_per_page’ = -1, ‘author__in’ = … Read more
Have you read the codex page Author Templates? There it states: when a viewer clicks on a link to a post author, by default he or she is taken to a page listing the posts from that particular author in chronological order This depends on having the correct links setup, which can be done with … Read more
If you use the comment_class function to add classes to each comment, comments by the post’s author can be styled via the bypostauthor class. You can alternately match the comment ID against the post ID: global $post; if( $comment->user_id === $post->post_author ) { // is author comment }
You are probably calling it too early and the context for the current post is not filled yet. get_author_posts_url() accepts author’s ID as first argument, You probably need to retrieve and pass that to it, similar to how you retrieve the info for following call.