Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 346 through 360 (of 3,702 total)
  • Author
    Posts
  • in reply to: Membership Directory #18108
    Anh TranAnh Tran
    Keymaster

    Hi James,

    I've not used Posts Table Pro, so I can't say about it. But you can do it with Meta Box plugins.

    Do I set up 2 custom post types? 1 for dealers & 1 for salespeople & connect them using MB Relationships? Or do I make everyone a WP user & add custom fields to Users with the User Meta extension?

    This is a great question and I think the most important question, no matter you choose to do it by your own or use Posts Table Pro plugin.

    I'll list the pros and cons of each method and you can choose one (just note that both methods work!):

    Using post types:
    - Pros: You can benefit from WP template system (e.g. archive page, single page)
    - Cons: There's no login for post types. So you still need to create a post for each user and connect it with the user. You can use MB Relationships for that purpose or just use post_author attribute from WP.

    Using user profile:
    - Pros: No need to create a post type for users and no need to connect that post type with user.
    - Cons: You have to work on the template by your own (querying all (one) users and display their info).

    In long term, I think the 2nd method is better since the data is more simpler to understand. The template issue is not a big problem, I guess.

    in reply to: Access a field before saving #18107
    Anh TranAnh Tran
    Keymaster

    Hi,

    If you need to modify field value before saving into the DB, please use rwmb_{$field_id}_value filter or use rwmb_after_save_field action.

    in reply to: Empty field group #18106
    Anh TranAnh Tran
    Keymaster

    Thanks for your feedback. I'll check and fix this bug.

    in reply to: Shortcodes don't display on custom posts #18105
    Anh TranAnh Tran
    Keymaster

    Hi Allan,

    The shortcode rwmb_meta you use assumes that the field value it gets is for the current post (which is a dog profile). That's why it doesn't output anything, since cat's age is a cat's custom field.

    To display a custom field of a cat profile, please pass the object_id to the shortcode: [rwmb_meta id="cats_age" object_id="123"].

    Anh TranAnh Tran
    Keymaster

    Hi,

    All the option is stored in a single option in the WP database. So you can just use get_option and delete_option functions to get and remove them. Just note that you need to pass the option_name, not settings page ID.

    in reply to: No Admin Columns Showing #18091
    Anh TranAnh Tran
    Keymaster

    Hi guys, sorry for not following up the thread. I think the solution above should work. Please let me know if you have any trouble with that.

    in reply to: Beaver Themer Field Connecter Not Working with Users #18090
    Anh TranAnh Tran
    Keymaster

    Hi, I've just updated the plugin on Github to support post author's and user's custom fields. Please try it and let me know if you need anything.

    in reply to: User Selection Match #18087
    Anh TranAnh Tran
    Keymaster

    Hi,

    I think "matches" is a many-to-many relationship, and you can use the plugin to create that relationship between users.

    in reply to: Beaver Themer Field Connecter Not Working with Users #18085
    Anh TranAnh Tran
    Keymaster

    Hi, user meta is not supported yet. It's in our list of task and we'll do it soon.

    in reply to: Fatal error on multisite install #18083
    Anh TranAnh Tran
    Keymaster

    Hi Spencer, I've tried network activate the plugin and don't see that error. I guess you install both the AIO plugin (which has Elementor Integrator extension activated) and the separated Elementor Integrator extension. If that's the case, please delete the individual Elementor Integrator extension.

    in reply to: One-to-many relationship on "bay_mb_relationships" #18076
    Anh TranAnh Tran
    Keymaster

    Thank you for your kind words and your feedback. We keep improving the plugin and will try our best to make it more useful for you!

    in reply to: How to get the table name given the field_id #18075
    Anh TranAnh Tran
    Keymaster

    Hi Nick, I've just updated AIO. Please try again.

    in reply to: How to disable submit when selecting an address? #18073
    Anh TranAnh Tran
    Keymaster

    The latest version is 1.2.6. It's already available since October last year.

    If you use Composer to update, please delete the vendor folder, clear Composer cache and run composer install again. For details, please see this docs.

    in reply to: One-to-many relationship on "bay_mb_relationships" #18072
    Anh TranAnh Tran
    Keymaster

    Hi,

    If you want to force only one connection from one side of a relationship, please set 'max_clone' => 1 to the field on that side, like this:

    add_action( 'mb_relationships_init', function () {
        MB_Relationships_API::register(
            array(
                'id'   => 'workout_to_workout_exercises',
                'from' => array(
                    'object_type' => 'post',
                    'post_type' => 'workout',
                    'field' => array(
                        'max_clone' => 1, // Limit to 1 connection only.
                    ),
                ),
                'to'   => array(
                    'object_type' => 'post',
                    'post_type' => 'workout_exercises',
                ),
            )
        );
    } );
    in reply to: rwmb_get_registry() in network context #18071
    Anh TranAnh Tran
    Keymaster

    Hi Kevin,

    I've just tested and found that the wp-load.php file loads everything and thus, runs all necessary actions, including the init. That means when including that file, the init action is already fired, and meta boxes are registered. When switching to another site in the network, we simply switch the options/configure/themes, etc. and the actions are not triggered again.

    I'm not sure if there's a way to change that behavior. I don't have a solution for that at the moment. I'm very sorry.

Viewing 15 posts - 346 through 360 (of 3,702 total)