support.cubewp.com support.cubewp.com
  • Helpdesk
  • Support Forum
Get CubeWP
support.cubewp.com support.cubewp.com
Get CubeWP
support.cubewp.com
  • Helpdesk
  • Support Forum
botezatmarcel
Participant
2 weeks, 6 days ago 1 Replies
Q:

Create Custom Fields Group (Settings)

On the custom fields tab, they are four options:

– post types

– taxonomies

– user roles

– settings.

If you click on settings, you can create various custom fields. What’s the role of this tab (settings)? While I understand I can create custom fields for post types, taxonomies and user roles, I do not understand what would happen if I create custom fields for settings.

 

Tagged:  custom fields, settings
Feedback
All Replies

Viewing 0 reply threads

  • Umer Kharboot
    Participant
    2 weeks, 6 days ago

    Hi,
    Thank you for showing interest in CubeWP.

    We have made this field for the developers. You can add any fields in the CubeWP Settings by creating the fields simply. The Field you create in CubeWP settings will be available in the CubeWP Settings.
    This feature greatly enhances the customization capabilities of CubeWP.
    To fetch the value of a field on the frontend, developers can utilize the following code snippet:

    global $cwpOptions;
    $variable = !empty($cwpOptions[‘YOUR_OPTION_NAME’]) ? $cwpOptions[‘YOUR_OPTION_NAME’] : false;

    if ($variable) {
    // Perform desired actions or operations
    }

    When implementing this code, please remember to replace ‘YOUR_OPTION_NAME’ with the actual name of the option or field created in the CubeWP settings. The $variable variable will then hold the value of the field if it is not empty. Consequently, you can execute specific functionalities within the if statement based on the retrieved value.

    It is important to customize the code to meet your specific requirements and incorporate it into your theme or plugin files wherever you need to access the CubeWP settings.

    Best regards,
    CubeWP Team

Viewing 0 reply threads

  • You must be logged in to reply to this topic.
Log In

Search Forums

Recent Topics

  • Delete Custom Post Types
  • Archive page
  • Kadence Elements + Dynamic blocks support
  • Create Custom Fields Group (Settings)
  • Google JQuery Form Fields For For Country, State and City

Sign In

Log In
Register Lost Password

Recent Replies

  • Delete Custom Post Types
  • Kadence Elements + Dynamic blocks support
  • Kadence Elements + Dynamic blocks support
  • Creating “Locations” Taxonomy From a Front End Form.
  • Archive page
Leaf Illustration

© 2023 All Rights Reserved by CubeWP