[Plugin: Random Redirect 2] Idea: Support custom taxonomies
-
I’m about to make a website that uses custom taxonomies as an integral part of the navigation. A useful feature would be to have Random Redirect 2 support those custom taxonomies with for example this type of URL argument:
custom_taxonomy_1_name=subsites&custom_taxonomy_1_value=subsite65
where the choice is limited to posts that are tagged assubsite65
in the custom taxonomysubsites
.This way it is easy to support an unlimited amount of custom taxonomies. In the plugin, use something like:
$i = 1; while ( $i < 99 ) { if ( ! isset($_REQUEST['custom_taxonomy_' . $i . '_name']) ) { break; } else { add_search_attribute(); $i++; } }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Random Redirect 2] Idea: Support custom taxonomies’ is closed to new replies.