WordPress.org

Support

Support » Plugins and Hacks » YAK for WordPress » [Plugin: YAK for WordPress] Adding price to featured image

[Plugin: YAK for WordPress] Adding price to featured image

  • 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/

Viewing 1 replies (of 1 total)
  • Plugin Author nolongeractive

    @jrbriggs

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

    $price = yak_price_tag(null);

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: YAK for WordPress] Adding price to featured image’ is closed to new replies.
Skip to toolbar