James Gird

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • in reply to: Event Date variables for Yoast #444869

    James Gird
    Expired Member
    Post count: 33

    Thanks for the feedback Stiofan. Looking forward to V2.

    in reply to: Event Date variables for Yoast #444683

    James Gird
    Expired Member
    Post count: 33

    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;
    }

    in reply to: Event dates missing from sidebar after update #434948

    James Gird
    Expired Member
    Post count: 33

    Thanks Kiran.
    What was the problem?
    Regards, James

    in reply to: Event dates missing from sidebar after update #434932

    James Gird
    Expired Member
    Post count: 33

    Any 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

    in reply to: Event dates missing from sidebar after update #434811

    James Gird
    Expired Member
    Post count: 33
    This reply has been marked as private.
    in reply to: Star Rating weights #396702

    James Gird
    Expired Member
    Post count: 33

    Thank You Stiofan

    Looks to be working well, well test further.

    in reply to: Star Rating weights #396597

    James Gird
    Expired Member
    Post count: 33
    This reply has been marked as private.
    in reply to: Star Rating weights #396579

    James Gird
    Expired Member
    Post count: 33
    This reply has been marked as private.
    in reply to: 503 Errors #388418

    James Gird
    Expired Member
    Post count: 33
    This reply has been marked as private.
    in reply to: 503 Errors #388393

    James Gird
    Expired Member
    Post count: 33
    This reply has been marked as private.
    in reply to: Licence activation error #388386

    James Gird
    Expired Member
    Post count: 33

    Thanks Stiofan

    Will have our server provider do the updates.

    Regards
    James

    in reply to: 503 Errors #388385

    James Gird
    Expired Member
    Post count: 33
    This reply has been marked as private.
    in reply to: Licence activation error #388319

    James Gird
    Expired Member
    Post count: 33
    This reply has been marked as private.
    in reply to: Repeat Detail Page tab head #387054

    James Gird
    Expired Member
    Post count: 33

    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/

    in reply to: Everywhere redirect on location switcher problem #385745

    James Gird
    Expired Member
    Post count: 33
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 29 total)