echo calendar selected month

Home Forums Calendar Products Events Calendar PRO echo calendar selected month

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #24657
    Sandro
    Participant

    I’d like to show current month displayed on the calendar table.

    How can I echo it? I’d use wordpress built in but this would not change when I use next previous buttons to switch between month on the calendar. So how does calendar plugin deal with this?

    ty.

    #24687
    Jonah
    Participant

    Hi Sandro,

    We have a function available to display the current month (tribe_get_current_month_text()) but it does not update when navigating months. Unfortunately there is no built in way to do this without some customization and I cannot help you with this. You might try researching the parse_url PHP function to parse the month in the URL and updating this when it changes.

    I hope that helps and sorry I cannot offer up more here.

    Regards,
    – Jonah

    #24700
    Sandro
    Participant

    Your answer was awesome, I managed to do it quite easily with your suggested trick of using URL getting last part of it, and in case there is date displaying it.

    Thanks!

    #24703
    Jonah
    Participant

    Glad to hear Sandro. Mind sharing your code?

    Thanks,
    Jonah

    #25168
    Sandro
    Participant

    Here is the code:

    format(‘F’),’holidayge’);
    } else {
    _e(date(‘F’),’holidayge’);
    }
    ?>

    #25169
    Sandro
    Participant

    format('F'),'holidayge');
    } else {
    _e(date('F'),'holidayge');
    }
    ?>

    #25170
    Sandro
    Participant

    I cannot paste my code correctly on this forum.

    #25200
    Jonah
    Participant

    Hi Sandro, we recommend pasting your code externally to somewhere like:

    http://snippi.com/
    http://pastebin.com/

    Or one of the other many code snippet services online.

    Thanks,
    Jonah

    #25659
    Dennis
    Participant

    For those of you who use PRO and are trying to do something similar I threw this together for a project I’m working on. We didn’t need the dropdown forms but we liked the rest so we added a little ajax of our own.
    http://pastebin.com/86KWkCCv

    NOTE: We use Google CDN for jQuery so the $ notation wont work with default WP just change to what you prefer.

    When the change happens the first time it shows the default arrow for a split second then never does it again. Pretty odd. We’re actually changing it to use arrow graphics and using .data() instead of .html

    #25681
    Leah
    Member

    Thanks for posting that Dennis!

    #25780
    Kelly
    Participant

    Sandro, would you be able to try posting your code again? Your solution seems to be just what I was looking for.

    Alternatively, Dennis, could you let me know how I might do it with WP instead of jQuery? I’m a relative newbie.

    #25781
    Dennis
    Participant

    Well you have to use jquery. The issue is WordPress writes in no-conflict mode instead of standard jquery notation. I always switch out with Google’s CDN version of jQuery so I never write in no-conflict mode. Basically, when I write $() you would replace it with jQuery() You can read more here: http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers

    #25782
    Sandro
    Participant

    Kelly, here you go: http://pastebin.com/95X9QUf7

    #26262
    Kelly
    Participant

    Thanks Sandro!!! This is perfect. Your response got lost in my spam folder, but timing couldn’t be better. I launch the site tomorrow morning. Cheers 🙂

    #977936
    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 15 posts - 1 through 15 (of 15 total)
  • The topic ‘echo calendar selected month’ is closed to new replies.