cindyluken

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Problem with Post Slider and Events Calendar Pro #76906
    cindyluken
    Participant

    Hi again,
    Looks like my clever developer has been able to fix both of the problems a) & b). Here’s his fix in case it helps others:
    Here’s the code:
    add_action( ‘parse_query’, ‘tribe_fix_tag_query’ );
    function tribe_fix_tag_query( $query ) {
    if ( $query->is_tag && (array) $query->get( ‘post_type’ ) != array( TribeEvents::POSTTYPE ) ) {
    if ( empty( $query->query_vars[‘post_type’] ) || (‘any’ == $query->query_vars[‘post_type’]) ) {
    $query->query_vars[‘post_type’] = array( ‘post’ );
    }
    }
    }
    I had added the code to check for post type that is ‘any’ instead of just ’empty’

    Thanks

    in reply to: Problem with Post Slider and Events Calendar Pro #76891
    cindyluken
    Participant

    Hi Kelly,
    We added the fix you mentioned and it partly resolved the problem for (a) below but not (b). Now it has broken again and we are not getting any image feeds for either of these pages.
    a) this page is not displaying the recipes http://lukbeautifood.com/food/recipes/by-ingredient/
    b) this page is not showing all of the recipes – just 3. Used to show all category recipes using the theme’s slider, set up all looks fine. http://lukbeautifood.com/food/recipes/by-dish/

    Can you please look into this again and advise. Thanks

Viewing 2 posts - 1 through 2 (of 2 total)