Forum Replies Created
This worked just as I needed. Thanks so much for the snippet!
Also, the fields are in the keyfield drop down on the shortcode builder, so I”m guessing it should work…but I did take a look around and i’m not sure you support date fields in the gd_post_badge unless they are post_date or post_modified. If that’s the case, i think I might be able to write a filter to do this…if that’s the case, and you don’t support dates but I could write a filter, please point me to any examples that could save me time…thanks guys.
OK…thanks. BTW, quick question. If I create just a regular date, I can key gd_post_badge off that date, can’t I?
For example, [gd_post_badge key=”race_start_date” condition=”is_greater_than” search=”1″ icon_class=”fas fa-star” badge=”RACE Registration & Time Entry Open” bg_color=”#ff0000″ txt_color=”#ffffff” alignment=”left”]
I never thought to ask if I could just create a dummy field like the above, but this doesn’t seem to be working? I know I can key off the post and modified dates as I do that today…thanks for any updates.
Hey Kiran, any idea of a timeline on when these keyfields will be available for a patch to gd_badge? 🙂
Thanks for any update you can provide!
Thanks for that Kiran. I just took out the feature I wanted to add for now, but certainly, let me know as I’d love to be able to key badges off those fields! Thanks again…this worked great!
Thanks…is there anyway I can make those available for the GD_POST_BADGE? I see them in the drop down for POST_META…that was the original need. Let me know…thanks again.
Great.. Thanks Kiran..we’ll take a look!!
Thanks, Kiran. That will be great. Do you have an ETA on that? Any opportunity to participate in a Beta release or get a PHP patch or something for that?
To be clear, sorry I didn’t add this earlier, I need to set a badge based on start date and end date of an event. Think like:
* set a badge hen an event is only a few days away
* set another badge when an event is about to close
As I said, I understand how to use badges in this regard, I just can’t figure out what the fieldkey is for the fieldkey “event_dates” that lets me understand what is entered as the start and end dates…
The question isn’t about badging, it is about understanding what is the key field for the start date and end date? I know how to do badging, the question is how do I access just the start date of “event dates” date range. Attached is a screen shot of the field.
If that’s the case, then I need to find a way to change it only for the GD section…as I don’t want to change it for all ratings and comments, just for the GD related comments and ratings.
Thanks for your help. Unless you can give me guidance on some way to do this, thanks for your help.