Home › Forums › Calendar Products › Events Calendar PRO › Events List – Duration Format
- This topic has 25 replies, 3 voices, and was last updated 10 years, 5 months ago by
Support Droid.
-
AuthorPosts
-
October 14, 2015 at 7:17 am #1014520
Geoff
MemberAbsolutely! That would look like this:
<?php echo tribe_get_city() . ‘, ‘ . tribe_get_state() . ‘, ‘ . tribe_get_region(); ?>That should do it, but let me know if it doesn’t–I admittedly have not tested it. 🙂
Geoff
October 14, 2015 at 8:31 am #1014565Lara
ParticipantThat worked. How do I get the state/region to spell out so Nevada instead of NV?
October 14, 2015 at 10:24 am #1014596Geoff
MemberYeah! Glad that works. 🙂
There actually is not a helper in the tribe_get_state() function that would return the full state name. I tried to think of something that might do the trick but am coming up short–sorry about that!
Geoff
October 14, 2015 at 10:59 am #1014605Lara
ParticipantOk, thanks!
The last thing is the single date. You said to modify the start and end date formatting, but if I modify the start date to have the year, won’t that mean that if there is a date range (October 2-4, 2015) it will show like this (October 2, 2015 – October 4, 2015)? I just want single day events to show October 2, 2015 and multiple day events to show October 2 – 4, 2015.
October 14, 2015 at 1:52 pm #1014655Lara
ParticipantAlso, I just noticed I need to change the placeholder in the Search Field on the events page. I can’t seem to find that within the template files for the Pro Photo view. Do you know where I can find that? Thanks again for your help!
October 14, 2015 at 3:57 pm #1014689Geoff
MemberHi Lara!
The last thing is the single date. You said to modify the start and end date formatting, but if I modify the start date to have the year, won’t that mean that if there is a date range (October 2-4, 2015) it will show like this (October 2, 2015 – October 4, 2015)?
Not if you modify it for the $microformatStartFormat and $microformatEndFormat variables. Notice that those are specifically geared for the single event cases.
Not that you may be able to get away with changing some of the settings in Events > Settings > Display to get a similar effect–but probably not exactly.
Also, I just noticed I need to change the placeholder in the Search Field on the events page.
I don’t believe you can do that from a particular file or template. However, I think you could do it with some jQuery–for example, select the input and change the placeholder attribute so something else. There’s a possibility the PHP filter approach in this article will work as well, but it might not since I’m not sure it would work on a placeholder element. Still worth a try!
Cheers!
GeoffOctober 15, 2015 at 1:30 pm #1015063Lara
ParticipantThanks for the info Geoff! We tried the php filter and it didn’t work. I think that would change the label, but we are wanting to change the placeholder.
The date format is still giving me trouble. We made the change within the plugin Display settings but when we add the year to the Date without Year, it adds the year to the start date AND the end date when there is a multi-day event. We don’t want that. I only want the year to be at the end of single day events (ie. October 15, 2015) and at the end of multi-day events (ie. October 15 – 18, 2015). Seems like this may just have to be something we give up on. Let me know if I am incorrect.
October 15, 2015 at 1:44 pm #1015071Geoff
MemberUgh, so sorry about that! I know that the date filters could be more flexible and I’ll continue thinking about possible workarounds. In the meantime, let’s keep this thread open in case any inspiration strikes. 🙂
October 15, 2015 at 2:27 pm #1015095Lara
ParticipantSounds good 🙂
October 15, 2015 at 2:44 pm #1015100Geoff
MemberBTW, thanks for hanging in here with me. 🙂
October 30, 2015 at 7:05 am #1020223Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Events List – Duration Format’ is closed to new replies.
