Events List – Duration Format

Home Forums Calendar Products Events Calendar PRO Events List – Duration Format

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #1014520
    Geoff
    Member

    Absolutely! 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

    #1014565
    Lara
    Participant

    That worked. How do I get the state/region to spell out so Nevada instead of NV?

    #1014596
    Geoff
    Member

    Yeah! 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

    #1014605
    Lara
    Participant

    Ok, 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.

    #1014655
    Lara
    Participant

    Also, 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!

    #1014689
    Geoff
    Member

    Hi 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!
    Geoff

    #1015063
    Lara
    Participant

    Thanks 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.

    #1015071
    Geoff
    Member

    Ugh, 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. 🙂

    #1015095
    Lara
    Participant

    Sounds good 🙂

    #1015100
    Geoff
    Member

    BTW, thanks for hanging in here with me. 🙂

    #1020223
    Support Droid
    Keymaster

    This 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.

Viewing 11 posts - 16 through 26 (of 26 total)
  • The topic ‘Events List – Duration Format’ is closed to new replies.