Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 3,661 through 3,675 (of 3,718 total)
  • Author
    Posts
  • in reply to: Custom Field Single Image as Featured Image #39099
    PeterPeter
    Moderator

    I understand the issue, in the admin area, WordPress does not support displaying 2 fields with the same ID on a page. In the frontend, with the frontend submission form, it works properly.

    In this case, I recommend removing the standard featured image section of WordPress to show the custom field created by Meta Box. If you create the CPT by Meta Box, you can go to Meta Box > Post Type > Edit the post type > Support tab > Disable option "Thumbnails".

    in reply to: Outputting user data in group loop #39098
    PeterPeter
    Moderator

    Hello Yasmine,

    Can you please share the code that creates the custom fields on your site? I recommend using this code to output a variable if you do not know what could be the value.

    echo "<pre>";
    print_r( $variable );
    echo "</pre>";
    in reply to: MB group loop - users #39097
    PeterPeter
    Moderator

    If you want to get the post meta, you need to use the function get_posts().

    Regarding the custom avatar field, can you please let me know how did you register the custom field and the code that output the field value?

    in reply to: Possible Conflict with Map Custom Field #39096
    PeterPeter
    Moderator

    Not yet, the development team is working on this issue. I will let you know when it is fixed.

    in reply to: Select Template for Post Type missing #39080
    PeterPeter
    Moderator

    Hello Denise,

    Please follow these steps to create and use the template for your CPT

    1. When registering the CPT, enable the option Page attributes in the Supports tab.

    2. Create a template file with the CPT slug in the file name. For example, CPT slug: job
    file name: template-job.php
    content

    <?php
    /*
    Template Name: Job
    Template Post Type: job
    */
    
    get_header( 'review' ); ?>
    
    content here ...
    
    <?php get_footer();
    in reply to: How to disable the content-editor of a CPT? #39078
    PeterPeter
    Moderator

    Hello Sascha,

    When creating the CPT, on the tab Support, you can disable the option Editor or use this custom PHP code to remove the content area of a post/post type

    // Remove the editor. Change 'post' to your custom post type.
    add_action( 'init', function () {
        remove_post_type_support( 'post', 'editor' );
    } );

    Get more details on the WordPress documentation https://developer.wordpress.org/reference/functions/remove_post_type_support/

    in reply to: Open Street Map (Custom Style) not visible on frontend #39077
    PeterPeter
    Moderator

    Hello there,

    To display a map subfield in a group with the custom style, you need to use the PHP code, the Twig code in the View is not supported in this case. Refer to this topic https://support.metabox.io/topic/using-a-open-street-map-with-an-address-text-field-inside-a-group/

    in reply to: Error 400 when adding or removing terms #39076
    PeterPeter
    Moderator

    The argument public should be set to true or false. You can create a test taxonomy with the tool Online Generator and combine it with your code https://metabox.io/taxonomy-generator/

    PeterPeter
    Moderator

    Great.
    Let me know if you have any questions.

    in reply to: Using an Existing Table for MB Custom Table #39070
    PeterPeter
    Moderator

    Hello there,

    Yes, you can use the existing table for a new custom post type. When creating the custom fields for the post type, please use the field IDs that match with the column name in that table. You can read more on the documentation https://docs.metabox.io/extensions/mb-custom-table/#using-existing-tables

    in reply to: MB group loop - users #39069
    PeterPeter
    Moderator

    Hello Yasmine,

    If you want to display a list of users on the frontend with Elementor page builder, you can create a field user for a post and select some users. It works like other select fields post and taxonomy.

    If you want to display a list of users by coding, please use the WordPress function get_users().

    in reply to: Textarea Line Breaks #39068
    PeterPeter
    Moderator

    Hello Macky,

    The field textarea does not save the line breaks to the database, you have to add the HTML tag <br> or newline character \n to display the line breaks on the frontend.

    in reply to: Error 400 when adding or removing terms #39055
    PeterPeter
    Moderator

    Hello Arno,

    Please generate the PHP code from the builder and add the code to the file functions.php in the theme/child theme folder to create the custom taxonomy and deactivate all plugins (including Meta Box plugins) and recheck this issue. Let me know if the issue is resolved.

    in reply to: Holding fields for review #39052
    PeterPeter
    Moderator

    You can access the field value on submitted through the global variable $_POST. For example: $_POST['field_id']

    in reply to: auto create the values for relationships #39051
    PeterPeter
    Moderator

    Hello Pat,

    There is no option to update the relationship field automatically, you need to manually select it. Or if you are familiar with coding, you can follow this documentation to know how to create relations programmatically https://docs.metabox.io/extensions/mb-relationships/#creating-connections-programmatically

Viewing 15 posts - 3,661 through 3,675 (of 3,718 total)