Feedback/Testimonials Additional Editing

This support request was posted in BBQ by bgbaron89

Request ID #1498 In Progress
  • Hey there!

    Working out all the kinks in my site now, and I really enjoy the ease of the Feedback quotes system. But I have two questions:

    1) My site is not actually a restaurant. Rather, it’s a personal one for my singing/acting/writing, etc. Because of that, I would like it if my automated testimonial scroll that I can option to appear above the footer didn’t title itself “Client Testimonials.” I’d rather call it something else. Can I do this?

    2) On the feedback/testimonials template page, what do I need to do to make the page display more than just the five most recent pieces of feedback?

    Thanks so much in advance!

    -Brad

    http://www.brad-baron.com

    Juanfra Aldasoro

    Hi Brad,

    Thanks for writing.

    1) sure, you can do that. You need to edit the file footer.php on line #19, there you’ll need to replace the text ‘Client Testimonial’.

    2) Yes, You need to edit the file template-feedback.php, in line #30 – replace the following code:

    $testimonials = get_posts(    array (    'post_type' => 'feedback', 'order' => 'DESC', 'orderby' => 'menu_order') );
    

    With this one:

    $testimonials = get_posts(    array (    'post_type' => 'feedback', 'order' => 'DESC', 'orderby' => 'menu_order', 'numberposts' => -1 ) ); 
    

    Thank you,
    Juan.

    Thanks Juan! That’s exactly what I wanted and worked perfectly.

    One last thing, and I imagine this is another easy code adjustment or addition.

    I’d like to exclude the automated footer feedback (formerly called ‘Client Testimonials’) from appearing on certain pages, specifically the Front Page. What would I need to add or change to affect this?

    Thanks again!

    -Brad

    Juanfra Aldasoro

    Hi Brad,

    You can add some conditional PHP over the script that call the footer’s client testimonial.

    For example, adding the following condition to the if conditional on footer.php line #14

    if ( nice_bool( get_option( 'nice_feedback_footer' ) ) && !is_front_page() )
    

    Best,
    Juan.

    Juanfra Aldasoro

    Hi Brad,

    The editor we use for showing code is replacing the ampersand with & #038;. Please be sure to use the ampersand symbol, twice( &&) .

    Best,
    Juan.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server