Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,366 through 1,380 (of 3,702 total)
  • Author
    Posts
  • in reply to: Hyperlink url field outputs strange code #13472
    Anh TranAnh Tran
    Keymaster

    Hi Hein,

    You have 2 cloneable fields, so when you use the shortcode to output, each of them will output in a unordered list.

    To fix this, please use this PHP code instead of shortcode:

    $texts = rwmb_meta( 'text_1' );
    $urls = rwmb_meta( 'url_1' );
    if ( ! empty( $texts ) ) {
        echo '<ul>';
        foreach ( $texts as $k => $text ) {
            echo "<li><a href='{$urls[$k]}'>{$text}</a></li>";
        }
        echo '</ul>';
    }
    in reply to: Pay to Post #13448
    Anh TranAnh Tran
    Keymaster

    We have a demo site at https://demo.wpautolistings.com, but we don't have demo account yet.

    in reply to: Custom fields not available #13447
    Anh TranAnh Tran
    Keymaster

    Sorry for the frustration. I'll check that next Monday and will fix the bugs if there's any.

    Anh TranAnh Tran
    Keymaster

    Oh, I got it. These user meta are used by WP to store meta boxes state (visible/hidden) and their order (users can reorder). Looks like Gutenberg doesn't handle these settings properly.

    Yes, you can remove them without any problem. Meta Box won't be affected by that.

    in reply to: Is there a way to add Input groups? #13439
    Anh TranAnh Tran
    Keymaster

    Hi, I've just added that to the plugin. See it on Github. See sample code.

    in reply to: Autocomplete not working with Google Maps #13437
    Anh TranAnh Tran
    Keymaster

    Hi Lukas,

    If you see "No results found", then the autocomplete works. It queries to Google and no results found, it notices you about that.

    Can you try setting the language or the region of the map? It might help to provide some results.

    in reply to: Textarea CSS Problem #13435
    Anh TranAnh Tran
    Keymaster

    It looks fine to me: https://imgur.elightup.com/vMKGtCU.png. Can you send me the full code to check? I see you have several fields with tabs.

    Anh TranAnh Tran
    Keymaster

    I think your solution is great. It might be a little bit tricky, but it works. While working with BB, I also did some tricks like that.

    I'm thinking about another (similar) solution that might not need an textarea. I'd insert an HTML module with the CSS code, and use BB's Conditional Logic to hide it when the event is not repeatable. I think it's shorter than your solution.

    Anh TranAnh Tran
    Keymaster

    Gutenberg submits posts via Ajax, but the Include Exclude extension that you're using uses PHP to filter the meta boxes. So, it needs refreshing the page.

    To make it work without refreshing the page, I'd suggest using Conditional Logic. However, it doesn't work with WordPress's category box yet.

    in reply to: Conditional logic does not work based on a taxonomy field #13430
    Anh TranAnh Tran
    Keymaster

    Hi Hansjakob Fehr,

    I misunderstood in the previous replies. My replies above worked for WordPress's taxonomy box.

    For your situation, as the conditional field is just a normal Meta Box field, you don't need complex conditions. Instead, you can just write:

    'visible' => array (
        'when' => array (
            array('medium', '=', 2 ),
        ),
    ),

    Where 2 is the ID of the term buch. The taxonomy advanced field uses term IDs, so we have to use them instead of slugs.

    Anh TranAnh Tran
    Keymaster

    Hi Paul,

    I see you use a condition for the meta box. So the post must in a specific category before the meta box appear. Don't forget to refresh the page after publishing. See my video here: http://recordit.co/ukE4SLIQaD

    in reply to: Textarea CSS Problem #13427
    Anh TranAnh Tran
    Keymaster

    Hi, I've just checked with textarea field and I don't see that problem. I see you entered HTML in the textarea field, so maybe some HTML causes that bug. Can you please post the code of the meta box here to check?

    in reply to: Map field doesn't use api key #13426
    Anh TranAnh Tran
    Keymaster

    Hi Camilo,

    I can't replicate this bug. I tried to use a custom API key and the plugin enqueues the correct URL. Can you try deactivating all other plugins and test with a simple map field to see if the bug still presents?

    in reply to: Pay to Post #13425
    Anh TranAnh Tran
    Keymaster

    Hi Sam,

    This needs some custom development. Meta Box only helps you to submit posts from the front end. I suppose you have to do some extra steps like:

    • Creating payment post types
    • Process the payments
    • Log the payment
    • Let users submit posts when payment is paid
    • Connect payment and submitted posts (or update to user profile)

    We have done similar thing for Frontend extension for Auto Listings plugin. I must say it's quite a lot of custom work.

    Anh TranAnh Tran
    Keymaster

    Hi, do you use any conditions for meta box or fields?

    I've just tested with Gutenberg and Contributor role and it seems to be fine. Here is my screenshot:

    https://screenshots.firefox.com/TzBA98Ex1xHhhqir/localhost

Viewing 15 posts - 1,366 through 1,380 (of 3,702 total)