• First off, Tweet Blender is awesome. I’m very appreciative of this plugin!

    Now for my question: I’m using a plugin called wp-types that allows me to generate custom fields, which I can then insert into any post with shortcode. For example, I can insert a Twitter hashtag into my post with this code:

    [types field="twitter-hashtag" id=""][/types]

    It would be very cool if I could insert that shortcode into the Sources input box for Tweet Blender. That way, I could dynamically send Tweet Blender a different hashtag based on the currently viewed page.

    Is there a way to do this?

    https://www.ads-software.com/plugins/tweet-blender/

Viewing 1 replies (of 1 total)
  • Thread Starter biohazardapparel

    (@biohazardapparel)

    As seems to be the rule in these things, I figured out the answer 5 minutes after I posted the question.

    In widget.php, line 38, change to:

    $sources = do_shortcode(preg_split('/[\n\r]/m',trim($instance['widget_sources'])));

    This does not appear to have any affect non-short-code input, so you can have one version of the widget on, say, the home page, with a hard-coded hashtag, and another version in a post with a passed shortcode parameter.

    My question NOW is, how do I retain this change so that the next updates don’t destroy the coding change I made? And, is that something the developer would consider adding on a permanent basis as a value add?

Viewing 1 replies (of 1 total)
  • The topic ‘Insert Shortcode into TweetBlender Sources’ is closed to new replies.