WP Manifestindependent plugin directory
manifest / media / sw-slides

SW - Slides CPT

Custom Post Type for hero slider slides with WPGraphQL support.

by Seniors · github.com/dazza-dev/sw-slides · 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-slides/archive/refs/heads/main.zip

Readme

=== SW - Slides CPT === Contributors: seniors Tags: slides, hero, slider, 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 hero slider slides with WPGraphQL support.

== Description ==

Registers a "Slides" Custom Post Type for managing hero slider content, with full WPGraphQL integration for headless WordPress setups.

Post structure:

  • Title = heading (HTML supported)
  • Excerpt = subtitle/description
  • Featured image = slide background
  • Custom fields: button text, button URL, order

GraphQL query:

{ swSlides(first: 10, where: { language: ES }) { nodes { id title excerpt featuredImage { node { sourceUrl altText } } swSlideFields { heading description buttonText buttonUrl order } } } }

Features:

  • Custom meta box with slide fields in the admin
  • Admin columns for image, button text, and order
  • Sortable columns
  • WPGraphQL type SwSlide with custom fields resolver
  • Polylang compatible (via standard CPT translation)

== Requirements ==

== Installation ==

  1. Upload the sw-slides folder to /wp-content/plugins/
  2. Activate the plugin through the "Plugins" menu in WordPress
  3. Go to "Slides" in the admin menu to add hero slider content

== Changelog ==

= 1.0.0 =

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

Read the full README on GitHub →