How to Build a Testimonial Grid Plugin for WordPress

Posted on 19th June 2023

What is a testimonial grid plugin?

A testimonial grid plugin is a WordPress plugin that allows you to create a grid of testimonials on your website. Testimonials are a great way to showcase your satisfied customers and build trust with potential customers.

Why should you use a testimonial grid plugin?

There are a few reasons why you might want to use a testimonial grid plugin on your WordPress website.

First, testimonials can be a great way to build trust with potential customers. When people see that others have had a good experience with your product or service, they’re more likely to trust you as well.

Second, testimonials can be a great way to improve your website’s conversion rate. If you have a high-converting website, adding testimonials can help to boost your conversion rate even further.

Third, testimonials can help you to build social proof. Social proof is the idea that people are more likely to do something if they see that others are doing it as well. So, if you have a lot of testimonials on your website, it can help to increase the likelihood that people will buy from you.

Finally, testimonials can be a great way to increase the visibility of your website. If you have testimonials from well-known people or companies, it can help to increase the visibility of your website and attract more visitors.

How do you create a testimonial grid plugin?

If you want to create a testimonial grid plugin, there are a few things you’ll need to do.

First, you’ll need to choose a plugin that allows you to create a grid layout. There are a few different plugins that allow you to do this, so you’ll need to choose the one that best suits your needs.

Second, you’ll need to create a grid layout for your testimonials. This can be done using a plugin, or you can create your own custom grid layout.

Third, you’ll need to add your testimonials to the grid. You can do this by manually adding them, or you can use a plugin that will automatically pull in testimonials from your social media accounts.

Fourth, you’ll need to style your testimonial grid. You can do this by choosing a plugin that allows you to customize the look and feel of your grid, or you can create your own custom CSS.

Finally, you’ll need to publish your testimonial grid. You can do this by choosing a plugin that allows you to publish your grid to your WordPress website, or you can use a shortcode to embed your grid on any page or post on your website.

Conclusion

Testimonial grids are a great way to showcase your satisfied customers and build trust with potential customers. If you want to create a testimonial grid, you’ll need to choose a plugin that allows you to create a grid layout, add your testimonials, style your grid, and publish your grid.

In order to make this testimonial grid plugin, you will need to first create a new WordPress plugin. You can do this by going to the WordPress plugin repository and clicking “Add New.” Once you have done this, you will need to enter some basic information about your plugin, such as its name and description.

Once you have created your plugin, you will need to edit the “main” file of your plugin. This is typically the “index.php” file. In this file, you will need to add the following code:

This code will add the necessary information about your plugin to the WordPress plugin repository. Next, you will need to create a “testimonials” post type. You can do this by adding the following code to your plugin:

array(

‘name’ => ‘Testimonials’,

‘singular_name’ => ‘Testimonial’,

),

‘public’ => true,

‘has_archive’ => true,

‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’ ),

)

);

}

add_action( ‘init’, ‘testimonial_grid_plugin_init’ );

?>

This code will create a new post type called “testimonials.” Next, you will need to create a custom field for the testimonials post type. You can do this by going to the “Custom Fields” section of the WordPress admin and adding a new field with the name “testimonial_author.”

Once you have created the custom field, you will need to edit your plugin code to display the testimonials in a grid layout. You can do this by adding the following code to your plugin:

‘testimonials’,

‘orderby’ => ‘rand’,

‘posts_per_page’ => 3,

);

$query = new WP_Query( $args );

if ( $query->have_posts() ) {

$html = ‘

‘;

while ( $query->have_posts() ) {

$query->the_post();

$html .= ‘

‘;

$html .= ‘

‘ . get_the_content() . ‘

‘;

$html .= ‘

‘ . get_post_meta( get_the_ID(), ‘testimonial_author’, true ) . ‘

‘;

$html .= ‘

‘;

}

$html .= ‘

‘;

echo $html;

}

wp_reset_postdata();

}

add_shortcode( ‘testimonial_grid’, ‘testimonial_grid_plugin_shortcode’ );

?>

This code will display the testimonials in a grid layout on your WordPress site.

A testimonial grid is a powerful way to show off your products or services. By displaying customer testimonials in an attractive grid, you can increase the conversion rate on your website.

There are many WordPress plugins that allow you to create a testimonial grid, but most of them are either too complicated or too expensive. In this tutorial, we will show you how to build a simple and lightweight testimonial grid plugin for WordPress.

The first thing you need to do is to install and activate the WPForms plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Once you activate the plugin, you need to create a new form. For this, you need to go to WPForms » Add New page.

On the next screen, give your form a name and then select the ‘Testimonials’ form template. This will pre-configure your form fields for collecting testimonials.

You can now click on the ‘Save’ button to store your form. WPForms will now take you to the form builder page.

On the form builder page, you can see the testimonial form fields on the left side. These include the customer name, email, website, and a text area for the testimonial.

You can now click on the ‘Field Options’ tab to configure the testimonial form fields. For example, you can make the name and email fields required.

Once you are satisfied with the form fields, you need to click on the ‘Save’ button to store your changes.

You are now ready to add your testimonial grid to a WordPress post or page. Simply edit the post or page where you want to add the grid and then click on the ‘Add Form’ button.

This will bring up a popup where you need to select the testimonial form you just created. After that, click on the ‘Add Form’ button to insert the form into your post or page.

Now that your testimonial form is added to the post or page, people can start submitting their testimonials. You can view all the testimonials by going to WPForms » Entries page.

You can now visit the post or page on your website to see the testimonial grid in action.