Problem with Taxonomies
-
Hello! first i want to tell you that the plugin is great!
Well, lets go to the trouble:I created custom taxonomies in my function.php file:
function taxonomias_propias() { register_taxonomy('rubro', 'post', array( 'hierarchical' => false, 'label' => 'Rubro', 'query_var' => true, 'rewrite' => true)); register_taxonomy('pais', 'post', array( 'hierarchical' => false, 'label' => 'Pais', 'query_var' => true, 'rewrite' => true)); register_taxonomy('ciudad', 'post', array( 'hierarchical' => false, 'label' => 'Ciudad', 'query_var' => true, 'rewrite' => true)); } add_action('init', 'taxonomias_propias', 0);
I don’t know if this code is right, but i can see and edit this custom taxonomies in the dashboard.
Here the issue:
When i put the shortcode to show 3 different select inputs -one for each taxonomies- it only works in the first taxonomy. I mean, the plugin show the 3 select inputs, but only in the first input show me the list correctly.
If i change the order and put “pais” for “rubro”, it only show me the pais’s list, but rubro’s list disapear.I have tried to put:
[searchandfilter fields="rubro,pais,ciudad" submit_label="BUSCAR" headings="Rubro,País,Ciudad"]
, and nothing, even if i put:
[searchandfilter taxonomies="rubro,pais,ciudad" submit_label="BUSCAR" headings="Rubro,País,Ciudad"]
it doesnt work.What can i do to show all of the lists correctly?
I dont know if is important, but i’m using a theme with a visual composer, but it acept shortcodes
- The topic ‘Problem with Taxonomies’ is closed to new replies.