Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to display the posts of a particular category in another page in wordpress and design it ?

Discussion in 'Starting a (WordPress) Website' started by annasujith, Feb 11, 2016.

  1. annasujith

    New Member

    Joined:
    Feb 11, 2016
    Messages:
    1
    Likes Received:
    0
    Code:
    <?php
        $terms = get_terms("product-category");
        foreach ( $terms as $term ) {
        ?>
         <div class="col-md-4 col-sm-4 col-xs-12">
            <a href="<?php echo  esc_url( get_term_link( $term ) ) ;?>">                 
            <div class="service wow slideInUp">
                <div class="icon">
                    <img src="<?php echo z_taxonomy_image_url($term->term_id); ?>" />
                </div>         
                <h4><?php echo $term->name; ?></h4>
            </div>
            </a>
        </div>
    <?php } ?>
    Using this code, i have displayed the posts of a particular category "pvc-hose" of taxonomy "product-category". But the page is blank with only text using this code when clicking a particular category. I want to give a design format with header and footer to this page. Does anyone know how to do this ?
     
    #1

Share This Page

Web Hosting