James Gird
Forum Replies Created
-
AuthorPosts
-
Thanks for the feedback Stiofan. Looking forward to V2.
I’ve tried the above with events. I used the code above and also another piece of code posted by Stiofan elsewhere.
Both works fine with normal fields in events such as post_zip and post date. But with fields like: event_date, event_enddate, starttime and endtime it returns nothing.
Examples below.DON’T WORK
add_filter( ‘geodir_wpseo_replacements_vars’, ‘_my_extra_seo_vars’,10,2);
function _my_extra_seo_vars( $vars, $location_array ){
global $post;
$geodir_event_date = isset($post->geodir_event_date) ? $post->geodir_event_date : ”;
if(!$geodir_event_date){$geodir_event_date = geodir_get_post_meta($post->ID,’geodir_event_date’,true);}
$vars[‘%%starttime%%’] = $geodir_event_date;
return $vars;
}DON’T WORK
add_filter( ‘geodir_wpseo_replacements_vars’, ‘_my_extra_seo_vars’,10,2);
function _my_extra_seo_vars( $vars, $location_array ){
global $post;
$event_date = isset($post->event_date) ? $post->event_date : ”;
if(!$event_date){$event_date = geodir_get_post_meta($post->ID,’event_date’,true);}
$vars[‘%%starttime%%’] = $event_date;
return $vars;
}//WORKS
add_filter( ‘geodir_wpseo_replacements_vars’, ‘_my_extra_seo_vars’,10,2);
function _my_extra_seo_vars( $vars, $location_array ){
global $post;
$post_date = isset($post->post_date) ? $post->post_date : ”;
if(!$post_date){$post_date = geodir_get_post_meta($post->ID,’post_date’,true);}
$vars[‘%%starttime%%’] = $post_date;
return $vars;
}THIS ALSO WORKS BUT ALSO NOT WITH EVENT START/END TIME AND DATE FIELDS
add_filter( ‘geodir_wpseo_replacements_vars’, ‘_my_extra_seo_vars’,10,2);function _my_extra_seo_vars( $vars, $location_array ){
global $post;$vars[‘%%starttime%%’] = isset($post->post_date) ? $post->post_date : ”;
return $vars;
}Thanks Kiran.
What was the problem?
Regards, JamesAny news on this issue?
I have also tried deleting all plugins except for the GeoDirecotry plugins, but still dates on event sidebars.
All customisation is done via code snippets and SiteOrigin CSS, so disabling all plugins also remove all customisation on the site.
Regards, James
This reply has been marked as private.Thank You Stiofan
Looks to be working well, well test further.
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Thanks Stiofan
Will have our server provider do the updates.
Regards
JamesThis reply has been marked as private.This reply has been marked as private.Hi Kor
On the listing details page I would like to repeat the tab heading area (class id geodir-tab-head) again below the listing tabs contented areas.
So when a listing is long like this one, a person don’t have to scroll back to the top to click on another tab to switch between PROFILE / MORE INFO / PHOTOS / MAP / REVIEWS, as the tab header is repeated there.
See attachment. If the area marked with the green arrow can be repeated where the red arrow indicates.
Live page: http://www.kimberley.co.za/places/kimberley/guesthouse/new-rush-guesthouse/
This reply has been marked as private. -
AuthorPosts