I am trying to: Access the author's archive (author "christian" who uses CPT "user-post")
I visited: All posts archive for CPT (user-post) at:
hidden link
(See screenshot/diagram attached, it visually explains the issue)
I expected to: link to author archive at:
hidden link
Instead, I got: the 404 page linking to
hidden link
Notes:
1. CPT's "has_archive" option is checked (on) and the value is blank meaning it defaults to CPT slug: user-post
2. My permalinks settings for Custom Post Types (the plugin) are:
user-post: hidden link /%postname%
has_archive: true / with_front: true
Thank you for contacting us here in the Support Forum
1. My permalinks settings for Custom Post Types (the plugin) are:
user-post: hidden link /%postname%
has_archive: true / with_front: true
==> Those Permalink Rewrite settings are not intended to work with %placeholders% but only with /prepend/
https://toolset.com/forums/topic/all-my-urls-gives-404/#post-350043
Even though the specific case of %postname% actually works, it can generate issues.
We are updating the GUI and DOC in regards, so this will be more clear in future.
The URL hidden link is the default of author archives.
- Do you have a archive template in your theme?
- Do you have customized the Archive with Views?
https://toolset.com/documentation/user-guides/normal-vs-archive-views/
Please don't hesitate to inform me in case the issue persists
Thank you
This has nothing to do with Views (Toolset), I haven't started to use Views as part of the toolset.
Maybe a function fix needs to be written to remove the custom post name from the URL:
From this: hidden link
to this: hidden link
I will contact the theme's support to see if they can shed a light on this.
Thanks for the Details
I understand.
Usually author pages are under hidden link
Of course this as well depends on your theme.
Also if you prepend the Types (Custom Post Type) and use a custom URL format (/prepend), this will not affect your Author Page Slug/URL.
You may check in the theme's files if they use the_author_posts_link();:
https://codex.wordpress.org/Function_Reference/the_author_posts_link
Or perhaps it's customized.
Please don't hesitate to inform me in case the issue persists
Thank you for your patience.