• For example, i am building a cinema site..

    For movies – I am using post – The movies are post there.. For actors – I am using post_type : persoane , Taxonomy : lista.

    How can i retrive the movies play by bruce willis in https://cinema.trancelevel.com/persoane/bruce-willis/

    For example, i have : https://cinema.trancelevel.com/the-cold-light-of-day-2012-2/ This movie have Bruce Willis Tag….( this is a regolar post in wp)

    In Bruce Willis page i want to retrive the movie…. that have Bruce Willis Tag

    In conclusion i want to display the movies that actor play in

    I anny body know please help. Thanks in advance

    I try this but no sucess

    <?php $args = array(
      'tax_query' => array(
        array(
          'taxonomy' => 'post',
          'field' => 'slug',
          'terms' => get_query_var('term')
    
        )
      )
    );
    query_posts( $args );
    if ( have_posts() ) : while ( have_posts() ) : the_post();
    
      echo get_post_format();
    endwhile; else:
      echo 'No movie found';
    endif;
    wp_reset_query();
    ?>

  • The topic ‘Problem display tags…???’ is closed to new replies.