WPGraphQL for WP Logo Showcase Responsive Slider and Carousel
Description
I'm trying to extend the custom post type logoshowcase from the plugin "WP Logo Showcase Responsive Slider and Carousel". I've enabled WPGraphQL integration for this custom post type via Pods but it doesn't show up in WPGraphQL at all. It seems to do nothing.
Version
3.3.2
Testing Instructions
No response
Screenshots / Screencast
No response
Possible Workaround
No response
Site Health Information
Pods Package
Try flushing the Pods caches at Pods Admin > Settings > Clear Pods Cache
On my side I see the singular and plural versions of the object appear in the GraphQL > GraphiQL IDE > Query composer
I have a post type called "message" that shows up for me and I can query the plural of it.
Can you clarify any further about what you see on your side?
I've used this plugin: https://wordpress.org/plugins/wp-logo-showcase-responsive-slider-slider/ Then in Pods Admin I've created a Pod by extending an existing post type (logoshowcase) and enabled WPGraphQL integration. Even after setting a custom singular and plural name and clearing pods cache it doesn't show up in the query composer.
I've moved to this plugin instead now: https://wordpress.org/plugins/carousel-slider/ But it's the same with that plugin.
Both are 'public' => false by default. Maybe Pods doesn't override that?
By enabling WPGraphQL programmatically like this it shows up, but I would like to do it with Pods:
add_filter('register_post_type_args', function(array $args, string $post_type): array {
$new_args = [
'carousels' => [
'graphql_plural_name' => 'carousels',
'graphql_single_name' => 'carousel',
],
];
if (array_key_exists($post_type, $new_args)) {
$args = array_merge($args, $new_args[$post_type], [
'show_in_graphql' => true,
'public' => true,
]);
}
return $args;
}, 9, 2);