Hello all,
I am trying to utilize the Jetpack Testimonials function within WordPress. I would much rather use Enfold’s, but at the moment, it is not database-driven, and thus has to be configured on each instance, rather than pulling from a central place.
That said, I have enabled Jetpack’s testimonials and have been able to hook Gravity Forms into it, for submission. But, as I work to display those records, I am having a hard time getting ALB to find that CPT and display it for selection in post slider, or other ALB elements. I have added the function to link the post type, but cannot seem to find success in retrieving anything beyond the standard post types.
https://kriesi.at/documentation/enfold/intro-to-layout-builder/#alb-for-any-post-type
function avf_alb_supported_post_types_mod( array $supported_post_types )
{
$supported_post_types[] = 'jetpack-testimonial';
return $supported_post_types;
}
add_filter('avf_alb_supported_post_types', 'avf_alb_supported_post_types_mod', 10, 1);
Any suggestions/
Hi,
Thank you for the inquiry.
Would you like to include the jetpack-testimonial post type to the “Which Entries?” dropdown or settings of the post slider? If so, you should be able to use the avia_public_post_types filter to include additional post type to the existing list. This filter is in the public_post_types function inside the enfold\config-templatebuilder\avia-template-builder\php\generic-helper.class.php file.
Best regards,
Ismael