Introduction
This guide explains how can fix JetEngine listings editing issue with Elementor on BuddyBoss. You can apply a workaround to prevent this error and edit JetEngine listings with Elementor on BuddyBoss.. If you are using JetEngine and Elementor to create and edit listings on your BuddyBoss site, you may encounter the error message:
“The preview could not be loaded”
This often happens when any BuddyBoss page is set as your static homepage. The issue arises because BuddyBoss and JetEngine are not officially integrated, which can create compatibility conflicts.
Custom Workaround
Before proceeding, make sure you have a complete site backup.
- Go to Appearance > Theme Editor in your WordPress admin dashboard.
- Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
- From the Theme Files list, click Theme Functions (functions.php).
- Paste the following code just before the closing PHP tag (?>):
// Prevent listing errors with JetEngine and BuddyBoss
add_filter('bp_is_current_component', function( $is_current_component) {
global $post;
if ( ! $post || ! is_object( $post ) || ! isset( $post->post_type ) ) {
return $is_current_component;
}
if ( $post->post_type === 'jet-engine' ) {
return false;
}
return $is_current_component;
});
- Click Update File to save your changes.
Troubleshooting and FAQs
Q: I still see the Elementor preview error after adding the code.
A: Clear your browser cache and any caching plugin on your site, then try editing the listing again.
Q: Can this workaround affect other BuddyBoss pages?
A: No. This code only affects JetEngine listings to avoid conflicts with BuddyBoss components.
Q: Will this interfere with other plugins using custom post types?
A: Only JetEngine listings are targeted. Other custom post types will not be affected.
Q: Can I remove this workaround later?
A: Yes. Simply remove the code from functions.php and save the file.
Q: Who can I contact for further assistance?
A: Please review the BuddyBoss Support Policy or consult a developer familiar with JetEngine and Elementor.