Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,591 through 1,605 (of 3,727 total)
  • Author
    Posts
  • PeterPeter
    Moderator

    Hello,

    According to the error message Fatal error: Uncaught TypeError: Unsupported operand types: string & int in /home/xxxxx/public_html/wp-includes/class-wp-rewrite.php:1036

    this is the code in the file class-wp-rewrite.php line 1036
    if ( EP_PAGES & $ep_mask || EP_PERMALINK & $ep_mask ) {

    it relates to the post type setting ep_mask that is not supported by MB CPT. Please try to delete the current CPT and re-create it manually with the same slug and settings and check the issue again.

    Following the documentation https://developer.wordpress.org/reference/functions/register_post_type/

    in reply to: Bug: Clonable map field not displaying data #45144
    PeterPeter
    Moderator

    Hello,

    The code to display the cloneable map is similar to the subfield map in the group. Here is an example:

    $maps = get_post_meta( get_queried_object_id(), 'osm_field_id', true );
    
    $args = [
        'width'  => '640px',
        'height' => '480px',
    ];
    
    foreach ( $maps as $map ) {
    	echo RWMB_OSM_Field::render_map( $map, $args );
    }
    in reply to: shortcode_atts_{$shortcode} filter not being applied #45143
    PeterPeter
    Moderator

    Hello Saul,

    Currently, there isn't a filter hook to modify the attribute of the frontend shortcode. It could be a nice feature request. I will inform the development team to consider supporting a filter hook to modify the frontend shortcode attributes.

    in reply to: fields not saving #45140
    PeterPeter
    Moderator

    Hello,

    Please check two points:

    1. The field setting save_field is not set to false.

    2. Increase the PHP setting max_input_vars, please follow the documentation https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/

    If it doesn't help, please share your plugin here and let me know where to check the field settings.

    in reply to: editor #45139
    PeterPeter
    Moderator

    Can you please share a screen record of the issue on your end? You can upload the video to Google Drive and share the URL here.

    in reply to: Set max items on relationship based on taxonomy? #45129
    PeterPeter
    Moderator

    In the builder, you can use the setting Max items in the field settings tab, screenshot https://imgur.com/isiuiHQ

    If you use the code, it is the setting max_clone. Please follow the documentation
    https://docs.metabox.io/extensions/mb-relationships/#using-code

    in reply to: Image field 'required' not working #45127
    PeterPeter
    Moderator

    Hello,

    I add a field image_upload to the field group, enable Required and see the validation works correctly when submitting the post without adding an image.

    Please try on a clean installation of WordPress and check this issue again.

    in reply to: editor #45126
    PeterPeter
    Moderator

    Hello,

    It's the HTML code, not PHP code and not an extension for the editor. You can type it directly from the keyboard.
    <div class="abc-def">

    If you are not familiar with coding, I recommend you take some basic courses to understand and use Meta Box extensions https://www.w3schools.com/

    Or hire an expert developer to help you do your project.

    in reply to: Get the POST ID when defining a metabox #45125
    PeterPeter
    Moderator

    Hello,

    When creating a new post, before publishing it, the post ID will not be created so the code to get the post ID doesn't work.
    You can update the field value after publishing the post with the hook save_post.

    in reply to: editor #45120
    PeterPeter
    Moderator

    Hello,

    1. You can add the image link directly to your reply.

    2. Calling the PHP function in the View editor is noted in the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions

    you can use the proxy mb. to call it. Note: the PHP function should return a value to use in the View editor.

    in reply to: Bug: Clonable map field not displaying data #45119
    PeterPeter
    Moderator

    Hello,

    Following the documentation https://docs.metabox.io/fields/osm/#outputting-a-map-in-a-group
    Please change the class RWMB_Map_Field to RWMB_OSM_Field and recheck this issue

    echo RWMB_OSM_Field::render_map( $group_value['osm'], $args );
    
    in reply to: Bug: Changing field type to the 'group' crashes the UI #45118
    PeterPeter
    Moderator

    Hello Maxim,

    Thanks for your feedback. I can reproduce the issue on my demo site. I've escalated this to the development team to fix the issue. I will let you know when it's done.

    in reply to: Frontend Submission + PublishPress Revisions #45117
    PeterPeter
    Moderator

    Hello Saul,

    I'm afraid that MB Frontend Submission doesn't support this case. You can set the post status Draft for the submitted post for the first time submitting. But after reviewing and publishing the post the status won't be changed to Draft again.

    in reply to: How to completely remove Custom Fields #45116
    PeterPeter
    Moderator

    Hello,

    I'm not sure how Bricks get the field information in their builder. You can contact Bricks support to get further assistance.
    Refer to our support policy https://metabox.io/support/topic/support-policy/

    in reply to: MB Views Auto Update Fails #45115
    PeterPeter
    Moderator

    Hello,

    Thanks for your feedback. I can see that issue and I've escalated it to the development team to update the new version of MB Views 1.12.7.

Viewing 15 posts - 1,591 through 1,605 (of 3,727 total)