Saltar navegación

[Resuelto] Custom permalink structure for a custom post type

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 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 1 respuesta, tiene 1 mensaje.

Última actualización por Saul Baizman 1 year, 5 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2791584
screenshot 2025-01-10 at 01.28.40.png

Hi there,

I created a custom post type named "Artist of the Month."

Our permalink structure in the Dashboard > Settings is defined as follows:

enlace oculto

I'd like to create a permalink structure exclusively for the "Artist of the Month" custom posts with the following format:

enlace oculto

(Basically, it's supposed to mirror the typical URL structure for Posts.)

Under the custom post type definition I looked at the Options metabox, and the "Rewrite" section looked promising. (See attached.) But when I filled in the "custom URL format," it didn't work. The URL just inserted the format string into it, and the placeholders were not substituted with the correct values. An example is below.

Here's the new format: dateless_event/%year%/%monthnum%/%day%/%postname%
And here's what a link to an Artist of the Month page looks like: enlace oculto

Is this possible to do?

Thank you.

Saul

#2791589

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Toolset offers limited feature to build such custom permalinks. With the "Rewrite" section you mention that will not facilitate the use of placeholders like %year% etc..etc.

I suggest you should try any of the following plugin to build the permalinks as required:
- https://wordpress.org/plugins/wp-better-permalinks/
- https://wordpress.org/plugins/permalink-manager/
- https://wordpress.org/plugins/custom-permalinks/

#2791670

Thank you, Minesh! I appreciate your guidance.

Saul