WP Manifestindependent plugin directory
manifest / builders / wp-elementor-testimonials-widget

Custom Testimonials

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/alexphex/wp-elementor-testimonials-widget/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A simple WordPress plugin that adds a custom Testimonials post type and displays testimonials using a custom Elementor widget.

Features

  • Custom Post Type: Testimonials

  • Custom fields:

    • Name
    • Company
    • Testimonial text
    • Photo URL
  • Custom Elementor widget

  • Display testimonials using WP_Query

  • Basic sanitization and escaping

  • OOP-based plugin structure

  • Elementor dependency check

Plugin Structure

custom-testimonials/
├── custom-testimonials.php
├── includes/
│   ├── class-plugin.php
│   ├── class-testimonials-cpt.php
│   └── class-elementor-widget.php
└── assets/
    └── testimonials.css

Requirements

  • WordPress
  • Elementor
  • PHP 7.4+

Installation

  1. Download or clone the repository.
  2. Copy the custom-testimonials folder to:
/wp-content/plugins/
  1. Activate Custom Testimonials from the WordPress admin.
  2. Make sure Elementor is installed and activated.

Usage

After activating the plugin:

  1. Go to Testimonials → Add New.

  2. Add the testimonial information.

  3. Fill in the custom fields:

    • Name
    • Company
    • Testimonial
    • Photo URL
  4. Publish the testimonial.

  5. Edit a page with Elementor.

  6. Add the Testimonials widget.

  7. Select how many testimonials should be displayed.

The widget automatically gets published testimonials using WP_Query.

Notes

This is a small practice/project plugin created to demonstrate:

  • WordPress plugin development
  • Custom Post Types
  • Post meta
  • WordPress hooks
  • WP_Query
  • Elementor custom widgets
  • Basic WordPress security practices

The project intentionally keeps the implementation simple and does not use ACF or other custom field plugins.