Skip to content

Instantly share code, notes, and snippets.

@anova
Created May 29, 2013 11:36
Show Gist options
  • Save anova/5669654 to your computer and use it in GitHub Desktop.
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.
<?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