Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 271 through 285 (of 3,958 total)
  • Author
    Posts
  • in reply to: TypeError: logics is undefined #18597
    Anh TranAnh Tran
    Keymaster

    Can you post the code on pastebin.com? The forum auto strips all unwanted characters.

    in reply to: TypeError: logics is undefined #18576
    Anh TranAnh Tran
    Keymaster

    Can you please post the code of your meta box?

    Anh TranAnh Tran
    Keymaster

    Hi,

    The BB shortcode for image fields will render full image tag and I think it's not possible to used within HTML module.

    In that case, you can use our shortcode rwmb_meta, like this:

    <img src="[rwmb_meta id='field_id' size='full' attribute='url']">
    

    The shortcode allows you to get a specific attribute of the returned value (which is an array).

    PS: Please use the latest version of Meta Box on Github. There was a bug in getting URL of single image, that I've just fixed.

    in reply to: Get the POST ID when defining a metabox #18574
    Anh TranAnh Tran
    Keymaster

    Hi,

    You can get the post ID with the following code:

    $post_id = null;
    if ( isset( $_GET['post'] ) ) {
        $post_id = intval( $_GET['post'] );
    } elseif ( isset( $_POST['post_ID'] ) ) {
        $post_id = intval( $_POST['post_ID'] );
    }
    in reply to: User Posts Dashboard #18573
    Anh TranAnh Tran
    Keymaster

    Hi,

    The dashboard shortcode has an attribute to specify the edit page. And it will get the post type from the edit page, and then show all posts belong to that post type.

    If you want to set a specific post type, please edit the shortcode in the edit page and set the post type explicitly there. By default, it's "post".

    in reply to: Post title and post content fields #18572
    Anh TranAnh Tran
    Keymaster

    Hi Ryan,

    Are you using the Frontend Submission extension? In that extension, we hide all default post fields in the admin area, to make them not duplicated with the default WP UI.

    in reply to: Using Conditional Logic with Taxonomies #18571
    Anh TranAnh Tran
    Keymaster

    Hi Mark,

    For taxonomy_advanced field, it works similar to any other field.

    You can use contains or in condition and both works. Remember to use term ID to specify the value.

    So, you can write the condition like this:

    'visible' => ['field_id', 'contains', 4], // 4 is the term ID
    

    Or:

    'visible' => ['field_id', 'in', [4, 2]], // 4, 2 are term IDs. In this case, the field will be visible if the tax_advanced has any term with the ID specified.
    

    Please see this video for demo:

    https://www.loom.com/share/091c1c8956044d599564f3f7417aea19

    in reply to: Single image field for custom avatar #18569
    Anh TranAnh Tran
    Keymaster

    Hi Pogeun,

    I guess the problem comes from the front-end CSS, where your theme style might affect WP's style for the media library.

    The easiest way to fix it I can think of is using CSS to hide these strings. Please try it.

    Anh TranAnh Tran
    Keymaster

    Hi, you need to check if the file is uploaded in your group, like this:

    if ( isset( $file_attachment['attachment'] ) ) {
        $file_info = get_attached_file( $file_attachment[‘attachment’] );
        echo ...
    }
    in reply to: How to store WordPress Posts in a Custom Table? #18567
    Anh TranAnh Tran
    Keymaster

    Hi Daniel, we haven't supported saving the whole posts object in custom table yet. That's on our plan and we'll try to finish it this year. We'll let you know when it's done.

    Anh TranAnh Tran
    Keymaster

    Hi Ryan,

    Thanks a lot for your feedback. I've just fixed it and released version 1.6.3.

    Anh TranAnh Tran
    Keymaster

    Hi Tobias,

    Sorry for the delay. The filter works for only default user fields, like user email and password. To change the value of custom fields before saving into the DB, please use the rwmb_field_id_value filter.

    Anh TranAnh Tran
    Keymaster

    Hi James,

    There's no limits on that. That's a weird thing and we never do that. Probably it's something else.

    in reply to: image_upload field select files not working on iphone #18523
    Anh TranAnh Tran
    Keymaster

    Sorry, I missed another commit. Please apply this change to the "image_upload.js" file as well.

    in reply to: I am totally lost #18515
    Anh TranAnh Tran
    Keymaster

    Hi Jessica,

    Have you checked the custom table that I mentioned above? Can you please share a screenshot of the field setup?

Viewing 15 posts - 271 through 285 (of 3,958 total)