Hello,
Please signup to http://www.viralbae.com
When the username is clicked, it will redirect to Author Archive page.
since the user is new, it says page not found error.
I expected a default author template to load even if the user do not have any posts.
Please advise.
Thanks!
Hello,
I managed to log-in ad saw what you mean but unfortunately i have no easy solution for this. You can try a redirect like in this topic https://forum.tagdiv.com/topic/link-profile-to-author-page/ maybe you can replicate the function you found and use for the authors page as well.
Thanks.
That plugin would redirect to a different page. But Ideally I’d expect a message in Author page to say ” To get started please click Post option”.
The above should be applicable for Author with zero posts only and I’m looking for assistance in editing core theme file.
Hi,
You can probably add a condition to the authors.php or edit the 404 file if you wish. You can reference this topic: https://codex.wordpress.org/Function_Reference but unfortunately I do not have an easy solution for this.
You can find the 404 page code here if you want to change it: http://screencast.com/t/hQocCg5ETUjg
Thanks.
Hello Bogdan,
Thanks for your reply.
I happened to raise same concern with another wordpress team WPMU (They suppport me for couple of wp plugins)
His suggestion looks like a much of miss out from theme side.
I’m not much into technical code. I’d appreciate some help from your technical team on this.
Please can you speak to Alin or Catalin or someone who is best on code.
My requirement is that if the Author has no posts, simply a “No Posts” text in Author Archive Page will suffice.
But this 404 error is not the one I’d expect the users to see!
George.
Hello George,
We have investigated this issue further and we found these results: If you use the theme login widget it will work as expected and send you to the author page even if the author has no posts created. But on your website you do not use the theme login and instead use the facebook login plugin. The logged in person is nor registered as an author on WordPress and thus the 404 error gets displayed as wp cannot find the author (and no author with that name exists. Just a logged in user via your plugin). The explanation you got on the other forum is correct but they missed the most important part. They did not realize the login you use is not the theme’s one. Our theme login does not create a 404 error. So, in order to override the theme code and make the plugin create an author in WP every time someone logs in, that is a different matter altogether. It will not be easy at all to accomplish. You will need to hire a freelancer for it if you really need this customization as we are a small team and time does not allow us to offer any custom work at the moment.
Thank you for your understanding.
Thank you Bogdan for the extensive description.
“If you use the theme login widget it will work as expected and send you to the author page even if the author has no posts created.”
Please could you advise where above mentioned validation code is placed in Newspaper Theme. I’d give a try to modify to place in archive page.
Thanks!
Sorry for bothering – But I ran couple of quick tests and following were the results:-
i) User profiles are created as Author only.
ii) To validate 0 posts scenario much deeper, I deleted all posts of an existing Author.
To my surpise, “Page not found” error message came back.
The theme should have supplied <b> “If you use the theme login widget it will work as expected and send you to the author page even if the author has no posts created”<b>
Please can you try at your end and post a screenshot.
Thanks!
Hello,
That is a strange issue you are having, as the theme does not give a 404 when an author has no posts: Here is an example when you click on an author with no posts on our end: http://screencast.com/t/iH8uIyDojv. So it seems something interferes with the theme default behavior. We cannot say for sure what the cause is for this, but the login comes from an untested plugin so we cannot know exactly how it’s implemented and we cannot ensure it’s functionality. Please try it without any plugins to see if the theme in it’s default state still provides the 404 error when clicking on a new author. Disable all your plugins except visual composer and test the authors page. You can easily check this by using an author box element in visual composer to get a list of authors.
Thank you!
Hello George,
Certainly! It can be found here: http://screencast.com/t/bhd7EKy3z304
I hope you get to the bottom of it. Best of luck!
Thank you!