MB Relationships + MB Frontend Submission
Support › MB Relationships › MB Relationships + MB Frontend SubmissionResolved
- This topic has 16 replies, 8 voices, and was last updated 1 year, 11 months ago by pza. 
- 
		AuthorPosts
- 
		
			
				
October 28, 2019 at 6:51 PM #16728[email protected] ParticipantIs it possible to add a metabox post relationship field using MB Frontend Submission? October 29, 2019 at 9:20 AM #16736Anh Tran KeymasterYes, it's possible. Each relationship meta box has an ID: {$relationship_id}_relationships_fromand{$relationship_id}_relationships_to. You can include these IDs in the form shortcode to show it on the front end.January 17, 2020 at 7:10 PM #17881Dave ParticipantAnh, I found this thread and I'm a little confused. Lets say I have a custom post called 'Classes' and I want to link that to a custom post type of 'Room'. I want to be able to edit the 'Class' with MB Frontend and select or add a new 'Room' from a 'select_advanced' field. How could I do that? July 22, 2020 at 3:53 AM #20890Nick ParticipantI'm with Dave 🙂 July 22, 2020 at 9:57 AM #20894Long Nguyen ModeratorHi Dave and Nick, The relationship extension only supports to select posts related, impossible to add new post with this box. July 23, 2020 at 1:10 AM #20914Dave ParticipantNick, MB Frontend Submission was insufficient for my needs. I ended up writing the my own UI, AJAX, and server code to handle the requests. I still used the MB Relationship php helper methods to process the data on the server. July 23, 2020 at 3:22 AM #20916Nick ParticipantI hope to be at your level some day Dave, well done! Long, I'm not OP so I'm only able to share my interpretation of what they – and therefore myself – am looking to accomplish. Let's say I have two CPTs (Ingredients and Recipes) and a relationship between them. Now I'd like to use Frontend Submission to create a form that creates a new Recipe. After I write 10k words retelling the history of ever even thinking of this recipe, I want to select ingredients that go into it. If I don't have some rare new ingredient that I've never entered before, I understand from your most recent comment that this is not possible (feature request!). However, if I want to add an Ingredient to my Recipe that's already in the system, is there a way to do so via a Frontend Submission form? July 23, 2020 at 9:15 AM #20924Long Nguyen ModeratorHi Nick, Please take a look at my screen record https://www.loom.com/share/38b868128794408cad69b6b69baee3f1. I've created two post types Ingredient and Recipe then show the relationship meta box on the front end with Frontend Submission. February 1, 2021 at 1:37 AM #24279[email protected] ParticipantHi, 
 one more clarification on this topic please.If i have 3 different post type connected with 2 different relations: A => (to) B (from) => C How can I display both connection dropdown of B post type frontend? February 1, 2021 at 10:54 PM #24285Long Nguyen ModeratorHi Gildo, The extension MB Frontend Submission supports to display multiple meta boxes on the frontend form. Please add the meta box IDs to the shortcode to display both connections of post type B. [mb_frontend_form id="{$relationship_id_AB}_relationships_from, {$relationship_id_BC}_relationships_to" post_fields="title,content" post_type="B"]See more on this documentation https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes. February 7, 2021 at 12:20 AM #24350[email protected] ParticipantHi, 
 i have this notice:Notice: Array to string conversion in /wp-content/plugins/mb-relationships/inc/relationship/admin-columns.php on line 61 and 62 February 7, 2021 at 1:35 AM #24351[email protected] ParticipantIs it possibile to create a connection from 1 post type to multiple different posts type? 
 (like: A => B,C,D)Trying: to => [ 
 'object_type' => 'post',
 post_type => [Post_Type_B,Post_Type_C,Post_Type_D],
 ]February 7, 2021 at 2:53 PM #24357Long Nguyen ModeratorHi, The extension MB Relationships only supports connecting from one post type to one post type for each connection. You can create more connections to connect from a post type to more post types. February 16, 2023 at 7:19 PM #40553vacdk ParticipantPlease help as i can't get this to work. 
 I have this ShortCode[mb_frontend_form id='product-fields, products-to-venue_relationships_to' post_fields='title,content' post_type="Product"]Product-fields is custom fields ID added to post->product 
 products-to-venue is the relationship IDAll is showing except the relationship field. I have al so tried: 
 products_to_venue_relationships_to
 products-to-venue_to
 products_to_venue_to
 all in {}April 25, 2023 at 1:51 AM #41602pza ParticipantJust wanted to add this idea/feature request: I think "Relationship" as a field type (similar to "Post" field type) would help alot. Then it could be integrated better within field groups. I'm using various relationships that make more sense alongside the other fields. Thanks again! 
- 
		AuthorPosts
- You must be logged in to reply to this topic.