Results 1 to 3 of 3

Thread: How to show images along category names on homepage

  1. #1
    Thread Starter
    manishkhullar's Avatar
    Join Date
    Nov 2012
    Location
    India
    Posts
    893
    Thanks
    19
    Thanked 15 Times in 14 Posts

    How to show images along category names on homepage

    I am trying to add images along the category name (main categories only) in the "Ad categories" box on homepage.
    I am using the plugin that needs me to add certain code where the ad categories are being displayed.
    <ul>
    <?php foreach (get_terms('your_taxonomy') as $cat) : ?>
    <li>
    <img src="<?php echo z_taxonomy_image_url($cat->term_id); ?>" />
    <a href="<?php echo get_term_link($cat->slug, 'your_taxonomy'); ?>"><?php echo $cat->name; ?></a>
    </li>
    <?php endforeach; ?>
    </ul>
    Where should I be looking for the code that generates ad categories on homepage ?

  2. #2
    darnscotty's Avatar
    Join Date
    Aug 2012
    Location
    Cape Town, South Africa
    Posts
    37
    Thanks
    9
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Expired Customer csgibson's Avatar
    Join Date
    Apr 2013
    Location
    Cali, Colombia
    Posts
    70
    Thanks
    27
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [TUTORIAL] Show related ads including images by category
    By conseo in forum ClassiPress General Discussion
    Replies: 32
    Last Post: August 21st, 2014, 06:50 PM
  2. No category show + 3 images
    By piplo in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: December 28th, 2010, 02:34 PM
  3. Show city instead of category in homepage listing
    By mbianchi in forum ClassiPress General Discussion
    Replies: 1
    Last Post: June 12th, 2010, 05:56 PM