aaaronscat
Forum Replies Created
-
Forum: Plugins
In reply to: [Testimonials Widget] Writing PHP to display Rotating Widget in a templateYes, the plugin is activated. That would be the easiest solution I suppose.
Sorry to be dense but should I put <?php echo testimonialswidget_widget(); ?> into my functions file or use it in my template?
When I put <?php echo testimonialswidget_widget(); ?> into my homepage template I get this error message on the page itself:
Fatal error: Call to undefined function testimonialswidget_widget() in /home/content/14/5985714/html/subdomains/karen/wp-content/themes/ksquared/tmp-home.php on line 43
When I put <?php echo testimonialswidget_widget(); ?> into my functions.php the whole site is broken.
Aaron
Forum: Plugins
In reply to: [Testimonials Widget] Writing PHP to display Rotating Widget in a templateHi Michael,
It’s really great to get a reply from the actual plugin author so thanks a bunch for writing back.
The only code that doesn’t give me an error message or break the entire site is the one I posted above. This one:
<?php
$args = array(
‘limit’ => 1,
‘random’ => true,
);
echo testimonialswidget_list_shortcode( $args );
?>I tried all of these and none of them worked:
testimonialswidget_widget
testimonialswidget_widget_shortcode
testimonialswidget_listAll of these functions gave me an error message on the page saying that they are undefined. Do I need to first define them somewhere?
I tried putting <?php echo testimonialswidget_widget(); ?> in my functions.php like you suggest in your FAQ but this broke the whole site.
Aaron