• Resolved venkat219

    (@venkat219)


    This is one of the great plugin, but I couldn’t find a way to display multiple usernames dynamically. Like
    [TWTR id=instagram]
    would display the instagram tweets. If there is a paid option for this kind of functionality then let me know asap.

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

    (@venkat219)

    I have tried something like this

    In, twitter-tweets_shortcode.php
    
    add_shortcode("TWTR", "twitter_tweet_shortcode");
    function twitter_tweet_shortcode($atts) {
    	ob_start();
    	$twitterSettings = unserialize(get_option("ali_twitter_shortcode"));  
            $TwitterUserName = $atts;
    	$Theme = "light";
    	if (isset($twitterSettings[ 'Theme' ] ) ) {
    		$Theme = $twitterSettings[ 'Theme' ];
    	}
    	
    ---rest of the code

    in page used shortcode like this
    [TWTR atts=Instagram]

    which gave me tweet results with username @array. Since the output is array ?

Viewing 1 replies (of 1 total)
  • The topic ‘Short Code for Multiple usernames’ is closed to new replies.