Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

matt.milan on "in my widget, shortcode $variable parameter not working"

$
0
0

I wrapped a plugin with a widget. i want the widget to tell the plugin what to do by sending the widget $title to the plugin shortcode parameter.

echo do_shortcode('[rotating-posts category_name="blog"]');

works

echo do_shortcode('[rotating-posts category_name="$title"]');

does not.

i tried a few different syntaxes,
_name=$title - nothing happens
_name='$title' - crash

I will post the code in the next comment.


Viewing all articles
Browse latest Browse all 8245

Trending Articles