Saltar navegación

[Resuelto] Custom permalink structure

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

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: Africa/Casablanca (GMT+01:00)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Jamal hace 4 años, 7 meses.

Asistido por: Jamal.

Autor
Mensajes
#1626349

PZ

Custom permalink structure

In permalink structure I need custom structure.

In Dashboard:
Settings / Permalinks / Custom Structure
I need a new tag in "available tags:".

Tag has to group months in academic year manner: 4 months of a given year (Sep, Nov, Oct, Dec) and 8 months of the following year (Jan-Aug).

How to do it easily?

Is it possible to do using toolset?

#1627269

Hello and thank you for contacting the Toolset support.

I am not sure what URL structure you want to create and for what post types. Can you elaborate more? Give an example of an URL and explain each part of it is what. And what post types for? The default posts or a custom post type?

In the meantime, it is worth mentioning that the custom URL structure is available ONLY for the default posts, categories; and tags. Custom post types and custom taxonomies have only one structure:
- Custom post types(CPT): /{cpt-slug}/{post-slug}
- Custom taxonomies: /{tax-slug}/{term-slug}
{cpt-slug} and {tax-slug} can be configured.

But it is not available, by default, Date archives are not available (/2020/04/26/post-slug). The only way supported by WordPress is programmatically using custom rewrite rules. Check this article https://code.tutsplus.com/articles/the-rewrite-api-the-basics--wp-25474

Or you may consider using a 3rd party plugin to do so such as:
- https://wordpress.org/plugins/permalink-manager/
- https://wordpress.org/plugins/custom-post-type-date-archives/