Categories Images
[resolved] showing default image (3 posts)

  1. lkycy
    Posted 2 years ago #

    hi, this plugin solve my problem but i want to show defaul image if any image not uloaded for a category. i try something but not working im not a php coder. so can you help me?

    i try this:
    <img src="<?php if (function_exists('z_taxonomy_image_url')); else {echo get_bloginfo("template_url");"/images/1900.jpg";}?>" />


  2. Muhammad
    Plugin Author

    Posted 2 years ago #

    Sorry for my late reply.

    You just do like this:
    <?php echo (function_exists('z_taxonomy_image_url')) ? z_taxonomy_image_url() : 'path to your default image'; ?>

  3. Permanence
    Posted 1 year ago #

    I cant get this to work. I am entering

    <?php echo (function_exists('z_taxonomy_image_url')) ? z_taxonomy_image_url() : '/wp-content/themes/themename/img/header_default.jpg'; ?>

    It displays fine when a featured image is on a category but when there isnt nothing displays.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Categories Images
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic