Home › Forums › Calendar Products › Events Calendar PRO › Custom display of single events on wordpress page.
- This topic has 9 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
November 24, 2013 at 3:49 am #78375
justjuicy
ParticipantBelow is a copy of this post that was never resolved:
https://tri.be/support/forums/topic/custom-diplay-of-events-on-page/#post-60541
——————————————–
Hi. Jonah was kind enough to help me on this post:I wanted to set up a page template to have a single event category displayed, and also have the date filtering code work from the other post. The result would be a single category, with only future events from the next 2 weeks displayed.
Is it possible to help me so that it will display ‘future’ & ‘current’ events – with a link to the event page only if it is a ‘future’ event (ie = not begun yet). If the event is ‘finished’ (end date has passed) It should be hidden from the page.
I can see how the code below works, but I dont know how to change the operators to make it do what i want.
Also do you know if the code in the previous post will still work if i update the woo-tickets plugin, woo-commerce and the events calender plugin. Right now I’m on WT 1.0.1 / WC 2.0.10 / TEC 2.0.11
Many thanks if you can help
SteveNovember 24, 2013 at 3:54 am #78376justjuicy
ParticipantSorry. I meant to add – I’ve still not resolved this issue. I was ‘out of action’ with a hospital procedure, and only just got back to this. In the previous post Rob and Barry were good enough to have a look at this for me.
I am wanting to display the ‘tvikets’ as described above on this page:
http://www.moderngulf.com/newsite/courses/management-development/It was almost working in a previous version of the plugin.. but not when i upgraded. I am using the code inside a wordpress page template below:
array(TribeEvents::POSTTYPE),
‘posts_per_page’ => 10,
‘post_status’ => ‘publish’,
‘meta_query’ => array(
‘relation’ => ‘OR’,
array(
‘key’ => ‘_EventStartDate’,
‘value’ => array(
date(‘Y-m-d H:i:s’, strtotime(‘now’)),
date(‘Y-m-d H:i:s’, strtotime(‘+16 weeks’))),
‘compare’ => ‘BETWEEN’,
‘type’ => ‘DATETIME’
),
array(
‘key’ => ‘_EventEndDate’,
‘value’ => array(
date(‘Y-m-d H:i:s’, strtotime(‘now’)),
date(‘Y-m-d H:i:s’, strtotime(‘+16 weeks’))),
‘compare’ => ‘BETWEEN’,
‘type’ => ‘DATETIME’
)
),
‘tax_query’ => array(
array(
‘taxonomy’ => TribeEvents::TAXONOMY,
‘field’ => ‘slug’,
‘terms’ => array(‘management-development’),
‘operator’ => ‘IN’
)
)
);
$get_posts = null;
$get_posts = new WP_Query();
$get_posts->query($args);
if($get_posts->have_posts()) : while($get_posts->have_posts()) : $get_posts->the_post(); ?><!–<a href="”> –>
–
<a href="”> > View Details
November 24, 2013 at 3:57 am #78377justjuicy
Participantsorry. code from pastebin:
November 24, 2013 at 3:58 am #78378justjuicy
ParticipantNovember 24, 2013 at 4:19 am #78379justjuicy
Participantor an alternative would be to display a list of tickets available for a category outside of the calendar?
IE – The tickets selector on this calendar page:
http://www.moderngulf.com/newsite/calendar-dates/test-event/but show the ticket list on another page?
November 25, 2013 at 2:28 pm #78488Barry
MemberHi Steve,
We’d love to help further with this but its really a customization that you would need to drive forward by yourself: we could certainly provide a list of freelancers/independent developers that might be able to assist you, though, if that would help?
November 25, 2013 at 10:40 pm #78601justjuicy
Participanthi Barry. in my prevoius post you were happy to address this issue and passed it onto Rob to deal with. I just started this new post as the other one got closed while I was in hospital.
the post is here
https://tri.be/support/forums/topic/custom-diplay-of-events-on-page/#post-60541Thanks
SteveNovember 25, 2013 at 10:45 pm #78602justjuicy
ParticipantI meant to ask. . is it not possible to look at based on your previous decision to pass it onto Rob? Had I not been ‘out of action’ it would have been resolved by now.
thanks again
November 26, 2013 at 3:21 pm #78744Barry
MemberHi Steve:
Rob was checking in to see if you still needed assistance (in that other thread) but generally – and though we can occasionally make exceptions, depending on the overall volume of support we’re dealing with at any one time – we don’t help with customizations like this other than to try and give a prod in the right direction.
Really though this is very much the realm of custom development and is something that should be within the grasp of a suitably skilled WP developer (and we’ll happily provide a list of folks you might consider contacting) but, regrettably, is out of the scope of what we can help with here – and that situation may not have been different in the other thread, I just didn’t quite have the information I needed to make that decision.
I hope that makes a little more sense and certainly don’t want you to feel that we’re ‘closing the door in your face’, but realistically we do have to draw a line when it comes to more involved customization requests.
July 7, 2015 at 6:30 am #982654Support Droid
KeymasterThis 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 ‘Custom display of single events on wordpress page.’ is closed to new replies.
