• 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)??

    I have a lot of date in taxonomy “datakoncertu”. I need to sort by only this taxonomy from older to newest (DESC)

    Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with taxonomy and query_posts in custom post type’ is closed to new replies.