Created
May 29, 2013 11:36
-
-
Save anova/5669654 to your computer and use it in GitHub Desktop.
Hatırlatma : WP_Query için taxonomy bazlı sorgu yaparken "taxonomy_adi=$kategori_slug_ismi" olarak sorgu yapılmalıdır.
Note : Use "taxonomy_name=$category_slug_name" for WP_Query queries.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$query_parameters = "post_type=portfolio&posts_per_page=-1&orderby=$portfolio_order&order=DESC&portfolio_category=$post_name"; | |
$portfolio = new WP_Query($query_parameters); | |
while ( $portfolio->have_posts() ) : $portfolio->the_post(); | |
//loop content | |
endwhile; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment