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

  1. ikosweb
    Posted 3 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:

    // 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! :)


  2. nolongeractive
    Plugin Author

    Posted 3 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