1. Home
  2. Knowledge Base
  3. Customizations
  4. PHP Functions
  5. How to Fix JetEngine Listings Editing Issue with Elementor on BuddyBoss

How to Fix JetEngine Listings Editing Issue with Elementor on BuddyBoss

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.

  1. Go to Appearance > Theme Editor in your WordPress admin dashboard.
  2. Under Select theme to edit, choose your active theme (preferably BuddyBoss Child Theme), then click Select.
  3. From the Theme Files list, click Theme Functions (functions.php).
  4. 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;
});
  1. Click Update File to save your changes.

Note: Modifications are typically considered custom work, but we are making an exception in this case. Please review the BuddyBoss Support Policy.

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.

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.