EASY Bi-Directional Relationships in Oxygen with Metabox!
ฝัง
- เผยแพร่เมื่อ 5 ก.ย. 2024
- I'm officially making the switch from CPT-UI, ACF Pro, and ACF Post 2 Post over to Metabox's all-in-one system.
Get Metabox Here: geni.us/t3UBIYH
One big thing I needed to test/verify is the bi-directional relationship functionality in Metabox because it's something I use on almost every project and I need it to be clean and easy.
This isn't particularly clean with ACF, so Metabox had a real opportunity to shine here and I can confidently say ... it does!
If you've never set this up before there's a few little sticking points you might run into, but once you know what they are, setting up this functionality really couldn't be easier.
Covered:
- How to create a Custom Post Type in Metabox
- How to create Custom Fields in Metabox
- How to create Bi-Directional Relationships in Metabox (Correctly)
- How to Query Related Posts with the Oxygen Repeater & Advanced Query Builder
- Sticking points you might run into
I got the LIFETIME version of Metabox, btw, which is so worth it over what I was paying every year for ACF Pro. If you have the cash, I'd highly recommend doing the same thing, though you can also do the Developer annual plan: geni.us/t3UBIYH
Please do more metabox related tutorial. I purchased their LTD but not have the courage begin using on any project. Mainly because of so few video tutorial on advance things that i can find, like frontend post edit/ submit. Clonable field, options page… etc😬
Thanks for another great tutorial btw👍👍👍
I am an Inner Circle subscriber and Automatic CSS user, and as always, you are my favorite teacher! Your tutorials are extremely clear and easy to follow, and the fact that you show real-life problems and cases is a huge help. I am a Toolset user myself but recently bought the lifetime subscription to Metabox because I would like to gradually incorporate more code-manipulated elements in my websites and because Toolset is not well-integrated in Oxygen, unfortunately. How about a whole tutorial series on Metabox? Love from Italy!
More metabox tuts are planned :)
Pretty much every business site that I build needs this functionality. It drove me up the wall that I couldn't get it to easily work in WP/Oxygen without doing some hacks that I was never really comfortable with. Great tutorial...thank you!!
🙏
Adding labels! I never would have figured that out. Was just about to give up and then found this vid. Now my Gridbuilder grids work - thank you
Unreal tutorial. Super helpful. I am *thrilled* I didn't have to spend 8 hours navigating the idiosyncrasies of where to leave insert a comma separator or why the query wasn't working without labels. Nice job, man!
💪🏻
Hi Kevin,
just wanted to say that you leaving oxygen builder community is a huge loss for us!
You do great videos and I have learned a lot form them. Thank you so much!!!
Come to bricks and you’re all set!
thank you Kevin. God bless you.
Great work, i struggled with this also for many days, and had left the labels empty too.. doped that you cracked it. :-)
Another great tutorial! MetaBox need to add ‘required’ for those labels, IMO. Shame to see Oxygen Builder doesn’t load much faster after the improvements the Oxy team have done.
I agree should be required!
this is gold thanks for such a amount of saved time, as soon as i can i want to join inner c thanks kevin
This video convinced me to use Meta Box on my next site build.
This is going to change my web development world. 🙂🙂
Putting the separator in the wrong field broke the relationship for me. Thanks :) Now, I just need to figure out an inexpensive search/filtering solution :)
WpGridBuilder
Very useful, thank you Kevin ! I would really love to watch more tutorials with Meta Box as I don't have ACF Pro plugin !
More to come!
@@Gearyco Awesome, thanks Kevin !
Thank you and this is very helpful!
First of all; great work. Great tutorials, I love the flow and the natural way of explaining things.
For the relationships, I would like to see more examples. For instance: A broker has 10 lofts, he wants to sell. 5 in Area New York and 5 in Area Los Angeles. How can we put all those relationships together?
I've never done it, but should work if you create a Brokers CPT, Properties CPT, and Cities CPT. Create relationships between them. When you query in the repeater you can query the specific relationship array you want to show. You can also nest repeaters inside repeaters. Or you can nest a metabox "view" inside a repeater (I think) which might be even easier in some cases.
Looking forward to more mb content.
Well I did this for one relationship, but for an other relationship on my CPT accomodation, I can not get the rates for that accomodation... :(
I add the fields like they are custom fields. Takes too much time now.
Would you mind showing how Relationships work in Bricks?
Same setup. Easier to query. Showed it recently on an inner circle training.
Do you know how to orderby the backend Metabox relationship list?
I have watched this so many times trying to do this in Bricks and really struggling. Could you help with how to set up the Bricks query to output by Service? Please :)
I have a couple videos in inner circle showing relationships in bricks. It’s easier than oxygen.
Thank you for this. Just learning Metabox and I had run into those little quirks. I really appreciate you having the insights and sharing! Currently building a newspaper site and about to totally revamp my setup to now use Metabox CPT, repeaters and relationships.
Is it possible to relate a main image/text content to rotate to the next image/text content. Like having the large image with a subset of images that link to excerpts and bring that next image/excerpt into the forefront when clicked. Is that possible with a repeater, or is that more of a slider functionality?
Thanks for the awesome tutorials! Keep up the good work!
Not sure out of the box, I'd have to play around with it more.
Thanks for your video
Thanks a lot for the subject and the clarity. I would like to be able to create a related item on the fly (not plan ahead, not open another tab to create it then connect from the refreshed prior tab). Have you played with that yet ?
So helpful. Any major differences with Bricks?
Nope shouldn’t be. It’s easier in bricks.
@@Gearyco I am having a hard time translating the final steps of the query setup you ran through on Oxygen to Bricks. Any chance you could do a quicky run through, or just a screen shot of the query setup in Bricks?
Great … I wondered how it is done as that failed on the Permaslug stream. That should be fixed before release on either side (Oxygen and Metabox).
Finally a free plugin!
Not sure you get relationships for free
@@Gearyco damn
@@andrew.schaeffer4032 LTD, though :)
Always informative vids! How about demonstrating another layer of dynamic? Page 1 has a repeater that dynamically displays the services offered. Clicking that service name on Page 1 links to a reviews page that now only displays the reviews for the service clicked.
Thanks
Hey Kevin, are you able to update this for Bricks? I'm not sure if relationships are supported?
Yes relationships are supported. There’s a training that shows it in the inner circle.
Would like to see a version of this done in Bricks.
I’ve done it a few times. More than once in inner circle and at least once on this channel I believe. It’s even easier in bricks.
Hmm. Sorry. I looked in the Inner Circle, but could not find it.@@Gearyco
Bricks Trainings > How to Create a Dynamic Service Page Template With Bricks & Metabox (FF to 1hr mark roughly)
@@kwsim539
@Gearyco That's the one! Thank you so much for your help. I am considering moving from JetEngine to Metabox and wanted to see how its relationships compared to JetEngine along with its implementation in Bricks.
Nice, can you build Frontend Submission Form and User Admin interface with Metaboxe? Thanks a lot:)
Still usefull in 2024.
Thanks for this great tutorial ^^ Is it possible to filter the reviews by It taxonomy terms ? I tried with wp grid builder, but It can't get the data source once you add the "post__in" parameter to the query
Yes it’s possible to do with grid builder. For sure.
@@Gearyco I'll give another try then... 😅 (need some hint however 🙈)
Will this work with Bricks in more or less the same way?
Yes it’s easier in bricks
So are you going to use Alpha 1 on production sites already? Is it safe enough in your opinion? I did that with 3.7 when they introduced grid, and it was fine, but I'm always a bit concerned that it might break stuff in Beta or RC and I'll have to re-do a lot of work...
No, not on production sites. But typically it's not a very long runway from Alpha 1 to RC/public. It may take them a month or so, which is why I'm starting the transition to MB. I have a lot of things to test to be able to use MB on production sites, so doing all that while I wait for the official release.
Hi. Thanks for tutorial. It kinf of works even for arepeater inside of a repeater. Inside usual repeater for post type A I need something from related post type B. I just use your method and put a repeater element and pull related data from post type B. Problem is, it ruins all querying after this nested repeater. If I place it as the first element inside of post type A repeater, I am not able to get any post type A data afterwards. It needs to be placed as the last element inside of A repeater. And then it still messes repeaters after this point. Have you tried to get related data inside a repeater card? Thanks
Should work fine. I’ve used it with nested repeaters before.
@@Gearyco I´m not that lucky. Nesting relationships does not work for me and I´m a bit frustrated about that.
Hey Kevin, thanks for the video. Will it be easy to migrate from ACF to Metabox? And can you please post/link your TH-cam videos in the Inner Circle as well, thanks!
Not sure what the migration process is like.
Metabox has a migration tool but I never tested it, as I don't like to switch in the middle of a build.
Hey Kevin,
short question what has nothing to do with this clip.
What would you recommend, oxymade or oxyninja and why?
Thanks a lot.
Regards from Austria
They're both good. It depends on what you prefer. OxyMade is more like Tailwind. OxyNinja is simpler. I'm creating my own that works differently from both of them.
@@Gearyco appreciate thanks for your answer.
so are you a Buckeyes fan or Ducks fan??? I see the game in the background. O-H
Neither was just hoping for a good game. I’m a UGA fan.
Does this work for anyone?
Having trouble?
@@Gearyco Yes, thank for the reply! May I send you an email about this?
@ sure
ACF Extended Pro
Still requires an additional plugin and ACF Pro.