I have a shortcode in my functions.php which runs a query on a category. I want to have a twitter feed on this particular page.
I have a javscript option working on my page for twitter right now but it doesn't look good and will take way to long to edit the javascript ( in minified format ) to make it look good, so I thought I would use a plugin.
I installed one and it looks good but I need to call it in a very specific spot within the shortocode. I noticed as is, it calls the widget at the top of my page from within the shortcode which breaks the layout. I did some reading and it looks like using the_widget() would allow me to call it where I want and it did put text in the right spot. Problem was instead of putting my tweets, it put an error message. I figured that If I use the_widget with the classname of the widget as shown on this page that it would work
http://codex.wordpress.org/Function_Reference/the_widget
for example. The twitter widget I downloaded is called "simple twitter tweets" and I figured that I could do
the_widget('PI_SimpleTwitterTweets');
and it would work. I was wrong. PI_SimpleTwitterTweets
is the classname of the widget. Am I on the right track and just missing something?