Why should you get redirected to the 404 page if you display an author archive without posts? This isn’t the default behavior of WordPress.
For example, if you go to the following URL:
http://example.com/{permalink_base}/author/{author_name}
WordPress calls the author.php
template inside your theme folder. There you have a loop which will return all posts of the author {author_name}
. If this user has no posts, the loop will return nothing and will not redirect to the 404.php
template.
So you have to options:
- Look in your themes
author.php
file what’s going on there - Check if the user really exists in WordPress. You have to use the
username
and not thedisplay
ornicename
inside the URL.
Related Posts:
- posts page – different lengths of excerpt
- how to show all post in my page-grid.php template page
- Single post as homepage?
- Getting a 404 error when clicking edit page
- How can I pass the ID of a post to a page template by clicking a url?
- Switch to page template when using post permalink
- Get Page ID of blog homepage
- custom post template file not shown, instead all the time 404.php
- 404 error on default post type and default taxonomy fronted page
- static landing page leading to author specific pages w/ “live” content
- Why won’t pagination work?
- Posts and Pages: 404 Page not found
- Change Author Name to Sitename on Frontend
- How do I disable the “by author” hyperlink on posts?
- Single Sidebar; multiple templates! How?
- Is it possible to query a category with specified posts?
- My blog “page” used to show a list of posts, but now it’s just showing the page content?
- 404 error on every post and page other than home
- How to arrange different post categories in template
- Get post title of faulty link on 404 error page
- how to style an individual page in a category [duplicate]
- Redirecting posts in WordPress to a specific page
- how to show all type of author posts in author page (SOLVED)
- custom post type single page template not working
- WordPress “Posts Page” isn’t showing template dropdown
- Cannot Create a new Post [closed]
- All Posts Linking to Author Posts directly
- Total number of posts in query (category/tag/author/search results/main page…)
- Custom Permalink Structure for Pages & Posts
- Getting a “404 Not Found” error when “Preview Changes” is clicked
- WordPress Query Posts From Category Post on Static Page
- How to create a “latest news” page showing a list of posts from blog category
- Is it possible to give the user the chance to select between two single template files to use in a post?
- Create a custom posts page
- how to set social icons to product / post template (Auros theme)? [closed]
- How to identify and hide/remove an element from a WordPress page [closed]
- wordpress posts template remove default template from menu
- How do you search for a post or page with a certain url on the WordPress admin panel?
- Change post author without using wp_update_post()
- How to add some html formated text to every new post in WordPress
- Is it possible to lock all new and existing WordPress posts to one specific author?
- Force a specific template as default
- Intercept page request and add value to it
- How to get the ability to change the author of a post
- Echo Text If User Is Logged in But NOT the Author of post
- WordPress 302 Redirect to Random Product/Post/Page
- showing posts of an specific category in admin custom menu with style of admin posts section
- Output Post with ACF Fields into other Post
- How to create a page that shows the last 10 posts?
- $_GET parametters not working in an specific template
- Only allow posts with a specific term to only be viewed by other authors with the same term in their post
- New Posts and Pages Won’t Save
- My Custom Post Type Still Using index.php
- get_children returns older images
- Give posts a particular template based on the assigned category
- the_content() Not Grabbing All Content
- How to limit author related post listing ?
- Restrict displaying posts to the poster itself (in Back-end)
- Display Featured Posts Grid on Static Page (Gazette)
- Detecting current page from class method
- Get total post from an author
- Having pages after specifying post_type post
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- Send email to author of post on post submission
- List all posts, pages and custom post types in admin
- Display a post via template
- Make ‘blog’ page show content as well as posts underneath it
- I don’t want the complete article to show on homepage
- Single post full screen template not inheriting WordPress role permission
- How can I set a maximum allowed post size and number of posts submitted?
- How to set a certain Custom Template to a Single Blog Post
- Get x recent posts by author?
- Post/page title to permalink transformation – what is behind the scenes?
- Would a “hub” page work better as a page or a post?
- Display on page every post in blog WITH comments
- Are post, page and category IDs unique to each other?
- Exclude a category of posts in author template
- List all native posts in template page?
- Showing recent post of category in page
- HTML Inside of Shortcode Breaks Shortcode Output
- Sidebar on single.php not showing up
- How to Featured content with images in home page?
- Get latest author posts inside the loop
- If post does not exist, do something
- Post Templates and Post ID’s
- Author Avatar as default first image
- Setting limit to posts or page creation
- Cannot select certain authors for posts after import
- Display message depending on capability outside loop
- Trying to query all posts in category 4
- Create a frontpage.php and static page template
- Using Posts Like a Page
- Pagination for normal (standard) posts on a page with a custom loop?
- Changing wp_link_pages() to “Next Page” and “Previous Page” buttons?
- Authors’ Links on Homepage Not Going to Author Post Pages
- Send email to admin with post author
- posts going to 2 pages/categories only show up in 1
- Have posts included on a page that share same category
- Preview page/post revisions without overwriting current content
- Link from Post to Another Post Via Clicking on Words within Original Post