Beautify query parameters with Flex Loop Filter. Possible?

Posted in: Newspaper
Post count: 17

When using Flex Loop Filter with Flex Loop Builder, I want to avoid verbose, ugly query parameters as below:

http://www.mydomainname.com/?tdb_tax_tdtax_my_taxonomy_name=something

Instead I would like to see something like:

http://www.mydomainname.com/?mytaxonomyname=something

The problem is I already created and used the custom taxonomy tdtax_my_taxonomy_name following the example of one of the prebuilt websites (my mistake). I am using ACF.

If I change the Taxonomy Key in ACF it will break my site, so that is not an option.

I already set up a permalink rewrite via ACF Advance Settings for the custom taxonomy, so I can go to http://www.mydomainname.com/portfolio/category/something and that works.

The problem is still the Flex Loop Filter and the long, ugly query parameter. I am sure this can be changed with some php magic, but how?

Any help greatly appreciated.

Post count: 17

So I ended up changing the taxonomy key in ACF from “tdtax_my_taxonomy_name’ to ‘portfolio_category’. That of course broke my site because the relationship Custom Post Type – Custom Taxonomy was cut.

I fixed that by updating the database directly.

update wordpress.wp_term_taxonomy set taxonomy = ‘portfolio_category’ where taxonomy = ‘tdtax_my_taxonomy_name’;

So now when I use the Flex Loop Filter I see http://www.mydomainname.com/?tdb_tax_portfolio_category=something.

Which looks better than before, although still not quite there, I would like to get rid of the tdb_tax prefix altogether.

http://www.mydomainname.com/?tdb_tax_portfolio_category=something (nay)
http://www.mydomainname.com/?portfolio_category=something (yea!)

Post count: 35449

Hi,
Unfortunately some of them can be only with custom code changed, but some of theme can be renamed, so instead to display the ?tdb_tax_tdtax_my_taxonomy_name=something to have a different parameter, what you can do is to use a custom plugin like this one – https://wordpress.org/plugins/rename-taxonomies/ but the problem is that there can appear 404 for some links, so the website should be checked after the plugin is applied.
Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.