add_filter to modify a slug?
-
Hi
actual state
I am using a custom post type, that is ‘portfolio’. According to WP’s philosophy, custom post types are part of the final URL, hence my URLs always contain the string ‘portfolio’ (example: [Link redacted])target state
I want to modify the URL of my posts in the way, that ‘portfolio’ becomes removed from all links produced by WP (example: [Link redacted])I am new to WP hooks and filters, but I understood that filtering is a way to modify the language-sensitive post slug. What function of the qts-slug plugin do I have to filter (using add_filter) to modify the slug (or final URL) of a post?
Thx
Florian[Link redacted]
[Moderator Note: Please be aware of the example domains you’re providing and never use a porn site. Use example.com instead.]
- The topic ‘add_filter to modify a slug?’ is closed to new replies.