WordPress.org

Ready to get started?Download WordPress

Forums

YAK for WordPress
Adding price to featured image (2 posts)

  1. ikosweb
    Member
    Posted 2 years ago #

    Hi there, I'd like to extend my theme functionality by adding the price to featured images in category archives/home.

    I know how to add the category *with this code:

    <?php
    // Get the Name of First Category
    $category = get_the_category();
    echo $category[0]->cat_name;
    ?>

    Question is, whats the code for the price in yak? I tried to find it in yak_shorttags.php but cant find it. Please help! :)

    http://wordpress.org/extend/plugins/yak-for-wordpress/

  2. nolongeractive
    Member
    Plugin Author

    Posted 2 years ago #

    Well if you're in "the loop", then this should work (it's in yak_shorttags.php btw):

    $price = yak_price_tag(null);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic