WordPress.org

Ready to get started?Download WordPress

Forums

Testimonials by Aihrus
[resolved] Using Testimonial without widget or shortcode (10 posts)

  1. fewixree
    Member
    Posted 1 year ago #

    Hi there

    I have no problem getting the plugin working with either the widget and using shortcode on a page. However I need to place the testimonial on the page where it's not editable in the WYSIWYG, as in I need to put some PHP code in the template files. Can one of you smart people out there help me out? :)

    This is the page: http://phat.com.au/mad/

    and I need to put the testimonials just under the 'Our Giving Partners' section, which I can't do without altering the PHP file.

    Thanks

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

  2. Michael Cannon
    Member
    Plugin Author

    Posted 1 year ago #

    See FAQ 1.

  3. fewixree
    Member
    Posted 1 year ago #

    Thanks. I have tried that. Can you give me some direction as to what I need to change in that code supplied in FAQ1? At the moment on the front end of the website it's saying 'No testimonials found'. Sorry, I'm not an PHP expert.

  4. Michael Cannon
    Member
    Plugin Author

    Posted 1 year ago #

    Do you have testimonials?

    Are your arguments those that meet your needs?

    Have you tried to do only echo testimonialswidget_list(); with success?

    If you're still having trouble, please put your code to http://pastebin.com/ and then link to it here for review.

  5. fewixree
    Member
    Posted 1 year ago #

    <?php

    $args = array(
    'category' => 'product',
    'tags' => 'widget',
    'limit' => 5
    );

    echo testimonialswidget_list( $args );

    $args['refresh_interval'] = 10;

    echo testimonialswidget_widget( $args );

    ?>

  6. fewixree
    Member
    Posted 1 year ago #

    I have tried taking out the

    echo testimonialswidget_widget( $args );

    Still not working. Is there anything in that code that I need to replace? Sorry to be such a dump ass in this, any help would be great.

  7. Michael Cannon
    Member
    Plugin Author

    Posted 1 year ago #

    Have you tried to do only

    <?php echo testimonialswidget_list(); ?>

    with success?

    That should show any testimonials that you have.

  8. fewixree
    Member
    Posted 1 year ago #

    Ah, that works, it's show all of the testimonials rather then a slideshow. http://phat.com.au/mad/

    How do i make them show one at a time? Also to show a title 'Testimonials'?

  9. fewixree
    Member
    Posted 1 year ago #

    Ok, got the title sorted, just need help on showing one testimonial at a time. (like what the widget does, like a slideshow effect)

  10. Michael Cannon
    Member
    Plugin Author

    Posted 1 year ago #

    Please try

    <?php echo testimonialswidget_widget(); ?>

    instead.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.