To check if s/he is the right author, you can use is_author()
function using the author id or name as parameter. And, depending on how you set up the settings for displaying author box or last updated. You can put your settings.
I am considering your settings are in options table. So I will use `
if( is_user_logged_in() && is_author('4') ){
update_option( 'display_author_box', true );
}
If you want to show him customized posts, you can do that with a query.
Hope this helps.
References:
is_author() function
update_option() function
Related Posts:
- Show author archive pages for authors with no posts
- Creating distinct pages for author profiles and lists of posts by author
- Showing author’s page with no posts
- Show woocommerce products in author archive
- How to add child page to author.php
- Post list based on the page author
- Is author.php a core file?
- Most recent post is missing from Author page
- Can I Include author login in post class?
- Get 404 when try open author page
- Author Page Create Link to Page That Lists All Author’s Posts?
- Unpublish Authors With not Fulfilled Fields
- Display all authors in a theme template
- List of all authors avatars
- can’t see information on author page that don’t have posts
- How to fix a specific page (author archive) loading speed?
- How to create many author’s page?
- Author page link in comments is different than in posts?
- if else for custom $curauth-> field
- Show the most recent post for an author on the author page
- author.php get current id of author for advance custom field
- the_author function is displaying wrong name and url
- Programatically change post author
- How to get author’s name by author’s id
- Give Author users the right to embed
- How can I publish a post with two or more authors?
- What’s a good way to put authors into groups
- Permalink to user profile
- Show Author in custom rss feed
- What is the difference between user_description and description?
- Authors Page : A page of authors
- How to get posts without author?
- Allow Content Author to Publish, But Not Edit or Delete
- Get only the author profile picture image url inside a loop
- Is it possible to set/override default the_author_posts_link to login name?
- Get the excerpt for a post created by the related author
- get the username of a user in his author page
- Output author and description if description is not empty
- WP authors page
- Send transactional email: first user’s post
- How to update author display name on blog posts based on user role
- If post author ID is..show that
- Getting $curauth->ID to work inside a shortcode
- Remove admin role from the “Author” user listing on individual post screen
- Author List page: Exclude based on last post date not working correctly
- Display author name, outside the loop, if they haven’t published a custom post
- Author list based on recently active
- Authors & profiles (and exclude ID’s)
- Author name is not working on category page
- How do I create WordPress Authors Dropdown with links
- Migrate different author’s content to current author
- Display A list of Admins
- Remove author bio from posts of a specific author
- Get all media files for current author
- Author’s Id from wp list authors function
- Author template help. How to check if field exists in the profile?
- How to let authors only see website stats for their posts?
- how to get page views of author page?
- author_link filter not work correctly
- Auto assign author to new posts with wp_insert_post_data
- Author Box Meta Issues
- Display Authors Selectively
- How to show user role in author.php
- How to conditionally output to sidebar of each author’s archive and posts by each author?
- ACF Relationship – Exclude pages not created by author
- How to reorder the content of the single post?
- Can change twentytwelve_entry_meta “by-author” links?
- set post author depending on condition via frontend post submit
- get_comment_author_link not working properly
- How can I get all author written content?
- Can’t change author to myself after post published
- Author page points to 404 error page
- If statement for is_author of a post
- WordPress Authors not showing with User Submitted Posts plugin
- Authors to be able to customize their author pages?
- Check For get_post_meta on Author Archive Page
- How to target a post by a sepecific author?
- Get top authors for the last 30 days with posts count and avatar
- When clicking on author, it shows my email address in url
- Change author base and slug in author link
- How do I edit disclaimer/contact information?
- Yoast SEO plugin open graph add meta tag to fetch Avatar from Author Page
- Open the_author_link() in a new window
- Showing the authors username and bio on custom author.php
- How to remove author from Social sharing links?
- WordPress author box
- How to add authors contact info to author metabox in post editor?
- Variable undefined but it is defined
- Show author name not the author ID
- the_author_meta not resetting
- Php markup question: php/html within conditional bit
- Calling a custom profile field only it it exists
- Change Post and CPT author on the fly while publish the post
- Profile Field In Admin Bar
- Multiple Authors on a Single Blog
- Want to add a custom author link to a single.php
- Uncode theme, create author page and author link under the blog
- How to load locally saved author photos based on author ID
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- How to add avatar to authors list?