Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

joandajer1 on "Adding an echo twice within DO SHORTCODE"

$
0
0

Hi Guys,

I have the following shortcode to display a twitter feed. The way I want it to work is the following:

- The user fill out their profile and add their twitter name uder the following code which display their username: <?php echo ($place->et_instagram) ? $place->et_instagram : __( 'Social Media' , ET_DOMAIN );; ?>

Now the plugin has a shortcode and I will like to use it like this: <?php echo do_shortcode('[statictweets skin="simplistic-skin" dir="ltr" user="ECHO HERE AGAIN" count="1" resource="usertimeline" show="username:true,screenname:true,avatar:true,tweettime:true,tweetactions:true,replies:true,retweets:true"/]'); ?>

Where USER show have the echo for the user again: <?php echo ($place->et_instagram) ? $place->et_instagram : __( 'Social Media' , ET_DOMAIN );; ?>

How can i do it?


Viewing all articles
Browse latest Browse all 13924

Trending Articles