Passer la navigation

[Résolu] Set existing page as custom post type archive page

This support ticket is created Il y a 3 years, 5 months. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 6 réponses, a 2 voix.

Dernière mise à jour par davidW-32 Il y a 3 years, 4 months.

Assisté par: Minesh.

Auteur
Publications
#2524645

I have designed a page lien caché and use it already on my website. I woud like to set this page as archive page for the custom type "Top ERP Anbieter". The default archive page lien caché appears in my site map (also for search engines; I use RankMath Pro plugin) and is horribly designed and I want to replace it with lien caché. How can I achieve this without designing a new page?

#2525617

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset offers limited rewrite URL options but in your case I think what we offer should work.

Can you please navigate to:
=> Toolset => Post Types => Edit post type "Top ERP Anbieter" => Under section "Options" -> "has_archive" add your page slug in the input box "top-erp-anbieter-auswahl" (without quotes) and save your post type.

Check if this solution help you to resolve your issue.

#2525747

Unfortunately this does not give the desired result but makes things worse for us:
Wenn calling lien caché from the mega menu, it opens lien caché which is the "horrible" standard WP (Astra theme) archive page. That is why we removed the setting again.
Do you see any other solution or would we need to create a new archive page which would be a copy of our lien caché page?

#2526053

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

At this end when I try to load the URL you shared:
- lien caché

I can see it does load the page without any issue and the URL does not change to the following as you claim:
- lien caché

Did you able to fix the issue?

#2526079

"we removed the setting again" Can you give us another solution?

#2526083

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Toolset offers limited options for URL rewrite and the one which we offer you already tried.

You may have to use the URL rewrite plugin that serve your requirement. You should check the options available with the following link:
- https://wordpress.org/plugins/search/permalink/

And see what plugin serves your needs.

#2529237

I found another solution. Thank you!