Hi,
i am afraid i am not really planning any special integration for the Divi theme, although what might work for you is adding the code below in the (child) theme functions.php file
add_action( "init", function() {
remove_filter( "the_content", "adverts_the_content", 999 );
}, 1000 );
add_shortcode( "advert_single", function( $args ) {
ob_start();
if( isset( $args["post_id"] ) ) {
$post_id = $args["post_id"];
} else {
$post_id = get_the_ID();
}
$post_content = get_post( $post_id )->post_content;
$post_content = wp_kses($post_content, wp_kses_allowed_html( 'post' ) );
$post_content = apply_filters( "adverts_the_content", $post_content );
include apply_filters( "adverts_template_load", ADVERTS_PATH . 'templates/single.php' );
$content = ob_get_clean();
return $content;
});
Then when creating a template for Ad details pages (that is a page like https://demo.wpadverts.com/lite/advert/rayman-legends/) you should be able to use a [advert_single] shortcode which will render the Ad details.
Hi there,
This plugin works great with Divi.
You can see how it looks like on the recent website I made for myself:
https://photomarket.online/
Greg gives great support.