Loop to display the custom taxonomy

  • Unknown's avatar

    I created the custom post type with the name “portfolio” and also created taxonomies.
    but when I loop the custom post at the page “portfolio-page.php”
    it’s only appear the_content() without taxonomies.
    I used these codes

    The loop which taxonomies didn’t appear
    <!--?php
    $args = array( 'post_type' =--> 'portfolio', 'posts_per_page' => 10 );
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();
    the_title();
    echo '<div class="entry-content">';
    the_content();
    echo '</div>';
    endwhile;
    ?>

    then I try this one again , but it doesn’t appear
    <!--?php the_terms( $post--->ID, 'my_taxonomy_slug', 'Portfolio Category : ', ' <span style="color:#000">/</span> ', '' ); ?>

    I don’t know what’s wrong with me . if someone would guide me ,, thanks in advance

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    What is the URL of the blog you’re doing this on? http://twotwotgi.wordpress.com/ is clearly not it, as we don’t have access to the php of WordPress.com blogs.

  • Unknown's avatar

    sorry , I didn’t mean with this one >> twotwotgi.wordpress.com

    I’m trying my project at localhost . In a few week I’m going launch it.

  • Unknown's avatar

    because some forum are not active as here, even I ask or post the topic.
    no one answer me :(

  • Unknown's avatar

    You are even less likely to get an answer here, these forums are for .com users who don’t have access to php.

  • Unknown's avatar

    You need to be at WordPress.ORG for help with that. It’s not a WordPress.COM blog.

  • The topic ‘Loop to display the custom taxonomy’ is closed to new replies.