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

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 81

  • @philiprudy1053
    @philiprudy1053 2 месяца назад +1

    What about editing the event and having the form preset with the fields you submitted?

    • @Crocoblock
      @Crocoblock  2 месяца назад

      it looks like that you can apply the usual preset with the Update post action
      crocoblock.com/knowledge-base/jetengine/jetengine-how-to-update-posts-via-front-end-form-submission-option/#preset-settings

  • @alimalek9362
    @alimalek9362 Год назад

    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.

  • @MoxetKhanPK
    @MoxetKhanPK 2 года назад +2

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

    • @osamu_wakabayashi
      @osamu_wakabayashi 2 года назад +1

      Current Post ID.

    • @MoxetKhanPK
      @MoxetKhanPK 2 года назад

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

    • @moallaacademy
      @moallaacademy Год назад

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

  • @HelaG50
    @HelaG50 7 месяцев назад

    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  7 месяцев назад +1

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

  • @danielgarrido6430
    @danielgarrido6430 Год назад +3

    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?

  • @MsilikaleMsilanga
    @MsilikaleMsilanga 2 года назад

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

  • @robbie9783
    @robbie9783 Год назад +1

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

  • @naabigaabdoulrazak1959
    @naabigaabdoulrazak1959 2 года назад

    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 ✌

  • @moallaacademy
    @moallaacademy Год назад

    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 Год назад +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

  • @HappyHappy_1314
    @HappyHappy_1314 8 месяцев назад

    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  8 месяцев назад

      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
      ruclips.net/video/I_HOFovnH4k/видео.html
      ruclips.net/video/ibEDq8gaJzI/видео.html&ab_channel=Crocoblock
      ruclips.net/video/DloUYSFmAvs/видео.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  8 месяцев назад

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

  • @aceweboneglobe9412
    @aceweboneglobe9412 2 года назад

    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  2 года назад

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

  • @mediasites
    @mediasites Год назад

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

    • @Crocoblock
      @Crocoblock  Год назад

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

  • @HappyHappy_1314
    @HappyHappy_1314 8 месяцев назад

    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  8 месяцев назад

      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-samueladema777
    @user-samueladema777 9 месяцев назад

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

    • @Crocoblock
      @Crocoblock  9 месяцев назад

      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?

  • @eumunin
    @eumunin 11 месяцев назад

    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  11 месяцев назад +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 11 месяцев назад

      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?

  • @danilo.mamedes
    @danilo.mamedes 2 года назад

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

  • @felixthamu6639
    @felixthamu6639 4 месяца назад

    How would I accomplish this Osamu? I have two terms (taxonomies): country and city. They are related as one-to-many and all the relations are created. In a registration form on jetformbuilder, I need when a user chooses a country like America (parent) in a selection field, a second selection field shows the related cities (children).

    • @Crocoblock
      @Crocoblock  4 месяца назад

      looks like this addon should help you :)
      give it a try!
      github.com/ihslimn/jet-form-builder-update-field

  • @mohammadforutan341
    @mohammadforutan341 2 года назад

    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?

  • @felixthamu6639
    @felixthamu6639 6 месяцев назад

    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  5 месяцев назад +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?

  •  8 месяцев назад

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

    • @Crocoblock
      @Crocoblock  8 месяцев назад

      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 9 месяцев назад

    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  9 месяцев назад

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

  • @日光-x8h
    @日光-x8h Год назад

    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  Год назад

      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/

  • @ecompreneurzee1433
    @ecompreneurzee1433 Год назад

    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  Год назад +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/

  • @coneqto
    @coneqto Год назад

    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  Год назад +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.

  • @dwayneoliver2685
    @dwayneoliver2685 2 года назад

    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  2 года назад

      Sure, here we go: ruclips.net/video/KzSD-01NXV4/видео.html

  • @dragon3602010
    @dragon3602010 7 месяцев назад

    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  7 месяцев назад

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

    • @dragon3602010
      @dragon3602010 7 месяцев назад

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

    • @Crocoblock
      @Crocoblock  7 месяцев назад +1

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

    • @dragon3602010
      @dragon3602010 7 месяцев назад +1

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

    • @Crocoblock
      @Crocoblock  7 месяцев назад +1

      it looks like it can be done not via the api

  • @HelaG50
    @HelaG50 6 месяцев назад

    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 6 месяцев назад

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

    • @Crocoblock
      @Crocoblock  6 месяцев назад

      Ask us in case of any other questions :)

  • @avishithpm1712
    @avishithpm1712 Год назад

    "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  Год назад

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

  • @DZArena-t6m
    @DZArena-t6m Год назад

    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  Год назад

      Hello! Check this tutorial please:
      ruclips.net/video/t7EUTl78elo/видео.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/

  • @VictorPietroM
    @VictorPietroM 2 года назад

    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  2 года назад

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

    • @hummerfan100
      @hummerfan100 Год назад

      Hey, have you got a solution to that problem?

    • @VictorPietroM
      @VictorPietroM Год назад

      @@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.

  • @jenniferward6821
    @jenniferward6821 Год назад

    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  Год назад

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

  • @user-samueladema777
    @user-samueladema777 9 месяцев назад

    how to make listing display only for related user ?

    • @Crocoblock
      @Crocoblock  9 месяцев назад

      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 9 месяцев назад

      @@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  9 месяцев назад

      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/

  • @Pinedownarre
    @Pinedownarre 2 года назад

    Gallery type?

  • @vahidmohamadi6873
    @vahidmohamadi6873 10 месяцев назад

    Very Small. Poor editing but useful content

    • @Crocoblock
      @Crocoblock  10 месяцев назад

      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.