• Resolved brett2000

    (@brett2000)


    Hi,

    Your testimonials plugin looks great, but could we please have an example of the syntax for calling the theme function?

    You say:
    <?php echo testimonialswidget_widget( $args, $number ); ?>
    testimonialswidget_list] ■[testimonialswidget_list]
    ■[testimonialswidget_list category=product hide_not_found=true]
    ■[testimonialswidget_list category=product tags=widget limit=5]
    ■[testimonialswidget_list char_limit=0 target=_new]
    ■[testimonialswidget_list hide_source=true hide_url=true]
    ■[testimonialswidget_list ids=”1,11,111″]
    ■[testimonialswidget_list meta_key=testimonials-widget-company order=asc limit=10]
    ■[testimonialswidget_list paging=true limit=10]
    ■[testimonialswidget_list tags=”test,fun” random=true]
    —-

    Can you please give an example of calling this out? Some people rarely use WP and PHP and don’t regularly setup Arrays for calling.

    I get this error:

    Missing argument 1 for testimonialswidget_widget(), called in /home/public_html/wp

    Thanks,
    -Brett

    http://wordpress.org/extend/plugins/testimonials-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter brett2000

    (@brett2000)

    See above post, I also get this when I think I have it setup properly:

    Using $this when not in object context in /home/public_html/wp-content/plugins/testimonials-widget/testimonials-widget.php on line 680

    Is there a bug in calling it out this way?

    Thanks,
    -Brett

    Plugin Contributor Michael Cannon

    (@comprock)

    Does the following help?

    <?php
    $args = array(
    'category' => 'product',
    'tags' => 'widget',
    'limit' => 5
    );
    echo testimonialswidget_list( $args );
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme function syntax?’ is closed to new replies.