Skip Navigation

[Resuelto] How to create a link from a View to a Content Template which uses the Post Title

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The issue here is that the user wanted to customize their CPT url .
Solution:

This can be done by modifying the rewrite rules in the CPT settings in Types.

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

Etiquetado: ,

This topic contains 5 respuestas, has 2 mensajes.

Last updated by Shane hace 3 años, 8 meses.

Assigned support staff: Shane.

Autor
Mensajes
#1192579

I have created a View which displays a filtered taxonomy of Executive Team in my Custom Post Type of Staff Members – hidden link

When clicking on one of the Executive Team, I would like to show the individual Executive Team member and use the following URL – hidden link

The name at the end of the URL should be generated from the Custom Post Title.

Is this possible and if so, what is the correct procedure to achieve this?

#1192654

Shane
Supporter

Languages: Inglés (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Craig,

Thank you for contacting our support forum.

It seems clicking on the post already takes you to their profiles.

Is it that you want the url to stay as how you have it in the example?

Please let me know.
Thanks,
Shane

#1192660

Hi Shane,

Thanks for taking a look.

Yes, I would ideally like the URL to be as my example (hidden link), and not as hidden link

Kind regards,
Craig

#1192756

Shane
Supporter

Languages: Inglés (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Craig,

Ok You should be able to do this by changing the rewrite rule for the CPT.

Go to the CPT settings and search for the rewrite settings.

From here you can add your custom logic which means you can add 'about-sbha/whos-who/executive-team'

Thanks,
Shane

#1192991

Hi Shane,

Thank you for your assistance. I can confirm that worked perfectly.

Best regards,
Craig

#1193172

Shane
Supporter

Languages: Inglés (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Craig,

I will be marking this one as resolved.

Thanks,
Shane