WordPress.org

Ready to get started?Download WordPress

Forums

HungryFEED
Use template variables in more ways (2 posts)

  1. jubalince
    Member
    Posted 1 year ago #

    I'd like to add a "tweet this" button after each entry, using the Twitter code below. When I try to use the {{permalink}} and {{title}} variables, it uses those of the page (instead of each feed item). Any ideas how to fix this?

    <div class="hungryfeed_item">
    <a href="{{permalink}}"><b>{{title}}</b></a>
    </div><a href="https://twitter.com/share" class="twitter-share-button" data-url="{{permalink}}" data-text="{{title}}" data-via="postvite" data-related="postvite" data-count="none">Tweet</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

    http://wordpress.org/extend/plugins/hungryfeed/

  2. Jason
    Member
    Plugin Author

    Posted 1 year ago #

    Hmm, it's possible that is just what in included in the feed itself. HungryFEED only is able to display what the feed tells it. Without looking at the feed source that would be my first guess.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags