greigcooke
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Numeric pagination on single .phpI am trying to paginate through the standard posts, starting with the latest post but display a numeric navigation at the bottom.
Of course. Silly me. I didn’t think to add the code to a normal wordpress page.
Thanks. I’ll post as resolved once I have looked at this over the next few days.
Thanks again.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Mini CalendarThanks,
I created the following code if it is of use to anyone who browses here in the future.
It keeps the calendar on the month of the show being displayed or month of search
$event_start is set as – $event_start = $EM_Event->event_start_date; on the event-single.php and is set as a global variable
<?php $urlholder = $_SERVER['REQUEST_URI']; // get url global $event_start; settype($event_start, "string") if (!empty($event_start)) { $getmonth = substr($event_start, -5, 2); //gets month from url if (substr($getmonth, 0, 1) == '0') { $getmonth = substr($getmonth, 1); } } else { if (preg_match('#[0-9]#',$urlholder)){ //check if contains number $getmonth = substr($urlholder, -6, 2); //gets month from url if (substr($getmonth, 0, 1) == '0') { $getmonth = substr($getmonth, 1); } } else { $getmonth = date('n'); } } //echo $getmonth; ?> <?php echo EM_Calendar::output(array('full'=>0, 'long_events'=>1, 'month'=> $getmonth, 'year'=>2015)); ?>
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Pagination LinksHi angelo,
I can’t see how your code is different from mine as I am using a foreach loop and outputting all data inside of that?
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Css Template fileThanks. I have added the code to my styles.css file.
Ok, so tell me if I can do this?It seems to work but there may be issues
<?php global $EM_Category;?> <?php $holder = EM_Events::get(array('scope'=>'future', 'limit'=>10, 'pagination'=>1, 'category' => $EM_Category->id, )); ?>
Thanks for any comments so far…
Yes please, for each event in that category.
I am working through Angelo’s code but currently it is not working.
Thanks.
Hi angelo,
Thanks for your response.
Where do I put this code. I added to the category-single.php page and it doesn’t show anything?
Thanks