Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1,366 through 1,380 (of 3,707 total)
  • Author
    Posts
  • in reply to: Pay to Post #13477
    Anh TranAnh Tran
    Keymaster

    Hi Sam, we actually done that for WP Auto Listings plugin. Here is a quick video to show you how it's done: http://recordit.co/sJmMETYBIu. It has a lot of custom code for the premium feature, so I couldn't share here.

    in reply to: Change Destination Of Custom File Upload Field Type #13476
    Anh TranAnh Tran
    Keymaster

    Hi,

    To avoid the complexity, I avoided using predefined variables for things like site number in multisite network. But you can always do that with a little code, like this:

    function prefix_get_site_upload_dir() {
        return WP_CONTENT_DIR . '/uploads/sites/' . get_current_blog_id() . '/my_uploads/';
    }

    And in the field settings, set:

    'upload_dir' => prefix_get_site_upload_dir(),

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

    Hi,

    Thanks a lot for your code. There was a CSS bug with the textarea for tabs-left style, which has just been fixed in the recent version. Please update.

    in reply to: Sortable Select #13474
    Anh TranAnh Tran
    Keymaster

    Hi,

    Unfortunately, we don't have such field type :(. Please try to use cloneable select/radio field, which can help do almost the same thing.

    in reply to: Do I need Relationships for Events & Reviews? #13473
    Anh TranAnh Tran
    Keymaster

    Hi Nick,

    In this situation, you definitely need way to connect reviews to an event. And that's a relationship between Event and Review. So, using MB Relationship is a perfect in this case.

    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.

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