Display Specific Month in Widget
-
Hey, trying to display a specific month in the sidebar widget, so it opens automatically to the month specified.
For instance the events I would like displayed all start in July, so I want the sidebar widget to have July’s events by default.
I tried using the Category ID, but it still defaults to the present month.
I’m using the widget in a few different places, so I don’t want to edit the core files or they’ll default to July ALL the time, just in this instance.
Is this a tall order?
thanks 🙂
-
No order is too tall 🙂
If you put this into a Text widget it should do what you want:
<ul>[events_list scope="2013-07-01,2013-07-31"]<li>#_EVENTLINK </li>[/events_list]</ul>it doesn’t render as HTML … ?
[events_list scope=”2013-07-01,2013-07-31″]
#_EVENTLINK
[/events_list]^ just that shows
Do you have the option called Automatically add paragraphs checked? If you do, uncheck it, save and see it that works.
no – that’s no checked
Sorry, my mistake. I’d forgotten not every theme can run shortcodes within widgets.
If you know how / are comfortable editing the functions.php file of your theme, add this line to it to make shortcodes work in widgets:
add_filter('widget_text', 'do_shortcode');Or, you can add this plugin with does the same thing without needing to edit any files:
http://wordpress.org/extend/plugins/shortcodes-in-sidebar-widgets/
I’ll just edit the php file. Thanks for your help – I’ll give it a try as soon as my back ups are done.
Oh – that little bit of text creates a list. That’s not what I’m looking for (although, it’ll come in handy in many other places), cause all these events have the same name – it’s a recurring event, and it looks funny. I need the mini calendar to show when these events take place.
Any helpful pointers for this?
Thanks Caimin.
I think this should help:
[events_calendar month=”07″ year=”2013″]
that’ll open up a mini-calendar to 07/2013
WONDERFUL!!! Thanks.
Can I display I specific month in the widget on certain events. for instance … if an event starts in July, I want the widget on the side on the event page to pop up July, not the current month. But only that particular event. I made the side bar with the particular month, and that worked for a while, but now we have different events that start on different months … understand?
too much to ask for?
The topic ‘Display Specific Month in Widget’ is closed to new replies.