This question might be one of the dumbest here but.. So I have a CPT which uses custom fields. One of them is a repeater type. It works. Among subfields, I have an input field called party_time. In many cases party_time values has format day.month.year, but unfortunately it includes also ranges like 4-5.05.2020. What I’m trying to achieve is to create another, dynamic field which will show (both on backend/frontend) values from party_time yet limited to last 7 characters. Thanks to that I will always have sth like: 06.2020 / 02.2020 etc. So basically = month.year format.
How to achieve that? I’ve went through all official docs and have no idea where to even start. Why I want to do it that way and NOT using only substr on frontend? Because I want to have an ability to filter wp_query by this subfield (month.year).