Order Elementor Loop Grid by ACF Date Field

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024

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

  • @theunifiedfield.
    @theunifiedfield. 7 วันที่ผ่านมา +1

    This worked really well. Thank you! :)

    • @daveden2
      @daveden2  7 วันที่ผ่านมา

      You're welcome. I'm glad to hear that

  • @Kakme
    @Kakme 7 หลายเดือนก่อน +4

    Man, can't believe it was so hard to find a solution, would think it was a more common requested feature. But I'm glad I found your video, it works now, thanks a lot 👌

  • @caknuckler
    @caknuckler 9 หลายเดือนก่อน +3

    Oh man. Thanks for this. You’re the boss ! I prefer ACF. I did use CPT but I’m more used to ACF as an all in one now.

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

      Yeah, since ACF integrated creating CPTs and Taxonomies, they seem to be the most popular choice

  • @oksy_roxy
    @oksy_roxy 2 หลายเดือนก่อน +1

    You are my savior! However, I was unable to do this with Jet Engine, so I installed ACF in addition. But now it works and I'm happy ;)

    • @daveden2
      @daveden2  2 หลายเดือนก่อน +1

      I'm glad it worked out well for you! I'll look into the JetEngine version.

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

      @@daveden2 I'm using Jet Enjine, Listing Grid but it doesn't work for me, so I'm using Loop Grid by Elementor. But can't sort my Loop Items by date from the jet engine custom field, I think they use different date formats. Had to install ACF and use your instructions. Had other issues with this on my site though.doesn't work for me, so I'm using Loop Grid by Elementor. But can't sort my Loop Items by date from the jet engine custom field, I think they use different date formats. Had to install ACF and use your instructions. Had other issues with this on my site though.doesn't work for me, so I'm using Loop Grid by Elementor. But can't sort my Loop Items by date from the jet engine custom field, I think they use different date formats. Had to install ACF and use your instructions. Had other issues with this on my site though.
      Thank you for your useful work!

  • @gaelle4466
    @gaelle4466 6 หลายเดือนก่อน +2

    Very useful! Thank you Daveden

  • @Jessica-ld4bs
    @Jessica-ld4bs 8 หลายเดือนก่อน +1

    This is fantastic! I was so close to giving up and using a plug-in, but you've given me hope.

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

      Ah, I see! I'm glad I was able to help

  • @dianastathakis8528
    @dianastathakis8528 4 หลายเดือนก่อน +1

    Thank you so much you are an excellent teacher.

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

      I'm glad it worked out for you! Thanks a lot for the compliments!

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

    Thank you so much for this! Elementor has so many limitations but you are amazing at helping us get around them

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

      Thanks! I'm glad you enjoyed the video. Hopefully, elementor will create easier ways to implement these soon.

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

    Thanks Daveden, tried a different tutorial and it didn't work but this worked perfectly :)

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

    Absolutely brilliant! Thanks so much. Exactly what we were looking for!!

  • @shanevonknuth
    @shanevonknuth 4 หลายเดือนก่อน +1

    This worked perfectly. Thank you!

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

    Very thorough! Thank you!

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

      You're welcome. Thanks for the comment!

  • @gr131
    @gr131 7 หลายเดือนก่อน +1

    Thank you very much! This was a great solver!

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

    Very Nice tutorial. working as well.

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

    Thank you very much for your tutorial 👍

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

      I'm glad it helped you

  • @stefanvandekamp8754
    @stefanvandekamp8754 2 หลายเดือนก่อน +1

    Thank you very much for this!

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

      You're welcome

  • @michaelschaffner3128
    @michaelschaffner3128 2 หลายเดือนก่อน +1

    Thank you! This helped me alot.

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

      I'm glad to hear that

  • @user-jh8il6vf1d
    @user-jh8il6vf1d 7 หลายเดือนก่อน +1

    Excellent Video!

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

    Thank you so much!!!

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

    This is exactly what I needed

  • @daveden2
    @daveden2  8 หลายเดือนก่อน +2

    Here's a link to the feature request to make this native in Elementor -
    github.com/orgs/elementor/discussions/22156

  • @greg54444
    @greg54444 5 หลายเดือนก่อน +2

    Thanks for posting this video.
    I am using ACF and Elementor Pro.
    Could I do what you show with these or do I need Crocoblocks? I'm trying not to spend money until I can prove my website concept is good.

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

      You don't need JetEngine. The method I showed in the video works well with ACF.

  • @blackvx
    @blackvx 9 หลายเดือนก่อน +1

    Thank you!

  • @GijsFranken-rj6xy
    @GijsFranken-rj6xy 3 หลายเดือนก่อน

    It's a good tutorial, For same day events. I have been looking for days for a code that also takes into account events that take place over several days so that they are no longer immediately visible on the start date. Maybe something for a part 2?

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

      I would expect the code to work for a multiday event as well.
      The code hides events based on the "start_date" ACF date field.

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

    Wow, your video are very helpful bro. Can you show me how you create your custom events page? From start (ACF creation) to finished? I have mine but the start date, published date would not show in the back end so I will know when is the start and no need to open each event :) hope you understand my explanation hahaha? But you're awesome! Looking forward for more elementor ACF videos! Thank you.

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

      I'm glad that the videos have been helpful.
      I'll try to work on a start-to-finish video.

  • @987654321ABC1000
    @987654321ABC1000 วันที่ผ่านมา

    Hi, thanks for the solutions.
    However, I'm using jetsmartfilters by crocoblock, which needs the query id field filled with jet-smart-filter to filter the loop grid.
    Do you know how can the query id listens to multiple ids?

    • @daveden2
      @daveden2  วันที่ผ่านมา +1

      Wow, I never considered that scenario. I'll do some research and get back to you.

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

    Gracias Crack!!, 🤯🙏

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

    That's cool mate! is it possible to do same with another ACF field like an OrderId which is a number? I might just modify the comparing function?

    • @daveden2
      @daveden2  4 หลายเดือนก่อน +1

      You can try this modified query, where the query id is 'dd_order_id' and the ACF field is 'event_order_id'

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

    Dear Daveden, does it also work for nested repeater fields? In my case, both my Dates field and Event field are repeaters. Should I change anything?

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

      To the best of my knowledge, the Elementor loop grid doesn't work well with repeater fields.

  • @nsa5
    @nsa5 4 วันที่ผ่านมา

    What if you want taxonomy terms to appear in a certain order in this loop grid? For example, I use ACF, I have a taxonomy "Sale Type" and it contains these terms "Auction" "Buy" "Sold". In the loop grid the results appear according to the date published, however, I'd prefer the "Auction" results have priority and appear first, then the "Buy" results, then the "Sold" results. Do you have any suggestions? Thank you

    • @daveden2
      @daveden2  4 วันที่ผ่านมา +1

      I'll look into it. But from what I've seen, there's no direct way to order posts by a taxonomy term, primarily because a post can have multiple terms.
      My suggestion would be to do one of 2 things:
      1. Do 3 different listings, one for each term or
      2. add a meta field that's equal to the primary term, then order by that meta value.
      But I'll do some more research on it.

    • @nsa5
      @nsa5 4 วันที่ผ่านมา +1

      @@daveden2 thanks Dave! Yes at the moment I’m currently utilising your suggested method 1. It’s a tricky one

  • @baliflorent6971
    @baliflorent6971 9 หลายเดือนก่อน +1

    Thanks. We need the second function that help to expire posts based on date field. Please make the tutorial or put the code in the description.

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

      Once I run some more tests, I'll update the post / release a follow up video

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

      @@daveden2 ok

    • @daveden2
      @daveden2  7 หลายเดือนก่อน +1

      I've updated the article - daveden.co.uk/tutorials/order-elementor-loop-by-acf-date-field/. Please let me know if it works for you

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

      @@daveden2 friend, thank you very much! I implement this code but the past events do not disappear. change 'start_date' to my key. How do I make it work? thank you!

    • @daveden2
      @daveden2  2 หลายเดือนก่อน +1

      @@gonzalorozas1769 did you set the date format to Y-m-d?

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

    Hello, thanks for the tip, but i would like to ask you if exist a solution to order by ACF date and hour, i mean i have a date field and a hour field, then if for example today i do an event from tomorrow at 6pm and tomorrow i did another event with the same date but at 4pm, then i would like to show also the order by hour. How can i do that? Thank you in advance.

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

      Yes, you'd have to create an array for the orderby in the query.
      What type of acf field is the hour field?

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

      ​@@daveden2 Hello Daveden, i have tree ACF fields, one of them is a date and hour selector, I use this one to put a counter down in the event post, the other ones are a date selector and an hour selector, I use those fields in the post loop, I am using your code to order the loop by date and it works but if i have two or tree different events in the same date I also want to put in order by hour. For example, right now suppose i create today 2 events and tomorrow the other one, the first two events with 8pm and 9pm and the third one for 6pm, so in the loop appears without time order, first 8pm, 9pm and last 6pm. I would like that the loop takes the order firstable by date selector and then by the hour selector of the ACF fields.
      Tahnk you

    • @daveden2
      @daveden2  3 หลายเดือนก่อน +1

      @@cristianpacher9992 okay, I'll look into it and get back to you soon

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

      You can try this code and let me know if it works. Ensure that:
      1. ACF date field = start_date
      2. ACF time field = start_time.
      3. ACF date return format = 'Ymd'
      4. ACF time return format = H:i:s, to make calculations easier.
      5. Elementor Query ID = dd_event_date_time
      Code Snippet
      ============

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

    Can you post the code to change status to draft? or where you found it?

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

      Thanks for the reminder. I'll update my post as soon as I can.

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

      I've updated the article - daveden.co.uk/tutorials/order-elementor-loop-by-acf-date-field/. Please let me know if it works for you

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

    What's your preferred plugin for creating CPTs and Custom Fields?

    • @shahinulislam9304
      @shahinulislam9304 9 หลายเดือนก่อน +1

      CrocoBlock

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

      ​@@shahinulislam9304JetEngine is really powerful

    • @LudovicCharlier
      @LudovicCharlier 9 หลายเดือนก่อน +1

      JetEngine :) But I like the new interface of ACF.

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

      @@LudovicCharlier yeah, me too. The new ACF interface looks really nice

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

    How can we use this for a checkbox field? If I wanted to sort posts that have the checbox marked to display last?

    • @daveden2
      @daveden2  2 หลายเดือนก่อน +1

      Sorry, I'm not sure how to do that yet. I'll have to take a closer look.
      So, are there multiple checkboxes. Or how is the setup?

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

      @@daveden2 Would be greatly appreciated. No there is only a single checkbox that is called "Status" and it has a value of "Sold"

    • @daveden2
      @daveden2  2 หลายเดือนก่อน +1

      @@harvinderdhami9795 I just published a written tutorial for you. Let me know if it works. I'll try to get a video out as well.
      daveden.co.uk/tutorials/sort-your-elementor-loop-grid-by-acf-checkbox-to-prioritise-sold-items-last/

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

      @@daveden2 Hi Buddy, thanks for the tutorial, ive tried to check it out today however your website seems to be throwing a BAD GATEWAY error 502

    • @daveden2
      @daveden2  2 หลายเดือนก่อน +1

      @@harvinderdhami9795 , thanks for the heads-up. My host changed their ip. I'll get it sorted asap

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

    I'm using Elementor 3.20.3, and there is not a "Query ID" field. It shows a field called "Advanced Query Options", with a whole different set of settings. Can you help here? Thanks, man!

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

      That could be from an Elementor addon. On your plugins page, do you have a plugin like Advanced Queries?

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

      Yes, I'm using Advanced Queries. But I read somewhere that this solution doesn't work with WooCommerce itens in the loop grid. And that's what I needed. 😬

    • @daveden2
      @daveden2  3 หลายเดือนก่อน +1

      @tiagolacerda77 ah I see. I've never used Advanced Queries before. So I don't know much about it. I typically either write my own custom query or use JetEngine's Query Builder

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

      I'm also unable to find "Query ID" :/

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

      @@yurifontanive1394, are you also using Advanced Queries?

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

    How to show all posts without the array 'compare'?

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

      Simply remove the meta_query

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

    This is exactly what I needed