WordPress Taxonomy Menu
If I understood this correct, then you need a taxonomy.php file. LINK
If I understood this correct, then you need a taxonomy.php file. LINK
You can try this: function my_car_rewrite_rules( $rules ) { $newrules = array(); // add a rule for this kind of url: // http://myhost.com/cars/ferrari/used/123 // => http://myhost.com/index.php?post_type=cars&ferrari=used&p=123 $newrules[‘^cars/([^/]+)/([^/]+)/([^/]+)$’] = ‘index.php?post_type=cars&$matches[1]=$matches[2]&p=$matches[3]’; return $newrules + $rules; } add_filter(‘rewrite_rules_array’,’my_car_rewrite_rules’); and remember to “save the permalinks” when testing. I added /cars/ so this rewrite will not overwrite your other pages. … Read more
I believe your error is in the if ( $taxonomies ) statement, I believe you want if ( is_taxonomy( $taxonomy ); ) see this link for further usages. I’m not at home so I can’t test this, but I think the option you present should work, as mentioned here. $args = array( ‘name’ => array( … Read more
Try this.. SELECT * FROM $wpdb->posts p INNER JOIN $wpdb->term_relationships tr ON p.ID = tr.object_id INNER JOIN $wpdb->term_taxonomy tt ON tr.term_taxonomy_id=tt.term_taxonomy_id inner join $wpdb->terms t on t.term_id=tt.term_id and t.slug=’igralni’ WHERE p.post_title LIKE ‘А%’ AND p.post_type=”filmi-i-serialii” AND p.post_status=”publish”
Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
Get value from post meta array, and add it as a category
Check out the WP_Query() function. You’ll be able to run multiple queries and get an array for each post type
I would store as a custom field, like you say as a timestamp or ISO 8601 (YYYY-MM-DD). That way you can leverage WP_Query’s Custom Field Parameters for queries within your theme files. For instance: // Get posts where the custom field is less than the current time $foo = new WP_Query(array( // other query vars… … Read more
Hiding an Advanced Custom Field based on Taxonomy Field selection
Query posts filter not working