WordPress.org

Support

Support » Plugins and Hacks » Categories Images » [Resolved] showing default image

[Resolved] showing default image

  • 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";}?>" />

    http://wordpress.org/plugins/categories-images/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Muhammad

    @elzahlan

    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’; ?>

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] showing default image’ is closed to new replies.
Skip to toolbar