Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi 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_idin 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?
January 7, 2020 at 2:51 PM in reply to: ✅Can't find how i can get value of custom fields of custom taxonomy #17749Anh Tran
KeymasterHi,
Please see this documentation.
Anh Tran
KeymasterHi Razib,
I've just updated both plugins to make them work together. Please update and let me know if you find any bug.
Anh Tran
Keymasterone 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.
Anh Tran
KeymasterHi Matt,
I guess the
typetaxonomy 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.Anh Tran
KeymasterHi 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.
Anh Tran
KeymasterHi,
#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.Anh Tran
KeymasterHi,
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.Anh Tran
KeymasterHi 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.
Anh Tran
KeymasterWhen 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.
Anh Tran
KeymasterHi,
We don't have a field for icon picker yet. I think the best way to do that is creating a new field type. It gives you more flexibility to control the data you want. Using
select_advancedmight be limited.Anh Tran
KeymasterHi Florian,
Unfortunately, we haven't done this yet. There are some technical challenges that we haven't resolved yet.
Anh Tran
KeymasterSorry, I should have made it clearer: there is NO such solution for your problem.
-
AuthorPosts