October 25, 2011 at 12:18 pm #10122
Hey guys, I’ve posted this (basic) question on the wordpress forum, but no answer. Can someone please explain me how to display the events on the homepage (or any other page, then the one assigned under settings?)
Here is my post: http://wordpress.org/support/topic/plugin-the-events-calendar-display-listphp-on-index-page-and-other-pages?replies=1October 25, 2011 at 4:41 pm #10142
Hi Tineke. How are you trying to do this, via shortcode embeds? Would one of the widgets work, or is the sidebar not where you want it displayed? Let me know and I can either provide a response directly or get our developer John to take a look.October 25, 2011 at 4:48 pm #10147
I don’t want it in a sidebar and no, not via shortcode embed (i thought that wasn’t possible?)
The thing is that I don’t want to use widgets. I like to hard-code 😉
Here the website (developing): http://www.hubbicle.in-town.nl/
It has several loops:
I would like to put an events list in loop-events, so I can also show it on the front page and other pages.
The only thing I got working is http://www.hubbicle.in-town.nl/shows/ thanks to your guide by adding it to a template using the WP CMS.
But how to show the same somewhere else?
$posts = tribe_get_events( ‘numResults=1&eventCat=’);
$template = TribeEventsTemplates::getTemplateHierarchy(‘widget-featured-display’);
I tried copying my list.php template into loop-php.
Tried custom post types:
‘events’, ‘posts_per_page’ => 10, ‘orderby’ => ‘date’, ‘order’ => ‘ASC’, ‘paged’ ) ); ?>October 26, 2011 at 8:27 am #10172
Rob?October 26, 2011 at 12:00 pm #10184
Solved it…October 26, 2011 at 4:22 pm #10196
Ah, glad to see you got it solved. You posted these messages between the hours I don’t usually come on the forum – if any other issues arise, just give us a shout (with the understanding it may take up to 24 hours for a response) and we’ll try to assist.October 30, 2011 at 12:49 am #10334MurrayParticipant
Can you post the code here to display on the home page. Thanks MuzzaOctober 30, 2011 at 1:50 am #10335
Hey Murray: you can find it here:
http://pastebin.com/zN4gfeM1 (not sure if pastebin works here, but trying:)October 31, 2011 at 3:32 pm #10365
Pastebin should work here. Thanks, Tineke!October 31, 2011 at 6:56 pm #10379
Hi Tineke, your “Upcoming Posts” code is incorrect – you have the orderby=date which will show events by the date you created the posts….I think most people would want to show upcoming events with the event happening the soonest to be the first in the list….and so on…
So, for anyone hoping to find that in this thread, instead of orderby=date in the query , do eventDisplay=upcomingOctober 31, 2011 at 7:04 pm #10381
Hi Rob, not sure if it’s been mentioned somewhere in the forum yet, but may be a bug….
When displaying upcoming events via template code, it shows the upcoming events correctly…..until you create a recurring event…..then it messes up the display order the upcoming events.
Screen shot here: http://yfrog.com/h7zzdmp
Can John chime in and see if he can confirm the bug please? Hopefully get it fixed in the next version updateNovember 1, 2011 at 5:08 pm #10453
Hey Brian. This does look like a legitimate bug; I’ve sent it John’s way to confirm and if so we’ll get it patched for 2.0.2. FYI John is out the rest of the week but once he’s back hopefully we’ll be able to provide a suggestion for the shorter term as we work to fix this for 2.0.2. Sorry about the inconvenience.November 2, 2011 at 5:21 am #10478MurrayParticipant
Thanks Tineke now for the fine tuning!November 3, 2011 at 8:09 am #10527
Rob, this bug seems to only be related to one specific version of WordPress (think it was 3.1 something) …
It’s working perfectly for me now that I upgraded some of my sites to 3.2.1 !
Thanks, delightedNovember 3, 2011 at 4:27 pm #10554
Ah excellent to hear – thanks for confirming, Brian. I’ll watch to see if anyone else reports this on 3.2.1, in which case we can re-evaluate it…but sounds like if the update worked for you I’d wager it does for others too. Let me know what else arises on this front.
- The topic ‘Display events on homepage’ is closed to new replies.