Number of testimonials

Hi everybody,

I’m creating a website using Quill Theme.
Thanks for this very good theme !

I have a problem with testimonials. I want to display 24 testimonials on my website, but Quill Theme only use the 10 last created.

How can i display the 24 ?
Do i have to change something in the templates or in the CSS ?

Thanks a lot for your answers.

Hello,

No one can help me please ? I still have my problem !!!

Thanks…

Hi, sorry for the delay

I don’t know what exactly cause it but you can try to adding this code below to display all testimonials. Here is the steps:

  1. create a child theme
  2. duplicate “widgets/fp-testimonials.php” to your child theme
  3. open “widgets/fp-testimonials.php” within your child theme then change this line:
$r = new WP_Query( apply_filters( 'widget_posts_args', array(
	'no_found_rows'       => true,
	'post_status'         => 'publish',
	'post_type' 		  => 'testimonials'
) ) );

to :

$r = new WP_Query( apply_filters( 'widget_posts_args', array(
	'no_found_rows'       => true,
	'post_status'         => 'publish',
	'post_type' 		  => 'testimonials',
	'posts_per_page' => -1
) ) );
  1. open functions.php within your child theme and add this code:
if ( function_exists('siteorigin_panels_activate') ) {
	require_once get_template_directory() . "-child/widgets/fp-testimonials.php";
}
  1. open functions.php within your parent theme and change this line :
    require get_template_directory() . "/widgets/fp-testimonials.php";
    to :
    // require get_template_directory() . "/widgets/fp-testimonials.php";

The code in above should be work if you activate your child theme

Thanks a lot Awan !!!
It’s working perfectly :slight_smile: :slight_smile: :slight_smile:

I’ve just change the 4/ :
if ( function_exists(‘siteorigin_panels_activate’) ) {
require_once get_template_directory() . “-child/widgets/fp-testimonials.php”;
}

CHANGED IN

if ( function_exists(‘siteorigin_panels_activate’) ) {
require_once get_template_directory() . “/widgets/fp-testimonials.php”;
}

As i was not using child theme !

Once again, thanks a lot :slight_smile:

Cool! but It’s better if you create a child theme for your modification, so when you update the theme, your code would not be replaced :slight_smile: