kyerobertson
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Homepage portfolio paginationHi originalmi, I see you managed to do this. How did you manage it? It looks great!
I am running the same theme, and desperate to solve this problem. Please help!
Kyle
Sorry, still won’t work. I moved the template file into your theme/plugins/events-manager/templates and inserted the code in, cleared my cache but still no luck. Here is my code…
<?php /* * Default Events List Template * This page displays a list of events, called during the em_content() if this is an events list page. * You can override the default display settings pages by copying this file to yourthemefolder/plugins/events-manager/templates/ and modifying it however you need. * You can display events however you wish, there are a few variables made available to you: * * $args - the args passed onto EM_Events::output() * * echo em_get_locations_map_shortcode($_REQUEST); */ if( get_option('dbem_events_page_search') && !defined('DOING_AJAX') ){ em_locate_template('templates/events-search.php',true); } //TODO fine tune ajax searches - we have some pagination issues otherwise, due to search querystrings if( get_option('dbem_events_page_ajax', (defined('EM_AJAX_SEARCH'))) ) echo "<div class='em-events-search-ajax'>"; $events_count = EM_Events::count( apply_filters('em_content_events_args', $args) ); $args['limit'] = get_option('dbem_events_default_limit'); $args['page'] = (!empty($_REQUEST['pno']) && is_numeric($_REQUEST['pno']) )? $_REQUEST['pno'] : 1; if( $events_count > 0 ){ //If there's a search, let's change the pagination a little here if(!empty($_REQUEST['action']) && $_REQUEST['action'] == 'search_events'){ $args['pagination'] = false; if(get_option('dbem_event_list_groupby') ){ $args['mode'] = get_option('dbem_event_list_groupby'); $args['date_format'] = get_option('dbem_event_list_groupby_format'); echo em_events_list_grouped($args); }else{ echo EM_Events::output( $args ); } //do some custom pagination (if needed/requested) if( !empty($args['limit']) && $events_count > $args['limit'] ){ //Show the pagination links (unless there's less than $limit events), note that we set em_search instead of search to prevent conflicts $search_args = array_merge(EM_Events::get_post_search(), array('pno'=>'%PAGE%','action'=>'search_events','search'=>null, 'em_search'=>$args['search'])); $page_link_template = em_add_get_params($_SERVER['REQUEST_URI'], $search_args, false); //don't html encode, so em_paginate does its thing echo apply_filters('em_events_output_pagination', em_paginate( $page_link_template, $events_count, $args['limit'], $args['pno']), $page_link_template, $events_count, $args['limit'], $args['pno']); } }else{ if(get_option('dbem_event_list_groupby') ){ $args['mode'] = get_option('dbem_event_list_groupby'); $args['date_format'] = get_option('dbem_event_list_groupby_format'); echo em_events_list_grouped($args); }else{ echo EM_Events::output( $args ); } } }else{ echo get_option ( 'dbem_no_events_message' ); } if( get_option('dbem_events_page_ajax', (defined('EM_AJAX_SEARCH'))) ) echo "</div>";Not sure what I am doing wrong, please help!
Marcus, your a legend.
Thanks for your help, I’ll let you know how I get on!
Hi Marcus,
I’m sorry to be a pain but I’m new to this. Where do I insert this code?
Many thanks
Hello,
Thanks for the reply.
I am currently building the wordpress site using MAMP, so it’s a local website. This means I am unable to supply you with a link at this time.
I have tried it with the basic twenty twelve theme and no luck either. I then tried de-activating the plugins, but no luck either.
The shortcode I am using on my events page for the map is [locations_map]
Is this the correct code?
Many thanks for your help!
Has anyone managed to find a solution to this problem? Like Kuler89 I need to create a map with a red marker for one category and a blue marker for another. I saw it work here: http://www.internationalbeerday.com/celebrate/find-a-celebration-2012/ and it looks great!
Please help!
Forum: Fixing WordPress
In reply to: Redirect Single Post to a CategoryHi Avinash,
Thanks for your reply. I have tried this plugin as well as several others (including redirection) but they don’t work.
Is there any other method?
Thanks
Forgot to mention….I am running my wordpress on a mac using mamp.