using elementor, how can i make a listing element from jetengine to display a field from custom metabox called "it_staff_image" as background for a section?
Assistant
User
I don't have the option JetEngine Meta Field
Assistant
User
I don't have Custom Field option either
Assistant
To display a custom metabox field (like it_staff_image) as a background image of a section in Elementor using JetEngine Listing, you can follow these steps:
Prerequisites:
You have JetEngine installed and set up.
You have a Listing created via JetEngine that you want to customize.
The it_staff_image is a meta field (image URL or attachment ID) saved via Custom Metabox.
Step-by-step:
Ensure it_staff_image field is properly set in JetEngine:
Go to JetEngine > Meta Boxes, confirm your custom metabox exists with the it_staff_image field.
Make sure the field type is Image (usually an image ID saved).
Create or Edit your JetEngine Listing Template:
Go to JetEngine > Listings.
Edit the listing you want to customize.
Add a Section or Container in Elementor:
Add a Section or Inner Section (whatever block you want the background applied to).
Set Background Image Using Dynamic Tag:
Elementor does not directly allow dynamic background images from meta fields unless it recognizes the field correctly.
To set the background image dynamic:
Select the section/column/container.
Go to Style > Background > Background Type > Classic > Image.
Click on the Dynamic Tags icon (database icon) near the image picker.
Choose JetEngine Meta Field as your dynamic source.
In the Meta Field Key input, put it_staff_image.
Adjust Dynamic Tag Output (Important):
Since the it_staff_image field stores Image ID, you may need to set the output appropriately.
Click on the Dynamic Tags > JetEngine Meta Field again.
Click the wrench (settings) icon next to the field.
Set the Return Format to Image URL (if it's an option), or Post ID (if it's ID).
If only Post ID (image ID) is stored, sometimes Elementor will resolve automatically.
Configure Background Settings:
Set Background Size to Cover.
Set Background Position to Center Center.
Set Background Repeat to No-repeat.
Preview your listing:
Make sure that your listing item has it_staff_image set for each entry.
Test on the frontend or preview mode to verify background images display properly.
Additional Tips:
If the it_staff_image meta field stores image URL directly, the dynamic tag will fetch it straightforwardly.
If it stores Image ID, Elementor & JetEngine can usually resolve it; if not, you may need to use a custom code filter to return the image URL.
Alternatively, you could add a HTML widget or Custom CSS with dynamic inline styles via JetEngine macros, but this is more advanced.
Debugging:
If the background does not show:
Ensure the meta field is populated.
Try inserting the dynamic it_staff_image field via a Dynamic Field widget first to check what output you get.
Confirm your listing is applied in the correct context (i.e., listing widget is pulling correct posts).
Summary:
Use Elementor’s background image dynamic tag feature, select JetEngine Meta Field as source, enter it_staff_image as the meta key, ensure it returns an image URL, and style the background for the section accordingly.
If you want, I can also provide a snippet of PHP code to convert attachment ID to URL for use in custom fields or filters, just ask!
If you don’t see the “JetEngine Meta Field” dynamic tag option in Elementor, it usually means either:
The JetEngine dynamic tags are not fully enabled or integrated with Elementor in your setup.
You are using an older or limited version of JetEngine or Elementor.
Alternative ways to show a JetEngine custom meta image as a background in Elementor:
Method 1: Use the "Dynamic Field" widget + Custom CSS for background
Since the JetEngine dynamic tag might not be present, try this workaround:
Add a CSS class to your section
Select your section/container in Elementor.
Go to Advanced > CSS Classes and add a class, e.g.:
code
it-staff-bg
Add a Dynamic Field widget inside the section
Insert JetEngine > Dynamic Field widget anywhere inside the section.
Set its Source to Meta Data.
Enter it_staff_image as the Meta Key.
Set Output Format to Image URL.
Hide the field visually:
Under Style, set width and height to 0, or mark it as hidden with custom CSS (display:none;).
Add custom CSS to set background from the dynamic field
Unfortunately pure CSS cannot set background-image from dynamic content directly. But Elementor Pro lets you use custom attributes or inline styles with dynamic tags.
Since you don’t have the JetEngine Meta Field tag, try this:
Use a HTML widget with a small inline script that fetches the image URL from the Dynamic Field widget and sets it as background:
Example (place inside same section or at the page bottom):
html
<script>
document.addEventListener("DOMContentLoaded", function() {
// Find the dynamic field image URL text (hidden)
var imgUrl = document.querySelector('.it-staff-bg .jet-engine-dynamic-field__content img')?.src ||
document.querySelector('.it-staff-bg .jet-engine-dynamic-field__output')?.textContent.trim();
var section = document.querySelector('.it-staff-bg');
if(imgUrl && section) {
section.style.backgroundImage = 'url('+imgUrl+')';
section.style.backgroundSize = 'cover';
section.style.backgroundPosition = 'center center';
section.style.backgroundRepeat = 'no-repeat';
}
});
</script>
Adjust selectors as needed.
Method 2: Use JetEngine Macros
If JetEngine macros are active, you can use this to output your meta field value as an inline style attribute.
Select the Section in Elementor.
Switch to Advanced > Custom CSS (available in Elementor Pro).
Note: JetEngine macros might not work directly in Custom CSS, but they do work in Custom HTML widgets or inside Elementor widgets supporting macros.
Method 3: Check if JetEngine dynamic tags are enabled
In your WordPress Dashboard, go to JetEngine > Settings > Modules Manager.
Confirm the Dynamic Tags module is enabled.
Clear caches (browser cache + any site caching plugin).
Then, reload Elementor editor.
If this module was disabled, enabling it will add the “JetEngine Meta Field” dynamic tag to Elementor background image selectors.
Method 4: Use the native Elementor Dynamic -> Custom Field
If JetEngine dynamic tags are not available, Elementor Pro offers a native Custom Field dynamic tag:
Set Background Image > Dynamic Tags > Custom Field.
In the field name, enter: it_staff_image.
Important: For this to work, the custom field must contain a URL to the image, not the image ID.
If it’s an ID (common with JetEngine Image fields), it won’t work. You’d have to make JetEngine save the image URL instead or add a helper function to convert IDs to URLs.
Method 5: Create a custom shortcode to get image URL (as last resort):
Add this PHP code in your child theme functions.php:
php
function get_it_staff_image_url() {
$image_id = get_post_meta(get_the_ID(), 'it_staff_image', true);
if (!$image_id) return '';
// Convert image ID to URL
$image_url = wp_get_attachment_url($image_id);
return esc_url($image_url);
}
add_shortcode('it_staff_image_url', 'get_it_staff_image_url');
In Elementor, set Section background image > Dynamic Tags > Shortcode.
Use shortcode: [it_staff_image_url]
Summary:
Enable JetEngine Dynamic Tags module if disabled.
If still no JetEngine Meta Field dynamic tag, try Elementor's native Custom Field in Background Image.
Otherwise, create a shortcode to return image URL from the meta.
Or use the Dynamic Field widget with JS hack to apply background inline.
If you want, I can help you with any of those methods in more detail! Just let me know.
Got it — you don’t have JetEngine Meta Field or Elementor Custom Field options available for dynamic background images. This usually means either:
You are using Elementor Free (not Pro) — dynamic background image support is limited to Elementor Pro.
JetEngine dynamic tags module is disabled or JetEngine + Elementor integration isn’t fully active.
Or your Elementor version is outdated.
What you can do next:
1. Confirm Elementor Pro is installed and activated
Dynamic background images are only supported in Elementor Pro.
If you use the free Elementor version, Elementor does not allow dynamic background images.
You need Elementor Pro to set background image dynamically via dynamic tags.
To check go to Dashboard > Plugins, search for Elementor Pro.
If you don’t have Pro, and can't install it now, see methods below.
2. If you do not have Elementor Pro, use "classic" workarounds:
A. Use Dynamic Field widget to output the image URL in HTML, then style background via JavaScript
In your JetEngine listing template:
Add Dynamic Field widget
Set it to show your it_staff_image meta (ensure it outputs Image URL)
Hide this widget visually (set HTML tag to div, then custom style like display:none;)
Add a JS snippet widget (HTML widget with a <script>) manually apply background image to parent container, e.g.:
Replace .section-class with your section’s CSS class.
Note: Since shortcodes can’t parse inside <style> directly, you might need to print styles dynamically or use inline styles via HTML widget:
html
<div class="section-class" style="background-image: url('[it_staff_image_url]'); background-size: cover; background-position: center center;">
<!-- Your content -->
</div>
But you can’t replace the main section element this way easily; you may need layout tweaks.
3. Upgrade to Elementor Pro & JetEngine latest versions
This is the best future-proof solution:
Install Elementor Pro to get full dynamic background image options.
Make sure JetEngine's Dynamic Tags module is enabled (JetEngine > Settings > Modules Manager).
Clear caches and reload.
Summary of your options without Elementor Pro's dynamic background feature:
Method
Pros
Cons
JavaScript + Dynamic Field widget (URL output hidden)
No Pro required
Hacky, requires JS and CSS work
Shortcode returning image URL + inline styles
Simple PHP
Limited styling flexibility
Upgrade to Elementor Pro and enable JetEngine dynamic tags
Smooth, native support
Paid plugin
If you want, I can help you write the exact shortcodes, JS snippets, or CSS for any of the workarounds above — just tell me which sounds better for you!