Skip Navigation

[Resuelto] Using a custom permalink structure

This support ticket is created hace 5 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por bastienB hace 5 años, 1 mes.

Asistido por: Waqar.

Autor
Mensajes
#1333091

Tell us what you are trying to do? I have a "logical" permalink structure that I'd like to maintain but I'm not sure that we can use a page in the CPT permalink structure.

Is there any documentation that you are following? No.

Is there a similar example that we can see? Not that I'm aware of.

What is the link to your site? enlace oculto

---

So we have this page : enlace oculto

Its purpose is to display a list of the different customization method we offer. I was going the "Page" route but since I'm getting a little bit more comfortable with Toolset, I figured that having "Customization" as a CPT instead would allow us to do some cool things later with our products.

The goal would be that each customization method would sit at an URL like : enlace oculto

Although I can configure a View and have that list displayed on "/how-its-made/customization" so that the page is automatically updated when we add a new customization method, I'm not too sure how to address the single-page issue.

Is it possible to create a new term "Flat Embroidery" for the CPT "Customization" and have these created under "nationhats.com/how-its-made/customization/flat-embroidery"?

Basically, I'd like to use a custom permalink structure with a specific CPT.

Thank you!

#1333311

Hi there,

Thank you for contacting us and I'd be happy to assist.

To include "/how-its-made/" between the site's base URL ( nationhats.com ) and the post type's slug ( customization ), you can follow these steps:

1. Please go to the settings of your custom post type "Customization".
( WP Admin -> Toolset -> Post Types )

2. On this post type's settings page, you'll see a radio button for "Use a custom URL format" option, just under the "Rewrite" checkbox.

3. Select this option and include "/how-its-made" in the field blow it, as shown in this screenshot:
enlace oculto

After saving the settings, please check the permalinks of your single "Customization" posts.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1339013

Hello Waqar,

Thank you for the provided setup instruction.

I followed the steps you indicated but I'm still getting a page not found error on our archive page.

The single-post page works well (enlace oculto).

However the archive seems to have some issues (enlace oculto).

Waiting for your feedback.

All best,
B

#1339755

Hi,

Thanks for the update and glad that it worked.

For the post type's archive page, please also include "how-its-made/customization" in the field, below the "has_archive".
( on the post type's settings screen )

Screenshot: enlace oculto

Note: After this change, you may have to flush WordPress rewrite rules by clicking the "Save Changes" button at WP Admin -> Settings -> Permalinks.

regards,
Waqar

#1343437

My issue is resolved now. Thank you!