• Resolved itnmario

    (@itnmario)


    Hi, thank you for your plugin!

    I need to use a different hashtag for each post (based on a shortcode attribute).

    Your plugin does not support to set a different hashtag in the shortcode but it would be quite easy to implement.

    Just two lines of code in enjoyinstagram_shortcode.php.

    add this code at line 11:
    'hashtag' => get_option('enjoyinstagram_hashtag'),

    edit line 50 as follow:
    $result = get_hash(urlencode( $hashtag ),20);

    This way

    [enjoyinstagram_mb] works as usual
    [enjoyinstagram_mb hashtag=”myhashtag”] will show #myhashtag feed for just this shortcode

    I tested in my installation and it works with no problems…

    It would be nice to have this feature.

    Ciao

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Different hashtags for different posts set by shortcode’ is closed to new replies.