Skip Navigation

[Resolved] Create an archive page as a subpage of an custom post type slug url

This support ticket is created 5 years, 8 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by renateM 5 years, 8 months ago.

Assisted by: Christian Cox.

Author
Posts
#1314813

Tell us what you are trying to do?

I created a custom post type called "seminare". So my resulting URL is hidden link or for a specific seminar hidden link
My goal is to create archive pages for different years. So for example hidden link showing all seminars that took place in 2018 and hidden link for alle seminars taking place this year.
Could you hint me at documentation / a solution for my problem. Many thanks in advance.

Is there any documentation that you are following?
I watched tutorials about creating custom archives.

Is there a similar example that we can see?
Not really.

What is the link to your site?
It is hidden link

#1314951

Hi, Toolset's WordPress Archive feature does not natively support this exact custom URL structure, unfortunately. One alternative that is available is to use a post date Query Filter in a WordPress Archive (see the attachment here). You can configure that filter to respond to a URL parameter, and the resulting URL would look like https://yoursite.com/seminare/?y=2019

However, if a parameter-based URL isn't going to work for your site you can look for a 3rd-party plugin solution for custom permalinks or archive URLs by date, or you can implement a custom code solution that manipulates WordPress rewrite rules: https://codex.wordpress.org/Rewrite_API/add_rewrite_rule
Rewrites are tricky unless you're comfortable with regex patterns. Anything outside the realm of standard WordPress URL patterns falls outside the scope of the support we provide here in the forums.

#1315313

My issue is resolved now. Thank you!