- This topic has 2 replies, 2 voices, and was last updated 5 years ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
WordPress generates the category link. Genesis has nothing to do with this except to call the WordPress get_the_category_list function. This function eventually calls the WordPress get_term_link function.
get_term_link applies a 'term_link' filter in its return statement. This means you may be able to intercept the link and change it to your liking. This requires a lot of work to code and debug the requisite PHP. It would make for an interesting tutorial though. If I have time over the next few days, I may tackle it.
At this point, it would be easier to setup 301 redirects for the category links than to delve deeply into code to figure out the filter.
Thanks for this info. Interesting obviously why I could never find a tutorial. 301 for now till you work it out 🙂 Thanks again
© 2023 WPEngine, Inc.