Forum Replies Created

Viewing 15 replies - 1 through 15 (of 40 total)
  • Hello @abhijayesh17,

    You can use any WooCommerce hook for the single product page like woocommerce_single_product_summary to add your custom field to the front end. For example, try using get_post_meta($post->ID, 'your_custom_field_name', true); to fetch the value of your custom field and display it on the front end.

    Hello @abhijayesh17,

    In the settings under Location Rules, select Posts. Then, in the Post dropdown, you’ll find the product you created listed under the Product post type.

    Hello @pauline1975,

    Ensure that the SCF fields are configured to allow non-admin roles to edit and save data. Some fields may have restrictions based on user roles.

    Hello @qristopher,

    Could you please provide a screenshot or a more detailed description of the exact issue you’re experiencing? This will help us better understand the problem and offer more specific assistance. Thank you!

    Yes, you’re right!

    Hi @frengo70

    To add a WYSIWYG editor in SCF, you can select the “WYSIWYG Editor” as the field type. When you add a new field, look for Field Type options, and search or browse under the Content tab for “WYSIWYG Editor.”

    Hi @andreitsen87

    SCF allows you to register custom fields through PHP by using the acf_add_local_field_group() function.

    Hello @sywy,

    Create a shortcode that fetches 0/1 values from an SCF field and outputs ‘True’ or ‘False.’ You can add the following code to your theme’s functions.php file or use the Code Snippets plugin.

    This shortcode will display ‘True’ if the field value is 1 and ‘False’ if it’s anything else.”

    function scf_true_false_shortcode($atts) {
    // Extract shortcode attributes for flexibility
    $atts = shortcode_atts(
    array(
    'field_name' => '', // Set your SCF field name
    'post_id' => 5 // Replace the post ID of the post you will add the shortcode to
    ),
    $atts
    );

    // Get the SCF field value
    $value = get_post_meta($atts['post_id'], $atts['field_name'], true);

    // Return True/False based on value
    return $value == 1 ? 'True' : 'False';
    }

    // Register the shortcode
    add_shortcode('scf_true_false', 'scf_true_false_shortcode');

    If you create a SCF filed for display only on posts

    Add the shortcode [scf_true_false field_name="your_field_name"] on any post.

    Replace "your_field_name" with the actual SCF field name you want to retrieve.

    Replace the post id with the actual post id you will add the shortcode to

    Save the post and check on the frontend, if the value of the SCF field is 1 the front end will disply True otherwise False, try changing the value and saving the post to check if it works properly

    Hello @arnaudfpm,

    The links or the video link attached is not accessible, Disable the Product Addons for WooCommerce plugin temporarily and check if the edit button for field labels works as expected.

    If disabling the plugin resolves the issue, it may help to contact the Product Addons for WooCommerce plugin’s support team to report the conflict. They may have a workaround or a fix available.

    Hello @fabioweb,

    Yes, it’s possible to insert Simple Custom Fields (SCF) fields into Contact Form 7 (CF7), but it requires a bit of customization.

    1. Use a Shortcode to Display SCF Data:
      • SCF fields can be displayed using shortcodes. You can create a shortcode that retrieves SCF data and displays it in CF7 by placing the shortcode directly in the form editor.
      • For example, if you have an SCF field with a meta key, you can create a shortcode that fetches this value and use it in CF7.
    2. Use Plugins for SCF and CF7 Integration:
      • Some plugins might simplify integration between custom fields and CF7. Plugins like Contact Form 7 – Dynamic Text Extension allow you to dynamically populate fields in CF7, which can be useful for displaying SCF values.

    Hello @representativeself,

    You can create templates for custom post types (CPTs) directly within the Site Editor by navigating to Appearance > Editor. In the left Navigation Sidebar, select Templates. To make your custom post type appear in this list and create custom templates for it, ensure it’s registered with 'show_in_rest' => true. This setting allows the CPT and its fields to be accessible in the Block Editor.Steps to Create a Template for a Custom Post Type:

    1. Add a New Template:
      • Click on the plus icon (+) to add a new template. You’ll see a scrollable modal window with available template types.
      • If a specific template already exists, it won’t appear in the list. In this case, you can edit or delete the existing template instead.
    2. Choose from Template Options:
      • You can create templates for different purposes, including:
        • A default template for all items of the post type.
        • A single item template for individual posts of that type.
        • An archive template for listing all items of the custom post type.
        • A taxonomy archive template for displaying items under specific taxonomies.

    Hello Laura,

    I’m glad to hear the subdirectory setup worked for you! Here are a few tips to help set up your child theme and migrate content across subsites.

    Using the Child Theme Across Subsites

    • In the Network Admin dashboard, go to My Sites > Network Admin > Themes and enable the child theme for your multisite network.
    • Once enabled, go to each subsite’s dashboard under Appearance > Themes and activate the child theme individually.

    Import Theme Settings (If Needed)

    • If your child theme includes specific customizer settings or theme options, you might need to replicate these manually for each subsite.

    Use WordPress Export/Import Tool

    • To copy content like pages, posts, and media:
    • Go to Tools > Export on the main site, select “All Content,” and download the XML file.
    • On the /nl site, go to Tools > Import, install the WordPress importer, and upload the XML file.

    Some plugins can help export settings, data, and themes from the main site and import them into a target subsite. However, there isn’t a one-size-fits-all solution—you may need to try different plugins to find one that meets your specific needs.

    Hello @sipanshop,

    Based on the speed report and a quick analysis, it looks like image optimization and font loading are the main issues affecting your site’s load time.


    Hello @benskinnercreative,

    You can try WordPress Playground for a quick demo and testing environment. While it’s not intended to be used as a staging site, it allows for easy setup to test themes and plugins in different versions of WordPress.

    For a local development environment, consider tools like WP Now or @wordpress/env, where you can install your theme and make changes before applying them to the live site. These tools are great for development and testing before deploying changes to a staging or production site.

    Let me know if you need more information!

    Hello @sashasint,

    It sounds like the issue with the product quantity in the order confirmation email might be related to how the “Case of Soap” product is configured on your WooCommerce store. If the product is set up using a plugin like WooCommerce Product Bundles, it’s possible that the bundle settings are affecting the displayed quantity in the email.

    If you are not using any plugin for this, you can check if the email templates in your WooCommerce store have been overridden, as customizations could cause incorrect quantities or other data to appear in the emails.

    1. Navigate to WooCommerce > Status in your WordPress dashboard.
    2. Scroll down to the “Templates” section.
    3. This section will list all the WooCommerce templates currently in use and indicate if any have been overridden. If an email template has been customized, it will show the file path, such as your-theme/woocommerce/emails/email-order-details.php.

    If you find that the email templates have been overridden, it means the default behavior of WooCommerce’s email templates has been modified, which could potentially cause the issue with displaying incorrect quantities.

    Let me know if this helps!

Viewing 15 replies - 1 through 15 (of 40 total)