• osflake

    (@osflake)


    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 event

    I 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)
  • Thread Starter osflake

    (@osflake)

    In taxonomy “datakoncertu” I have a lot of dates:
    – 2017-01-01
    – 2017-02-03
    – 2016-12-15
    etc..

    I want to sort by this taxonomy

Viewing 1 replies (of 1 total)
  • The topic ‘query_posts with using taxonomy but not working orderby taxonomy’ is closed to new replies.