Recreated CubeWP Fields Not Showing on Frontend? Easy Fix Guide

It can be perplexing when you’ve set up your custom fields in CubeWP, they appear correctly in the WordPress admin area, but they refuse to show up on the live version of your website. This is a common hiccup, especially after deleting and recreating fields. This guide will walk you through the most frequent causes and their solutions, from the simplest to the more advanced.

Step 1: The “Recreated Fields” Quick Fix

Since you mentioned that you deleted and then recreated the fields, the first thing to do is to force WordPress and CubeWP to recognize the new fields.

  1. Go to CubeWP > Settings in your WordPress dashboard.
  2. Click the “Save Changes” button. You don’t need to change any settings; this action often re-initializes the plugin’s settings and helps it recognize the new fields.
  3. Go to Settings > Permalinks in your WordPress dashboard.
  4. Click “Save Changes” here as well. This flushes the rewrite rules and can solve a surprising number of frontend display issues.

Now, check your frontend to see if the fields have appeared. If not, proceed to the next step.

Step 2: Clear All Caches

Caching is a frequent culprit for content not updating on the frontend.

  • Plugin Cache: If you use a caching plugin (like W3 Total Cache, WP Super Cache, or WP Rocket), go to its settings and clear or purge the cache.
  • Browser Cache: Clear your web browser’s cache to ensure you’re not seeing a stored, older version of your page.
  • Server Cache: If your hosting provider has server-level caching, you may need to clear it from your hosting control panel.

Step 3: Verify Your Display Method

How you display CubeWP fields on the frontend is critical. Make sure you are using the correct method for your setup.

For Theme Template Files (e.g., single.php)

If you are editing your theme’s files directly, you need to use the provided PHP function.

<?php 
if ( function_exists( 'get_field_value' ) ) {
    echo get_field_value( 'your_field_name' ); 
}
?>

Important: Replace 'your_field_name' with the actual name (slug) of your custom field.

Using Shortcodes

CubeWP provides a shortcode to display fields within the content of a page, post, or a page builder.

[cubewp_post_field field="your_field_name"]

Important:

  • Ensure there are no typos in the shortcode.
  • Double-check that "your_field_name" exactly matches the field’s name/slug.
  • Make sure you are using straight quotes (") and not curly quotes ( or ).

Using CubeWP Frontend Pro

If you have the CubeWP Frontend Pro extension, you should be using its dedicated builders:

  • Single-Post Template Editor: Go to CubeWP > Single-Post Editor. Here you can build your template by dragging and dropping the custom fields you’ve created. This is the recommended method if you have the pro version, as it doesn’t require coding.
  • Post Loop Generator: If you’re trying to display fields on an archive or listing page, you’ll need to configure the loop in CubeWP > Post Loop Generator.

Using a Page Builder (like Elementor)

If you’re using a page builder like Elementor, you’ll need to use their dynamic content features to pull in the CubeWP fields.

  1. Add a widget that can display dynamic content (like a text editor or heading widget).
  2. Click on the “Dynamic Tags” icon.
  3. Find and select the appropriate CubeWP or custom field tag.
  4. Select the field you want to display from the dropdown list.

Step 4: Check for Theme and Plugin Conflicts

Sometimes, another plugin or your theme can interfere with CubeWP.

  1. Temporarily switch to a default WordPress theme, like “Twenty Twenty-Four” or “Twenty Twenty-Three.” If the fields appear, the issue is with your theme.
  2. If the theme switch doesn’t help, deactivate all your plugins except for CubeWP (and CubeWP Frontend Pro, if you have it). If the fields now show up, reactivate your plugins one by one, checking your page after each activation, until you find the one causing the conflict.

Step 5: Advanced Troubleshooting (for Developers)

If you are comfortable with code, you can check what custom field data is being loaded for a specific post. In your theme’s template file (inside the WordPress loop), you can add the following code:

<?php 
  $all_custom_fields = get_post_custom();
  var_dump($all_custom_fields);
?>

This will print out all the custom field data associated with the post. You can then check if your recreated fields are present in this data.

If you’ve gone through all these steps and are still having trouble, it’s a good idea to reach out to the official CubeWP support channels, as they can provide more specific assistance for their product.

Related Posts


Create a Custom WordPress Plugin to Add Shortcodes – Complete Tutorial

Here’s a complete tutorial on how to create a custom WordPress plugin for adding shortcodes. T...

How to Fix CSP Inline Script & Style Issues in WordPress

Content Security Policy (CSP) is a crucial security layer that helps protect your WordPress site fro...

CSS in WordPress: Single Stylesheet vs. Page-Specific Files – What’s Best?

WordPress developers often face the dilemma of choosing between a single consolidated CSS file or mu...

How to Fix Empty href Tags When Displaying Custom Tag Cloud as a List in WordPress

Fixing empty href tags in a custom tag cloud displayed as a list in WordPress usually involves ensur...

Recent Posts