WP Manifestindependent plugin directory
manifest / content / sw-testimonials

SW - Testimonials CPT

Custom Post Type for client testimonials with WPGraphQL support.

by Seniors · github.com/dazza-dev/sw-testimonials · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/dazza-dev/sw-testimonials/archive/refs/heads/main.zip

Readme

=== SW - Testimonials CPT === Contributors: seniors Tags: testimonials, custom-post-type, wpgraphql, headless Requires at least: 5.8 Tested up to: 6.7 Requires PHP: 7.4 Stable tag: 1.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html

Custom Post Type for client testimonials with WPGraphQL support.

== Description ==

Registers a "Testimonials" Custom Post Type for managing client reviews and testimonials, with full WPGraphQL integration for headless WordPress setups.

Post structure:

  • Title = client name
  • Featured image = client photo
  • Custom fields: company, quote title, description (HTML), video URL, rating (1-5), order

GraphQL query:

{ swTestimonials(first: 10, where: { language: ES }) { nodes { id title featuredImage { node { sourceUrl altText } } swTestimonialFields { company quoteTitle description videoUrl rating order } } } }

Features:

  • Custom meta box with all fields in the admin
  • Admin columns for image, company, rating, and order
  • Sortable columns
  • WPGraphQL type SwTestimonial with custom fields resolver
  • Polylang compatible (via standard CPT translation)

== Requirements ==

== Installation ==

  1. Upload the sw-testimonials folder to /wp-content/plugins/
  2. Activate the plugin through the "Plugins" menu in WordPress
  3. Go to "Testimonials" in the admin menu to add client reviews

== Changelog ==

= 1.0.0 =

  • Initial release
  • Testimonials CPT with custom fields
  • WPGraphQL integration
  • Admin columns and sorting

Read the full README on GitHub →