• Resolved cspsfsgale

    (@cspsfsgale)


    I am working on a site where your Strong Testimonials plugin is being used in a slider on the homepage, as well as a separate Testimonials page listing them in 2 columns. On the testimonials page I would like to order the testimonials as those with images taking priority over those without.

    Can you advise on a way to accomplish this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • anonymized-13171256

    (@anonymized-13171256)

    This requires some custom code to modify the query on the testimonials page.

    There are 3 ways to add this code, depending on your comfort level.

    1. As a standard plugin.
    2. As an mu-plugin.
    3. In your theme’s functions file.

    I recommend option 1. I would need to publish a custom plugin to GitHub which you would then download and install.

    Option 2 requires creating a PHP file and may require creating a directory, probably via FTP. More here: https://wpscholar.com/blog/wordpress-must-use-plugins/

    Option 3 works well if you are using a child theme or your own custom theme. Not so much if you are using a free/premium theme because the functions file will be overwritten by the next theme update.

    What is the slug (not the title) of your testimonials page?

    How you would like to proceed?

    Thread Starter cspsfsgale

    (@cspsfsgale)

    Hi Chris,

    Playing around with this last night I found a much easier method to accomplish this using built-in functionality.

    First, on each Testimonial View, I altered the order to use the Menu Order for each view.

    Then I adjusted the Order value on each testimonial post to reflect low numbers for those with pictures, and high numbers for those without. (0 – 9 used for pictured posts, anything 10+ for non-pictured).

    Provides the site with a “ranking” choice of sorts when sorting their testimonials, by allowing 10 ranking levels for preferred with pictures, and 100s of rankings for those without. Just thought I should give you my insights, might help suggestions for others.

    anonymized-13171256

    (@anonymized-13171256)

    Thanks for the feedback. I’m glad you found a method that works for you.

    It’s funny, I thought about suggesting that at first but decided not to because (1) some people don’t want to manually adjust the order, especially if they have hundreds of testimonials, (2) it does not allow secondary sorting by date, (3) I did not want to give the impression of brushing you off with a “just do it this way” answer, and (4) I enjoy a good challenge. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Order testimonial output’ is closed to new replies.