Skip Navigation

[Resolved] CPT's author archive URL discrepancy

This support ticket is created 8 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by AllanF5151 8 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#351044
authors-archive-URL.jpg

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

#351124

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

#351320

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.

#351417

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.

#351419

Thanks Beda

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.