How to Create CPTs Relationships via WordPress Front End Form | JetEngine & JetFormBuilder

Sdílet
Vložit
  • čas přidán 30. 07. 2024
  • Learn how to create custom post types relationships via WordPress front end form. Osamu from Zen Ideas will show how to add new CPT, create relationships, add front end form and create account page template.
    -------------
    📄Profile Builder series:
    • Getting Started with P...
    📄How to create custom post type:
    • Using Gutenberg (WordP...
    📄Create front-end forms with JetFormBuilder:
    bit.ly/3rbPKro
    📄Connect Related Items with Post Submit Actions:
    bit.ly/3Sy0fB9
    -------------
    ►Get JetEngine plugin:
    bit.ly/3RhLfq2
    ►Choose Crocoblock subscription:
    bit.ly/3dJYa6e
    ►Download JetFormBuilder:
    bit.ly/3SfgrY8
    -------------
    Follow Zen Ideas for more helpful content:
    ► / @osamu_wakabayashi
    ►zenideas.ca/
    #cpt #relationships #wordpress #jetengine #jetformbuilder #crocoblock #customposttype #frontendform
    ► TIMESTAMPS
    0:00 - Intro
    2:28 - Adding another custom post type.
    3:11 - Creating a relationship between CPT and CPT.
    6:55 - Creating an "add a relationship" option to the front-end form
    9:43 - Creating a front-end form to add the parent CPT
    11:26 - Creating a template for the account page to add the parent CPT with the profile builder module
    13:07 - Creating an "Add parent CPT" option to the front-end form.
    19:32 - Wrap up
    ------
    Join us here:
    ► FB Community: / crocoblockcommunity
    ► Facebook: / crocoblock
    ► Twitter: / mrcrocoblock
    ► Instagram: / mrcrocoblock
    ► Pinterest: / crocoblock
    ► LinkedIn: / crocoblock
  • Věda a technologie

Komentáře • 77

  • @naabigaabdoulrazak1959

    Hey Osamu, that a good video. Thank you for this video.
    As I said earlier, your videos are getting better and better. By showing the steps, we can better understand how you built the elements, few steps are still missing an example would be the form fields settings and the listing but thanks a lot for what you have already done.
    I say it not just for me but for new viewer as well, I have been using CrocoBlock since 2019 so I am familiar with most of their complex and powerful plugins setup which require a learning curve. Thanks to geniuses like you we keep learning new tricks.
    KEEP UP WITH THE GREAT WORK ✌

  • @alimalek9362
    @alimalek9362 Před rokem

    It was a great tutorial, thank you. I really didn't know how to set relations between parent and child through front-end form. It was very useful.

  • @danielgarrido6430
    @danielgarrido6430 Před rokem +1

    Great video! Thank you very much Osamu! But how about editing the event to change the speaker? Specifically, how can I preset the Select field in the form with the current speaker pulled from the relation already established?

  • @robbie9783
    @robbie9783 Před rokem +1

    Hi. Are there any way to transplante posts from frontend? Thanks

  • @mohammadforutan341
    @mohammadforutan341 Před rokem

    Hello. Is it possible to enter post types with the Gravity Form plugin?
    I have needs, which form and jet formbuilder cannot do. Can I use gravity form?

  • @daniloribeiro71
    @daniloribeiro71 Před rokem

    There is Possibility to register categories and tags using JetForm Builder in Front-end?

  • @moallaacademy
    @moallaacademy Před rokem

    as "Child Item Id" you selected "Inserted_post_id"
    where did "inserted_post_id" come from?
    i don't see that on your form
    and I checked ur previous tutorial and it was not there

    • @moallaacademy
      @moallaacademy Před rokem +1

      i think I got it
      when i use cpt "Inserted_post_id" is already there!
      but when i use cct it is not there!
      so how should i create relationship between two cct in front end

  • @felixthamu6639
    @felixthamu6639 Před 8 dny

    Great video Osamu. Since you are the only one who seems to be answering questions, I have 3 string calculated fields from conditional logics which either of these can be a title (slug). In insert/update post submission actions, only one of these fields can be the title. I therefore need a fourth calculated field to take the output of ONE of the 3 conditional fields. I have tried everything but the information from all the 3 conditional fields still makes it way to this fourth field. Direct me please to a resource which can help me figure this out.

    • @Crocoblock
      @Crocoblock  Před 5 dny +1

      well, it depends on what exactly you need to achieve
      in general, if you want to combine fields, then you need to use the option As string in the calculate field
      but it's not clear enough about the part 'to take the output of ONE of the 3 conditional fields'
      on which principle you'll know which field to choose?
      could you please enlarge it a bit?

  • @jenniferward6821
    @jenniferward6821 Před rokem

    Many thanks I watched the Croco tutorial and it kept making a relation to ACCOUNT page although I followed her exactly - then I listened to your tut and you were different in one respect you selected INSERTED NEW POST instead of current ID - and now it works. 🙄

    • @Crocoblock
      @Crocoblock  Před rokem

      We are glad to know you could make it work 🥳. On 7:37 minute inserted_post_id was chosen on this video.

  • @MsilikaleMsilanga
    @MsilikaleMsilanga Před rokem

    Thank you, realy helpful. How do you make the speaker to selected in the current form after when is added 18:22

  • @user-ud6gb5pz7s
    @user-ud6gb5pz7s Před rokem

    Hey thanks for the good video!
    Can you show how to create the "edit event" form? I tried to do it myself but I failed to set up the preset settings for the select field to show the already selected parent in the form.

    • @Crocoblock
      @Crocoblock  Před rokem

      Hello! Thank you for your feedback! To set up pre-set for the field with related items, click on Default Value Dynamic tag icon, please prnt.sc/WfoK3Wy1GeBN If you still have any questions how to make it work, feel free to contact our support team for help crocoblock.com/help-center/

  • @HelaG50
    @HelaG50 Před měsícem

    Very useful tutorial. My relations seem to work although I cannot see the "title" and "actions" when editing my CPT. For example in 9:15 above I can only see the two buttons "add new speaker" and "connect speakers" but no title and actions. Is there a reason for this?

    • @Crocoblock
      @Crocoblock  Před měsícem +1

      kindly proceed to our support team so we could investigate it better what exactly is wrong from your side crocoblock.com/help-center/

  • @aceweboneglobe9412
    @aceweboneglobe9412 Před rokem

    Hi, Osamu. Your tutorial is always easy to understand. Thank you. At 6:54, if I want to display other meta field as a choice for selection, how can I do it? You used title but if you make "speaker" meta field...

    • @Crocoblock
      @Crocoblock  Před rokem

      Hi! Please, contact our support on this issue - crocoblock.com/help-center/
      They'll check and help :)

  • @HappyHappy_1314
    @HappyHappy_1314 Před 2 měsíci

    Excellent tutorial! May I know why not set Speakers to User, wonder what are differences/when to
    use Speaker Users or Speaker CPT? Also if I want to connect relations with 2 Users, is that possible as seem will have confusion?

    • @Crocoblock
      @Crocoblock  Před 2 měsíci

      thank you :)
      there's no huge difference as you choose the elements which suit your idea better
      using Speakers as CPT provides you wider possibilities due to meta fields
      at the same time, you can create a meta box for Users to add and then display more information
      as for Speakers as CPT, you can then create a Single page for the user, if you use Users themselves, then the single page can be done only if you have implemented the profile builder functionality
      here are some guides on how to set up profile builder
      czcams.com/video/I_HOFovnH4k/video.html
      czcams.com/video/ibEDq8gaJzI/video.html&ab_channel=Crocoblock
      czcams.com/video/DloUYSFmAvs/video.html&ab_channel=Crocoblock
      crocoblock.com/knowledge-base/features/jetengine-user-profile-builder-overview/
      so, everything depends on what exactly you need to show :)

    • @Crocoblock
      @Crocoblock  Před 2 měsíci

      and yes, you can use Users-Users in the relation ;)

  • @mediasites
    @mediasites Před 10 měsíci

    In your video, we connect from Gutenberg Editor. Can we connect if we use Classic Editor?

    • @Crocoblock
      @Crocoblock  Před 10 měsíci

      Hello! Yes, you can relate posts if you use Classic Editor.

  • @dwayneoliver2685
    @dwayneoliver2685 Před rokem

    Hello Osamu,
    Can you send a link to the first "how-to" video that you reference at the beginning of the video?
    Thanks

    • @Crocoblock
      @Crocoblock  Před rokem

      Sure, here we go: czcams.com/video/KzSD-01NXV4/video.html

  • @HappyHappy_1314
    @HappyHappy_1314 Před 2 měsíci

    I I would like to build a website connecting Tradesmen and homeowners/job creators. I will set Job as CPT, and supposed there are few required relations, eg CPT jobs to tradesmen, CPT jobs to homeowners, tradesmen to homeowners. In this case, what should I set for Tradesmen and Homeowners, Users or CPT? For relations, I would set ‘Many to Many’ as many tradesmen can provide jobs to many homeowners, however, in this case do I need to manually connect both at WP backend or no need manual connection since choosing ‘Many to Many’ relations can already demonstrate all opening relations between all jobs to tradesmen and homeowners?

    • @Crocoblock
      @Crocoblock  Před 2 měsíci

      as I've already mentioned in the previous comment, if you need to show the Single page, then it's better to use CPT for users
      and in your case I would set tradesmen and homeowners as CPTs, I think

  • @user-gl7ju7xz3q
    @user-gl7ju7xz3q Před 9 měsíci

    Hi Osamu, thank you for the helpful video
    how to connect existed CPTs to another existed CPTs in front end form?
    and how to fill the relations metadata after creating it?

    • @Crocoblock
      @Crocoblock  Před 9 měsíci

      Hello! Check this tutorial please:
      czcams.com/video/t7EUTl78elo/video.htmlsi=iml1sNAWsjW2-FgS
      It should help you to understand how to work with Connect Relation items action.
      Here is the article which describes how to add a Relation meta field: crocoblock.com/knowledge-base/jetengine/jetengine-relations-dynamic-output/
      If you still have any questions, contact our support team, please crocoblock.com/help-center/

  • @MoxetKhanPK
    @MoxetKhanPK Před rokem +2

    Thank you Osamu for the tutorial, just wondering what is post_id at 7:00 in the form for?

    • @osamu_wakabayashi
      @osamu_wakabayashi Před rokem +1

      Current Post ID.

    • @MoxetKhanPK
      @MoxetKhanPK Před rokem

      @@osamu_wakabayashi yes it is current post ID but how its used here.

    • @moallaacademy
      @moallaacademy Před rokem

      I guess you mean "Inserted_post_id"
      for cpt it is already there
      but for cct it is not there!

  • @HelaG50
    @HelaG50 Před 25 dny

    Example: I have 1000 speakers and want to create a new event for a particular speaker. I also have a listing page showing all speakers, each with a button to add a new event. How can I relate these two CPTs without using a dropdown showing all the 1000 speakers (redundant)? That is, how can I make the parent item ID in the connect relation items Action get information from that one actual Speaker CPT? I hope you understand. Thank you.

    • @HelaG50
      @HelaG50 Před 25 dny

      Never mind. I was able to make it work using the URL Query Variable. Thanks again.

    • @Crocoblock
      @Crocoblock  Před 22 dny

      Ask us in case of any other questions :)

  • @coneqto
    @coneqto Před rokem

    How to do this with another field, other than the selector? This is unfeasible in a scenario with more than a thousand name options... I would like it to be with a text field or even automatically pull the author id with a hiden field. It's possible?

    • @Crocoblock
      @Crocoblock  Před rokem +1

      Hello! Current User ID can be stored as a value of the hidden field this way: prnt.sc/FtCuG56waJMs , also you can choose Current Post Author ID option: prnt.sc/UeBGJEBiRS4M . If you put the form on the public user page, you can get the ID of this user this way: prnt.sc/uKEaYPHcUrOM So a solution depends on what page the form is placed.

  • @eumunin
    @eumunin Před 6 měsíci

    How do I list only the speakers of the logged in user (current user)? I couldn't find the correct option on the form. When the user selects a Speeker, he sees the speekers of all users.

    • @Crocoblock
      @Crocoblock  Před 5 měsíci +1

      Try to use Generate dynamically option for the source of the field options: jetformbuilder.com/features/multi-optional-field-source-settings/#generate-dynamically
      It allows you to use the options generated by JetEngine Query.

    • @eumunin
      @eumunin Před 5 měsíci

      Tks! This worked very well, but now I have one more question!
      I have a select field that searches for information from a CPT (speeker) and another select field that searches for information from another CPT (events). Create a form that makes the relationship between these CPTs!? I would like to show in the selection field only unrelated events yet. Is it possible to do this through query?

  • @user-samueladema777
    @user-samueladema777 Před 3 měsíci

    I want to building a daycare website i have created a relation b/n parent with child and child with activity i want to show parents their child and activity like u did on speakers and events but i want to see the form u using for my post where can i find it. that was my question thanks

    • @Crocoblock
      @Crocoblock  Před 3 měsíci

      could you please specify a bit your request? as it's not clear enough what exactly you mean

  •  Před 2 měsíci

    What would the editing look like, as mine doesn't want to update the speakers

    • @Crocoblock
      @Crocoblock  Před 2 měsíci

      if you have some kind of issues, kindly proceed to our support team and we'll help you to cope with it :) crocoblock.com/help-center/

  • @user-samueladema777
    @user-samueladema777 Před 3 měsíci

    How can i get video for the jetformbuilder specificly that you used

    • @Crocoblock
      @Crocoblock  Před 3 měsíci

      sorry... which exactly you need to get? maybe you have some problems with displaying this video
      or what exactly do you mean? could you please help me to understand you better?

  • @VictorPietroM
    @VictorPietroM Před rokem

    Hi! Thanks for the video. I need something similar, but couldn't find a way. I need to connect a WP user to a CPT through the JetFormBuilder. Is it possible? i.e., the Speaker would be a WP user instead of a CPT.

    • @Crocoblock
      @Crocoblock  Před rokem

      Hi! Yes, this is possible. Please, contact our support crocoblock.com/help-center/
      They'll help you 😉

    • @hummerfan100
      @hummerfan100 Před rokem

      Hey, have you got a solution to that problem?

    • @VictorPietroM
      @VictorPietroM Před rokem

      @@hummerfan100 Hey there, unfortunately no.. but I think it could be done by coding a function and calling it as a hook on your form submit.

  • @ecompreneurzee1433
    @ecompreneurzee1433 Před 10 měsíci

    Hi Mr. Osamu, as usual I always like your tutorial videos, short & sharp. I have a User to CPT relations & I want to show this user as the parent relations in Jetformbuilder, may I know how to do this? Thank you in advance?

    • @Crocoblock
      @Crocoblock  Před 9 měsíci +1

      Hello! You should build a query to display related items. Then use Generate dynamically option to get values list from JetEngine Query. You can get more info about this option in this article:
      jetformbuilder.com/features/multi-optional-field-source-settings/

  • @Pinedownarre
    @Pinedownarre Před rokem

    Gallery type?

  • @avishithpm1712
    @avishithpm1712 Před 11 měsíci

    "Hey everyone,
    I'm working on a real estate website featuring buildings and apartments as custom post types. Apartments have a 'rent' or 'sale' value. I want to list buildings that have only rental apartments. Any tips on how to do this? Your help is much appreciated!(building is parent of apartment)

    • @Crocoblock
      @Crocoblock  Před 11 měsíci

      If you need our assistance on this question, feel free to ask them here: crocoblock.com/help-center/

  • @dragon3602010
    @dragon3602010 Před měsícem

    great and how can I during the creation of the CPT in the admin:
    create a CPT that has a relation to the current CPT that I am creating, via snippet code or is there another way ?
    I want to be able to choose a random post from a certain CPT and assign it to the one I am creating
    Thanks

    • @Crocoblock
      @Crocoblock  Před měsícem

      unfortunately, we don't have a built-in solution
      you can try any custom solution on your own :)

    • @dragon3602010
      @dragon3602010 Před měsícem

      @@Crocoblock ok thanks but how can i know the PHP functions that i can call ? is there any documentation ?
      thanks

    • @Crocoblock
      @Crocoblock  Před měsícem +1

      I'm afraid, we don't have any useful tips for this idea

    • @dragon3602010
      @dragon3602010 Před měsícem +1

      @@Crocoblock ok but there is an api , no ?

    • @Crocoblock
      @Crocoblock  Před měsícem +1

      it looks like it can be done not via the api

  • @user-samueladema777
    @user-samueladema777 Před 3 měsíci

    how to make listing display only for related user ?

    • @Crocoblock
      @Crocoblock  Před 3 měsíci

      if you want to show the posts of the parent user to childs only, then you need to add the macro 'related items' to the author field and then set it up as you need it

    • @user-samueladema777
      @user-samueladema777 Před 3 měsíci

      @@Crocoblock okay thanks for ur answer but Parents are users only child have posts i want to show parents only child posts(CPT) which is related to them.

    • @Crocoblock
      @Crocoblock  Před 3 měsíci

      well, you know, relations can be set in different ways (you might have a listing for users and nested listing inside or you need to show for the current user posts which are related to this user) - it depends :)
      so it would be more efficient to proceed to our support team so that we could find the best solution for you crocoblock.com/help-center/

  • @vahidmohamadi6873
    @vahidmohamadi6873 Před 4 měsíci

    Very Small. Poor editing but useful content

    • @Crocoblock
      @Crocoblock  Před 4 měsíci

      We are happy to know you found this video useful. If you have any specific suggestions or topics you'd like us to cover in more detail, please feel free to let us know.