Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 436 through 450 (of 3,702 total)
  • Author
    Posts
  • Anh TranAnh Tran
    Keymaster

    Hi Robert,

    How do you show your Custom fields in a table on a Page in frontend – Is there a MB plugin?

    You probably need to use some code to output the custom fields. Please refer to the helper functions to do that. As you control the code, you can output it the way you want (in table or list, or plain HTML).

    How would you go about showing all the Custom Fields – INCLUDING the related Custom Fields data?

    If you use MB Relationships to create relationships between objects, you can get all the related items. And for each item, you can get custom fields using the helper functions as above.

    Can you sort such a table on Field titles?

    You might want to use a JS-solution such as DataTables.

    How can you make a search for a Cat and show all Custom Fields and Related Custom Fields?

    Please try FacetWP. We also have a free integrator with it.

    Anh TranAnh Tran
    Keymaster

    Hi Matt,

    Can you tell me how did you setup the custom fields? Are they for posts or taxonomy? Can you share some screenshots?

    in reply to: Title on Custom post is a must? #17752
    Anh TranAnh Tran
    Keymaster

    Hi Robert,

    But since I have several Field Groups and this only applies to one of them, how do I filter that?

    You need to repeat the same hooks for other post fields. Note that: only for post fields (post title, post content, etc.), not all custom fields.

    The Wysiwyg solution above does not solve Frontend registration. Nor does it populate into Custom table.

    I'm not clear about this. It's about post content. What did you mean for frontend registration and custom table?

    in reply to: Custom Field Form vs. Sidebar Taxonomy Forms Problem #17751
    Anh TranAnh Tran
    Keymaster

    Hi Matt,

    Can you share a screenshot of the problem? I'm not quite clear about it.

    in reply to: Users don’t have the option to edit #17750
    Anh TranAnh Tran
    Keymaster

    Hi Travis,

    I've split your topic into a separated one, since it's a different problem.

    1) To let users edit their own posts, you need to set post_id in the shortcode. This tutorial covers all the steps to do that. Please try it.

    2) I'm quite confused about the object types you set for User Registration and User Profile. Is "Users" a custom post type or is it WordPress users?

    Anh TranAnh Tran
    Keymaster

    Hi,

    Please see this documentation.

    in reply to: font awesome select field help #17730
    Anh TranAnh Tran
    Keymaster

    Awesome! Can you share it with us? I'll add it to our Resources page.

    in reply to: MB Conditional Logic is not working! #17725
    Anh TranAnh Tran
    Keymaster

    Hi Razib,

    I've just updated both plugins to make them work together. Please update and let me know if you find any bug.

    in reply to: Metabox Group Subfields not Showing on Elementor #17723
    Anh TranAnh Tran
    Keymaster

    one year ago there was written about working on….

    Yes, we did work on that. But it was harder than we expected and we couldn't finish it.

    so when will this happen? any timeframe?

    I'm afraid we can't give you an estimate on that at the moment. But we'll try our best to do that as soon as possible.

    in reply to: Blank page on Add/Edit Custom Post Type #17717
    Anh TranAnh Tran
    Keymaster

    Hi Matt,

    I guess the type taxonomy is used somewhere else on your website. Maybe it's registered by WP or other plugin. In this case, I think you did best: changing its slug makes it unique and works.

    in reply to: Want a Custom Profile Avatar #17716
    Anh TranAnh Tran
    Keymaster

    Hi Nicole,

    You need to get the user ID first, and then use the helper function to get the image. This is a sample code you can start with:

    $user_id = get_current_user_id();
    $images = rwmb_meta( 'support-agent-profile', ['object_type' => 'user'], $user_id );
    $image = $images[0];
    echo "<img src='{$image['url'}'>";

    You might want to change the code to get user ID if that's not the current user.

    in reply to: MB Custom Table And Gravity Forms #17715
    Anh TranAnh Tran
    Keymaster

    Hi,

    #1. That can be done with GF hooks (after creating form) and MB Custom Table API. Something like

    add_action( 'gf_after_create_form', function() {
        $fields = gf_get_form_fields();
        $columns = [];
        foreach ( $fields as $field ) {
            $columns[$field] = 'TEXT NOT NULL';
        }
        MB_Custom_Table_API::create( 'my_custom_table', $columns );
    } );

    Please note that the GF action name and function should be corrected according to GF docs. This is just the pseudo-code, not an actual running code.

    #2. Similar to that, you should hook to GF after submission to insert a new row into the DB. We don't have a public API for that, but you can use $wpdb->insert() to do it.

    in reply to: MB Blocks with allowed_block_types #17714
    Anh TranAnh Tran
    Keymaster

    Hi,

    Each block registered with MB Blocks has an unique ID of meta-box/{$id}. So you can use it to add to your filter list.

    in reply to: Associate two different page types #17713
    Anh TranAnh Tran
    Keymaster

    Hi Matt,

    You can use the MB Relationships to create relationships between 2 post types.

    To output the connections on the front end, you need to use some code. Please see MB Relationships documentation to do that.

    in reply to: Single metabox on Reciprocal Relationship #17712
    Anh TranAnh Tran
    Keymaster

    When you use reciprocal relationships, the "from" and "to" don't matter anymore. So you can use WP_Query on the front end for either side and it will work.

    When saving into the database, the plugin will delete existing connections first, then re-add new connections. It doesn't care about the "from" or "to" side. That's why you see it flips.

Viewing 15 posts - 436 through 450 (of 3,702 total)