• Please guys, I have this code

    <?php
    					$port_number_posts = of_get_option('portfolio_page_posts',24);
    					$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    					$portfolio_type = get_post_meta($post->ID, 'pyre_portfolio_type', true);
    					$args = array(
    								'posts_per_page' => $port_number_posts,
    								'post_type' => 'portfolio',
    								'paged' => $paged,
    									'tax_query' => array(
    										array(
    											'taxonomy' => 'p_type',
    											'field' => 'id',
    											'terms' => $portfolio_type
    										)
    									)
    									);
    
    							$featured_posts = query_posts($args);  //was get_posts before i thought of pagination
    							//print_r($featured_posts);
    							//print_r($wp_query);
    							//echo '<br /> -- '.$wp_query->max_num_pages.' <br />';
    							if($featured_posts):
    								$postCount = 1;
    								foreach($featured_posts as $post):
    				?>

    How to order by name this shit??? plz helllllpppp

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom type / order by name’ is closed to new replies.