Divi WordPress Theme
  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

    Feb 11, 2016
    Likes Received:
        $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); ?>" />
                <h4><?php echo $term->name; ?></h4>
    <?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 ?

Share This Page

Monarch Social Sharing Plugin