• taghaboy

    (@taghaboy)


    Hello,
    i’use “last viewed posts” plugin, & Custum fields in my website, and i want to do some change, so how can add this code:

    <?php if ( $var_img01 ) { ?>
    <a href="#"><img src="<?php echo $var_img01; ?>"/></a>
    <?php } else { ?><img src="#/img/no-img.jpg"/>
    <?php } ?>

    to work with this function:

    <?php if (function_exists('zg_recently_viewed')): if (isset($_COOKIE["WP-LastViewedPosts"])) { ?>
    <h2>Last viewed posts</h2>
    <?php zg_recently_viewed(); ?>
    <?php } endif; ?>

    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘need help to add my Custum field to a function?’ is closed to new replies.