ACF Relationship Field in Oxygen Builder Repeater

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ต.ค. 2024

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

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

    you saved my life, keep up the awesome work

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

    I run into this scenario on almost every site and it drives me crazy. I always have to do sort of a hack with taxonomies, but it is a pain to get the taxonomy meta data. This is how it should be structured. Can't wait to try it out and may have to revisit some of my older implementations of my "hack."

  • @seanymomoran
    @seanymomoran 3 ปีที่แล้ว

    Man...I swear this works out just perfectly each time. I finally gotten to the part of building my website when I started running into the problem which I couldn't figure out the solution...that was a few days ago...this video just solved it. Happens everytime. Thank you.

    • @Permaslug
      @Permaslug  3 ปีที่แล้ว

      Awesome, I'm glad it worked out for you!

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

    this video saved me from doing custom code! thank you!

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

    Amazing, thank you so much for this!!

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

    Thanks for the video! I'm having trouble applying it to this situation:
    Page type 1: Production
    Page type 3: Person
    Both have ACF field groups. Productions have a repeater field and inside that are two fields: a relationship to a single Person, and a text field for their role (Director, Stage Manager, etc.) On single production pages, I want to list all the people to be credited with their name (pulled from the relationship field) and their role from the text field. I haven't been successful in pulling any of that information :(

  • @ChristopherFischbach
    @ChristopherFischbach 3 ปีที่แล้ว

    The course is pure gold!

    • @Permaslug
      @Permaslug  3 ปีที่แล้ว

      Really kind of you, Christopher! Thank you

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

    Hi, the Relationship field in the repeater is broken in 4.1

  • @VinceBalk
    @VinceBalk 3 ปีที่แล้ว

    Thanks for this video. I could use it on my latest project (not finished yet)!

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

    If there is only one item (a page) in the relationship setting. Does it still need to use repeater to read it in the Oxygen? Is there a better way to directly get the URL of the associated page in the Oxygen?

  • @lougoban
    @lougoban 3 ปีที่แล้ว

    That's amazing feature .. can't wait for final 3.8 version..
    I tried RC2 version, but is there any reason i don't have option in: Insert Dynamic Data > Post > Advanced Custom Field ?
    Thanks

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

    Hi Jonathan. I am wondering if this is possible. Instead of selecting books in authors, can we select the authors in books and then show those books in authors page? Hope it makes sense. So, we go to book A and select the Author B. Then, in author template, we list the book A. I have tours and destinations. I would like to assign destinations in tours and list those tours in related destinations.

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

      Yes, absolutely. You just simply need to swap the names accordingly for your ACFs fields and CPTs. This is totally flexible

    • @FiratSekerliMBA
      @FiratSekerliMBA 3 ปีที่แล้ว

      @@Permaslug I think I couldn't explain well. :) Let me ask this way. We go to book A and select the Author B. Then, in author template, we list the book A. How can you do this?

    • @Permaslug
      @Permaslug  3 ปีที่แล้ว

      @@FiratSekerliMBA I'm struggling to envision that off the top of my head, but it should work in reverse of how we've done it here. You're just going to create a separate Singular template and apply it to Destinations in your case, then add the repeater, query the post type of tours and then select your relationship field. Have you given that a shot yet?

    • @FiratSekerliMBA
      @FiratSekerliMBA 3 ปีที่แล้ว

      @@Permaslug Yes, but in your example, you select books in authors. Then, you query the books and use post in and select the relationship field which is in authors page. I am trying to add a relationship field in books page and select the authors. Then go to authors template and use your query but this does not return anything.

    • @FiratSekerliMBA
      @FiratSekerliMBA 3 ปีที่แล้ว

      @@Permaslug If you still have the setup, can you try creating a Book template and apply it to Books and then create a query with post type author and post in and select the relationship field which is in authors. I am sure no authors will show up.

  • @DesignwithCracka
    @DesignwithCracka 3 ปีที่แล้ว

    Thank Jonathan, this is very helpful!

    • @Permaslug
      @Permaslug  3 ปีที่แล้ว

      You’re welcome! I’m glad it’s helpful

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

    Awesome video!

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

    Great video! Thanks.
    One question, as you can see, relationship books can be order by drag and drop in the backend. How can we have the exact same order in the frontend? It should be some order_by something something.... Thanks

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

      I found the answer to my question and I want to post it here, maybe it helps someone: in advanced query, add parameter, orderby = post__in . This does the trick

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

      @@ioanmarica7836 its working, many thanks.

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

    Ok, we saw how to retrieve Books in author page, but how to make a reverse relationship, in the book page, retrieve all the books from the same author?

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

    Thanks !

  • @damienlee77
    @damienlee77 3 ปีที่แล้ว

    However, there is a problem with nesting repeaters. It seems that the nested repeater resets the post query on the page at its conclusion, which negates any further referencing of the initial query. I assume this is because the repeater is not intended to be nested. This is a shame. Perhaps the repeater could be fixed to only return to its parent query rather than the page query. In my situation, I am pulling a post object and then returning its fields. One of those fields is a relationship and I want to display its included posts. Seems this will not be possible without having several queries on the same page which is messy.

  • @M.reitz_Artemeis
    @M.reitz_Artemeis ปีที่แล้ว

    Great video, thank you! Work the same way with Meta Box pro

  • @alexander-van-aken
    @alexander-van-aken 3 ปีที่แล้ว

    Awesome! Thanks! I guess this works within oxyextras carrousel with a repeater too right (with child repeater).

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

    Hi there,
    I'm building a website for a client and have made a custom plugin in php code that can fetch information from an api and put them in custom post types with advanced custom fields pro.
    I have a WP Grid builder question though:
    Can you also use these types of nested queries within wp grid builder? I want to be able to filter post type A by custom field in post type B in a facet and vice versa, where post type A and B are related through a relationship field.
    I would also like to find out how I can change facets to be grouped by specific values: Like for example. I have a DateTime field with Y-m-d H:i:s format, and I want to group this format into Y-m-d as a facet for a post type and then display it as: D d. Which should represent: Mon 01, Tue 02 etc. As buttons on the left of the grid in ascending order.
    So I have a field containing for example: 2022-01-03 12:00 and 2022-01-03 16:00 and those should be grouped as 2022-01-03 (Filtering the post type as a facet), which should then be displayed as: Mon 03

  • @martinboisclair4104
    @martinboisclair4104 3 ปีที่แล้ว

    Does that exist, a condition that display "Not available" or another message when they are no entry the ACF Relationship fields?

    • @Permaslug
      @Permaslug  3 ปีที่แล้ว

      You can always use the Dynamic Data > ACF Field > is_not_blank. That should work

    • @martinboisclair4104
      @martinboisclair4104 3 ปีที่แล้ว

      ​@@Permaslug Ok, you make the condition with the related ACF field > is_not_blank > True. So simple. Thanks a lot I will try it:)

  • @ivanintentando
    @ivanintentando 3 ปีที่แล้ว

    que genial lastima que ami no me sale esa opcion de avanzado porque?

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

    I just want to say thanks, your videos are great, however I had to get rid of Oxygen. After being told I'm a moron for asking for help on the oxygen facebook group and watching every person who asked about a feature being told to shut up Oxygen is perfect. I've had enough. I'm going to keep liking and subscribing to your channel and I'm still glad I bought your course, but until the toxic nature around the community get cleaned up I worry you may have hitched your cart to the wrong horse. Seriously your course and videos are the best thing about Oxygen.

    • @MrUffizzi
      @MrUffizzi 3 ปีที่แล้ว

      It never used to be like that, it’s happened since it grew bigger. Some real douches. I maintain a healthy block list and the group is much better ;)

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

      Every community is toxic in their own ways, sadly