WordPress.org

Ready to get started?Download WordPress

Forums

need help to add my Custum field to a function? (2 posts)

  1. taghaboy
    Member
    Posted 4 years ago #

    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.

  2. taghaboy
    Member
    Posted 4 years ago #

    is the include will work in this function?

Topic Closed

This topic has been closed to new replies.

About this Topic