• Hello,

    today I cute-paste a function that was in one projecte with WordPress 3.8.

    Here is the function:

    <?php
    						$args = array(
    							'post_type' => 'data-sheet',
    							'tax_query' => array(
    								array(
    									'taxonomy' => 'data-sheet-category',
    									'field' => 'slug',
    									'terms' => 'astar-premium'
    								)
    							)
    						);
    						$wp_query = new WP_Query( $args );
    					?>

    The problem is that it dosn’t work with a new project with WordPress 3.8.1,

    MCould be a bug?
    I don’t think so, but I don’t know how to do.

    Thanks,
    BEst regards,

Viewing 1 replies (of 1 total)
  • Thread Starter skanthemore

    (@skanthemore)

    Hello!

    it works!
    was my fault ;P

    <?php
    										$args = array(
    											'post_type' => 'esdeveniment',
    											'tax_query' => array(
    												array(
    													'taxonomy' => 'localitzacio',
    													'field' => 'slug',
    													'terms' => 'mad'
    												)
    											)
    										);
    										$wp_query = new WP_Query( $args );
    									?>

Viewing 1 replies (of 1 total)
  • The topic ‘3.8 vs 3.8.1’ is closed to new replies.