Build CPT & CCT Relationships & Display Listings with JetEngine

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ค. 2022
  • Lately, we saw a lot of improvement in CCT and dozens of users are using this new data store type in #WordPress. One of the challenges is to display the related CCT for a CPT using a query builder.
    In today's episode, we cover how to make relationships, create listings and display correct information on the front-end.
    If you intend to use a form on the front end which is not yet possible; you can use the manual method mentioned here.
    • Build Crocoblock JetEn...
    Download Elementor:
    elementor.com/?ref=16401
    Download Crocoblock:
    crocoblock.com/?ref=4088
    Need to build dynamic websites?
    softemblems.com
    Follow me on Social Media
    Facebook: / mxtchamkani
    Instagram: / moxet
    Twitter: / sokaniwaal
    #crocoblock #jetengine #elementor
    Track: Peruvian Woods - Dave Osorio [Audio Library Release]
    Music provided by Audio Library Plus
    Watch: • Peruvian Woods - Dave Osorio | Free B...
    Free Download / Stream: alplus.io/peruvian-woods
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 68

  • @harveybotero9392
    @harveybotero9392 ปีที่แล้ว +1

    Dude, this video save my life, thank you very much :)

  • @Locallatitudetutorials
    @Locallatitudetutorials ปีที่แล้ว

    Nicely done!! Thank you!👌

  • @abdulhamid.469
    @abdulhamid.469 ปีที่แล้ว +2

    Awesome. Make complete croco blocks tutorials. Plz plz.

  • @hanifbahari6606
    @hanifbahari6606 10 หลายเดือนก่อน +1

    Thanks, I was struggling to display the listing with the post query option inside the Listings grid and didn't know it is not recommended from Crocoblock.

  • @A3lxxxx
    @A3lxxxx ปีที่แล้ว

    moreee video, love youuu!!!

  • @ddewilt
    @ddewilt ปีที่แล้ว

    Nice one! 👌🏼😁

  • @DigitalrealtyApartment
    @DigitalrealtyApartment ปีที่แล้ว

    Thank you. Can we redirect user to homepage if that user don't have relation with post?

  • @stephenandrewjacobs
    @stephenandrewjacobs 5 หลายเดือนก่อน +1

    Hi Moxet, thank you for this video. Do you have an update on the form functionality?

  • @jenniferward6821
    @jenniferward6821 2 ปีที่แล้ว +1

    Great!

  • @Art-01
    @Art-01 ปีที่แล้ว

    Thank u.
    Please make more videos from Crocoblocks plugins. Special Jet Engine.

  • @bigtutos5804
    @bigtutos5804 11 หลายเดือนก่อน

    Thank you Moxet, for the tutorial.
    Please I want to know how this method is, compared to the Jet Reviews Plugin (optimization, how data is saved in the database, etc.)
    Thanks.

  • @ngoclamlai
    @ngoclamlai ปีที่แล้ว

    waiting for your next video

  • @EarningJindabad
    @EarningJindabad ปีที่แล้ว

    hello sir listing item can have custom post option why

  • @alfarrabiosdaalma
    @alfarrabiosdaalma ปีที่แล้ว +3

    Hello Moxet! Thank you for your content!!! I'm trying to relate 2 CPTs, where the 1st CPT is "book" and the 2nd CPT is the "book platform", a 1 to n relationship, because 1 book can be sold on several platforms. I created the platform CPT and included in it the field "book" which shows the combination of all books from the CPT post "book". Then I created the "book" list grid with only the "book" field, which is an ID; next, I created the "platform" grid listing, which includes the "book" listing. That's right, it appears directly in the related book using the "POST QUERY" option. However, what I really need is to create an individual page where I show a book and just below the "platform" list grid showing all the platforms where the book is sold, right? However, I am in no way able to display the relationship on the individual book page with the corresponding platforms. Either all platforms appear, unrelated to the book, or no platform appears. I spend hours looking for solutions, whether with relations, with queries of all kinds and nothing works kkkk I'm already sleepless for a detail that I imagine must be simple, but I can't see the error. Importantly, the field names are identical in both CPTs (title-book) and I can see that this field only captures the ID and not the actual title. I've already gone through all the videos from Crocoblock and several youtubers and nothing similar to my case!!! Thank you if you can help.

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว +2

      Hello, send a message on any of my social profile mentioned in description, i ll help u

    • @skaldiltd5008
      @skaldiltd5008 10 หลายเดือนก่อน

      @@MoxetKhanPK sent

  • @moncholo_
    @moncholo_ ปีที่แล้ว +1

    Nice one bro ! I have question thought, how would you add a filter after all that? I mean, I have to do exactly the same, but I need to filter for a metafield that i created in the CCT.
    Is there any way you can filter from the listing grid settings?
    or would you do it directly from the custom query that you created

    • @moncholo_
      @moncholo_ ปีที่แล้ว

      Apparently, when u use a custom query, you cant use others querys

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      In custom query, you can apply meta filter on CCT or CPT. What is your use case?

    • @moncholo_
      @moncholo_ ปีที่แล้ว

      ​@@MoxetKhanPK Yeah! I added it in the custom query and it worked fine!
      I have projects, related to Campaigns (with metafield STATUS: In progress and Finished).
      Thank you !!!

  • @moallaacademy
    @moallaacademy ปีที่แล้ว +2

    how can i create relationship between two CCT? for example CCT1 and CCT2
    I want to store the ID of cct2 in a field in cct1
    now while listing cct1 can I show title field of cct2? ( i only have id of cc2 in cct1)

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      You can do it directly from relationships now, its already launched by JetEngine

    • @moallaacademy
      @moallaacademy ปีที่แล้ว +2

      @@MoxetKhanPK
      I wish there was a video clip about it 🙏
      may i ask if you can make a tutorial about it
      i watched many video tutorial about jetEngine and ur videos are a lot better! specially ticketing system! so informative

    • @manlymanchild
      @manlymanchild ปีที่แล้ว

      I also would love to have this question answered. I can't find any instruction on how to connect two CCTs together. I *can create the relationship between the two CCts, but I don't know how to build a query to show one-to-many data on the parent's page. Thanks for the video - one of the better ones on this topic!

    • @moallaacademy
      @moallaacademy ปีที่แล้ว +1

      @@manlymanchild
      i came to know that the best way now is using relationship.
      and to display the fields you can user related items. to add new related items or edit the relationship i had some problems but it seems that crocoblock resolved the issues on new updates.
      so now i suggest to work with default relation method not storing ID and ....

  • @stillready6405
    @stillready6405 2 ปีที่แล้ว +4

    Great video! Please make an update when Coroblock fixes the problem with not being able to add relations in the frontend with a form.

    • @MoxetKhanPK
      @MoxetKhanPK  2 ปีที่แล้ว +1

      I ll keep you updated..

    • @darylmeese9621
      @darylmeese9621 ปีที่แล้ว

      @@MoxetKhanPK I believe this has been corrected, right?

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      @@darylmeese9621 i saw some updates but did'nt tried so far.

    • @emptysonofdoubt
      @emptysonofdoubt ปีที่แล้ว +1

      @@MoxetKhanPK any updates yet? front end moderation is, of course, important for staff. Thanks for the great video!

    • @seriatimgroup9454
      @seriatimgroup9454 ปีที่แล้ว

      @@MoxetKhanPK any update on the front-end relationship building, please?

  • @lamicropipeta
    @lamicropipeta ปีที่แล้ว

    awweeesomee, thanks a lot. Question: Can you auto asign feedback to tickets instead doing manually?

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      Hi, is this question related to this tutorial, i am not sure?

  • @rodlivz
    @rodlivz ปีที่แล้ว

    Thanks for this amazing tutorial, please do a tutorial of when one can use CCT and CPT and their differences. Many thanks

    • @SuperIce6374
      @SuperIce6374 ปีที่แล้ว +1

      CPT - Uses the same database table as normal WordPress posts. Generates a unique standalone post alongside each item. Good choice if you need each listing item to have it's own generated page. It's literally a custom POST.
      CCT - Uses it's own database table, making it faster if querying through large amounts of data or on large wordpress sites with lots of content. Doesn't have its own standalone post that gets created alongside each item. Good if each listing item doesn't need it's own generated page, and probably a healthier solution for the database. It's just custom CONTENT, not a POST.

    • @rodlivz
      @rodlivz ปีที่แล้ว +1

      @@SuperIce6374 many thanks for this explanation, very straightforward. You're a legend... It seems I may have to redo some of my projects... 😏😄😄

    • @SuperIce6374
      @SuperIce6374 ปีที่แล้ว +1

      @@rodlivz Sure thing, glad that was helpful. That's just what I remember of the two when I did my research on them, trying to figure out which was good for what sorts of scenarios.
      I mostly use custom post types, in my work I don't usually find much use for CCTs. Maybe if you needed some easily filterable list of names or brands displayed.
      I see software companies that like to list the other software they integrate with, and its often dozens or hundreds of brand names that need to be filterable but don't need a post associated with them. That would be a good example of an application for CCTs.
      Otherwise, CPTs are way more versatile.

    • @rodlivz
      @rodlivz ปีที่แล้ว +1

      @@SuperIce6374 I just built a website which had filterable downloads with a title, date and document type. Unfortunately, I used CPT and now each one of them behaves as a single page. The CCT solution would've been perfect for this! So I've been thinking of rebuilding the entire section... 😔

    • @SuperIce6374
      @SuperIce6374 ปีที่แล้ว +1

      @@rodlivz dang, that would have been a good use case. Well, perhaps you can add additional information about the file on the CPT page. You technically don’t have to link to the generated page either if you don’t want, but it will be in the database and on the site map, and if you’re doing tons of downloadable files it might be worth a rebuild with CCT. Best of luck!!

  • @sm0k1ngsku1l
    @sm0k1ngsku1l 3 วันที่ผ่านมา

    Great video! I followed every detail but it doesn't work for me sadly

  • @faromazjafarov7251
    @faromazjafarov7251 หลายเดือนก่อน

    Salom bro ! really BIG TNX ! Insholo

  • @popopp2297
    @popopp2297 24 วันที่ผ่านมา

    It's been a year since this video was created. Can we now add a CCT from a form on the frontend?

  • @sgripen
    @sgripen ปีที่แล้ว +1

    Is it possible to create a SaaS multi-tenant structure with jetengine?

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว +1

      Yes possible, mind sharing specific scenario

  • @roygh
    @roygh ปีที่แล้ว

    It is also possible with post id and a query as in the video commenting system. isn't it?

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      Yes that works as well

  • @OnyeStephen
    @OnyeStephen 9 หลายเดือนก่อน

    Just checking to know if it is now possible to add cct through a fomr

    • @MoxetKhanPK
      @MoxetKhanPK  9 หลายเดือนก่อน

      Yes it is possible

  • @alessandropuricelli7400
    @alessandropuricelli7400 6 หลายเดือนก่อน

    In the query builder is not available anymore the type "related items" how can we make it work with the current version?

    • @MoxetKhanPK
      @MoxetKhanPK  6 หลายเดือนก่อน

      Related item is still there..

  • @arifaarif172
    @arifaarif172 ปีที่แล้ว

    Hi, Great Tutorial. I want to know one thing that when we create a data store for favourites then how can we give condition that only registered users will be able to add to fav

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว

      You have to show favorite button to logged in users only using dynamic visibility.

    • @arifaarif172
      @arifaarif172 ปีที่แล้ว

      @@MoxetKhanPK Thank you so much for this. Actually, I want to show this option to users. My point was if the user is not log in then the add to fav button redirects them to get register or sign in. Can you guide me on this I will really appreciate your efforts

    • @MoxetKhanPK
      @MoxetKhanPK  ปีที่แล้ว +2

      @@arifaarif172 You have to use the same logic Arifa, take two buttons one for logged in which serve for favorite and other for non-logged in users which takes them to login page or popup. Dynamic visibility does wonders if use properly.

    • @arifaarif172
      @arifaarif172 ปีที่แล้ว

      @@MoxetKhanPK Great Thank you so Much

    • @arifaarif172
      @arifaarif172 ปีที่แล้ว

      @@MoxetKhanPK Thank you so much. I appreciate your feedback

  • @shakibkhan1921
    @shakibkhan1921 2 ปีที่แล้ว +2

    Can u make a complete basic to advanced series on crocoblock plugins please?

    • @MoxetKhanPK
      @MoxetKhanPK  2 ปีที่แล้ว +2

      Shakib there are lots of tutorial on youtube from Crocoblock, WPTuts and other creators which covers basic, i focus on a bit advance level.

    • @treepocket2834
      @treepocket2834 ปีที่แล้ว

      @@MoxetKhanPK but yours are by far the best, and easier to understand. :) Thank you for your tutorials!

  • @rikderks5099
    @rikderks5099 2 ปีที่แล้ว +2

    Awesome video. Very clear. Could you make a video about CPT parent and CPT child and show related CPT child items on parent CPT?

    • @MoxetKhanPK
      @MoxetKhanPK  2 ปีที่แล้ว +1

      Thank you Rik, it should be the same procedure.
      - In relationship you choose child and parent CPT
      - Create your listings
      - Build a query as mentioned above

    • @rikderks5099
      @rikderks5099 2 ปีที่แล้ว

      Hi Moxet. Been trying my best, but can't figure it out... Both cpt's are many to many, could that be the issue?

    • @MoxetKhanPK
      @MoxetKhanPK  2 ปีที่แล้ว +2

      ​ @Rik Derks J.R. Not at all, many to many must show on both side, will see and share soon.

    • @jenniferward6821
      @jenniferward6821 ปีที่แล้ว +1

      Love how this chqp replies. Very kind.

  • @745651
    @745651 10 หลายเดือนก่อน

    Nice, but how to create the same relationship between a CCT and another CCT?

    • @MoxetKhanPK
      @MoxetKhanPK  9 หลายเดือนก่อน

      well it is possible but i don't recommend, if you need a single page of CCT it create CPT again; so no practical use as of now.

  • @johndemolbot
    @johndemolbot ปีที่แล้ว

    I did this without query and only listing and cct front end form submission. Just add current post id aa hidden field in cct front end form and then listing with post query current post id.