Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Yes, I've added
postto thepost_typesattribute. I will also inform the development team to set thepostif missing the post type value in the builder.Long Nguyen
ModeratorHi,
Please create a staging site and share the site credentials, and some screenshots via this contact form https://metabox.io/contact/. I will help you to check the issue.
Long Nguyen
ModeratorHi,
Please delete (or move to Trash) the current field group
Médias-Photos-Fieldson your site then download this JSON file and import it to your site https://pastebin.com/nTsCqgqiLet me know how it goes.
Long Nguyen
ModeratorHi John,
Could you please share your feedback about Meta Box? It will help us to improve our plugin.
Long Nguyen
ModeratorHi,
MB User Meta does not have an option to restrict users from seeing other user meta fields. You can use this plugin to restrict users from seeing the user profile page https://wordpress.org/plugins/user-role-editor/
Long Nguyen
ModeratorHi,
Please export the field group and share it here. I will help you to fix the issue.
Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#export--importLong Nguyen
ModeratorHi,
rwmb_meta_boxesis a filter hook, not an action hook as you can see on your code. If you want to check the action fired, please check it at theinithook, please read more here
https://github.com/wpmetabox/meta-box/blob/master/inc/core.php#L23
https://github.com/wpmetabox/meta-box/blob/master/inc/core.php#L48-L56Long Nguyen
ModeratorHi,
So if you query for only two post types E, F, does that display posts of them? It is possible that the current user is not the author of posts from two post types E, F.
Long Nguyen
ModeratorHi Yasmine,
1. If you want to create a checkbox or select field to save the post as draft, please refer to this topic https://support.metabox.io/topic/controlling-post-status-in-front-end-dashboard/#post-31734
2. Making the multi-step feature for the frontend form is so complicated. You will need a lot of JS code to create a button to go back/forward the tab. This featured request is on our roadmap so please wait for the next updates, our developer will make it available.
Long Nguyen
ModeratorHi Shane,
You can create a custom field (single_image) with the ID
_thumbnail_idto set the featured image for the post when submitting via the frontend form. Please read more on this documentation
https://docs.metabox.io/extensions/mb-frontend-submission/#reorder-post-fieldsLong Nguyen
ModeratorHi,
Please understand that the attribute
object_type="term"is used for the term meta, which means you should use it when you want to display the field value of a term. Read more here https://docs.metabox.io/extensions/mb-term-meta/And you should add the
object_idattribute if you want to display the value of another object (term/user) on the current post page.I suppose that you want to display the field value on a post page, so no need to add the attribute
object_type="term". Hope that makes sense.Long Nguyen
ModeratorHi,
The PHP code in the article only works with the
checkboxfield, a simple field with a single value. Assume that thecheckboxfield has the IDcheckbox_wdpmzjmthr, then the code to hide the tab would beadd_filter( 'rwmb_outside_conditions', function( $conditions ) { $conditions['.rwmb-tab-tab_4er7e4xyg9g'] = array( 'hidden' => array( 'checkbox_wdpmzjmthr', 'disable_second_content_section' ), ); return $conditions; } );May 27, 2022 at 9:44 PM in reply to: Showing connected users on a post template made by a different user #36219Long Nguyen
ModeratorHi Yasmine,
If you are using the field
userto set multiple authors for the post, you can follow the documentation to get user IDs and author meta.
https://docs.metabox.io/fields/user/#template-usage
https://docs.metabox.io/extensions/mb-user-meta/For example:
<?php $user_ids = rwmb_meta( 'field_user_id', '', get_queried_object_id() ); foreach ( $user_ids as $user_id ) { $co_author = rwmb_the_value( 'user_meta_id', ['object_type' => 'user'], $user_id ); } ?>Long Nguyen
ModeratorHi Brent,
The posts of a CPT will have the URL follow this format
http://your-site.com/cpt-slug/post-slugSo it is normal when you have two posts with the same CPT slug
/events/event-name
/events/thank-youLong Nguyen
ModeratorHi,
For other custom fields of other object types, you need to add the attribute
object_idto the helper shortcode.[rwmb_meta id="color" object_id="15" object_type="term"] -
AuthorPosts