query_posts with using taxonomy but not working orderby taxonomy
-
Hi,
I have a problem with query_posts() with taxonomy.
I have Custom Post ‘koncerty’. I create taxonomy for this custom post:
– miejsce //means PLACE
– datakoncertu //means date od event format ex. 2017-01-01
– adres // means address
– godzina // measn hour of eventI put on my template query like:
query_posts(array( 'post_type' => 'koncerty', 'tax_name' => 'datakoncertu', 'orderby' => 'tax', 'ordertax' => 'DESC', ) );
Posts are displayed by not order by taxonomy.
Could you tell me how can I create query to show posts from post type “koncerty” and sort by taxonomy “datakoncertu” (it’s date od event)??Thank You
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘query_posts with using taxonomy but not working orderby taxonomy’ is closed to new replies.