Add rewrite endpoint to author page + pagination

Your code should works. The line: include (get_template_directory_uri() . ‘/articles.php’); Needs to have allow_url_include=1 in the server configration because you are trying to include a file via http. Can you check this? You must know also that template_redirect should be use for a real redirect, a include() may have undesired effects here. I think what … Read more

Displaying custom post types in author.php

I’ll guess that you don’t set $authorid anywhere, so it’s being ignored and returning all posts regardless of author. If you enable debugging, you’ll get a warning telling you that $authorid is undefined. It’s good practice to always develop with debugging enabled, so you don’t have to guess what your errors are. Also, don’t use … Read more

If Else Gravatar Author Picture

You need to use get_the_author_meta() instead of the_author_meta() <?php $authorpic = get_the_author_meta(‘author_pic’); if ($authorpic) echo $authorpic; else echo get_avatar( get_the_author_email(), ’80’ ); ?>

Give Author users the right to embed

The capability you are after is called unfiltered_html. Some options: Modify author capabilities in your theme functions.php. This is saved in the DB, so you can access a page, make sure it works then remove it from your functions.php file. A better option would be to run it on theme activation. See this page on … Read more

Author page: Comments and Ratings?

just to add to what Rarst answered, you can create Custom Post Type not to emulate Comments but as stub posts with no ui. then to every Author on your site add a custom user metadata that will hold a post id of your newly made post type (one per each author) and in your … Read more

How to get author’s name by author’s id

Try get_user_by(): get_user_by( $field, $value ); In your case, you’d pass ID, and the user ID: // Get user object $recent_author = get_user_by( ‘ID’, $recent[“post_author”] ); // Get user display name $author_display_name = $recent_author->display_name;

Restrict one post per author

Answer from comments: First, create a conditional to check if the user has already ‘published’ a post. If yes, simply redirect them. One can use update_post_meta with the post ID without any problem. Simply use that information to populate the fields.

techhipbettruvabetnorabahisbahis forumutaraftarium24edusedueduseduedusedueduseduseduedu