Home › Forums › Calendar Products › Events Calendar PRO › echo calendar selected month
- This topic has 14 replies, 6 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
September 6, 2012 at 11:42 am #24657SandroParticipant
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.
September 7, 2012 at 10:00 am #24687JonahParticipantHi 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,
– JonahSeptember 7, 2012 at 2:34 pm #24700SandroParticipantYour 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!
September 7, 2012 at 3:44 pm #24703JonahParticipantGlad to hear Sandro. Mind sharing your code?
Thanks,
JonahSeptember 15, 2012 at 11:31 am #25168SandroParticipantHere is the code:
format(‘F’),’holidayge’);
} else {
_e(date(‘F’),’holidayge’);
}
?>September 15, 2012 at 11:31 am #25169SandroParticipantformat('F'),'holidayge');
} else {
_e(date('F'),'holidayge');
}
?>September 15, 2012 at 11:32 am #25170SandroParticipantI cannot paste my code correctly on this forum.
September 16, 2012 at 7:16 pm #25200JonahParticipantHi 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,
JonahSeptember 24, 2012 at 9:37 pm #25659DennisParticipantFor 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/86KWkCCvNOTE: 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
September 25, 2012 at 10:06 am #25681LeahMemberThanks for posting that Dennis!
September 26, 2012 at 9:08 pm #25780KellyParticipantSandro, 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.
September 26, 2012 at 9:36 pm #25781DennisParticipantWell 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
September 26, 2012 at 11:50 pm #25782SandroParticipantKelly, here you go: http://pastebin.com/95X9QUf7
October 8, 2012 at 11:33 am #26262KellyParticipantThanks 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 🙂
July 7, 2015 at 6:26 am #977936Support DroidKeymasterThis 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 ‘echo calendar selected month’ is closed to new replies.