Support Forum » User Profile

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Bricks, Metabox, and WPGridbuilder Locator Site #44168
    Davor MlinarićDavor Mlinarić
    Participant

    You need to add map field. And if it's not populated you need to update map custom field with lat,lng,zoom... example: update_post_meta($post->ID, 'map', '15.3344,22.334,14'); while importing you must update map field with that data.

    but if you already imported a bunch of data maybe this function will help you (if you have longitude and latitude).

    (use at your own risk)
    https://pastebin.com/pSntYNLF

    call the function: https://yourUrl.com/?save_all_posts=1

    in reply to: Failure after update to mb-core 1.4.9 #40023
    Davor MlinarićDavor Mlinarić
    Participant

    i'm getting this error, wp is not latest version.

    ..pects at least 1 parameter, 0 given in /var/www/vhosts/motoreni.hr/httpdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-template/src/Parser.php on line 38

    in reply to: custom field WYSIWYG content not displaying with formatting #39200
    Davor MlinarićDavor Mlinarić
    Participant

    Same here. Strange is that it was fine for first few posts, but then it stopped storing <p> tags on new posts. When i edit and resave first few posts it's ok on them, but not on new ones. wysiwyg inside cloneable group.

    Davor MlinarićDavor Mlinarić
    Participant

    Temporarly solution for 'Single Image' type. A code block should be added inside repeater.

    <?php
    global $meta_box_current_group_fields;
    $image_url = wp_get_attachment_image_src($meta_box_current_group_fields['your_image'], "full")[0];
    ?>

    For other image types that allow multiple images. This code will take url of first image.

    <?php
    global $meta_box_current_group_fields;
    $image_url = wp_get_attachment_image_src($meta_box_current_group_fields['your_image'][0], "full")[0];
    ?>
Viewing 4 posts - 1 through 4 (of 4 total)