featured event is gone from the list

Home Forums Calendar Products Events Calendar PRO featured event is gone from the list

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #931316
    baraklevy
    Participant

    hi All
    Can someone help me to understand this issue? I marked one event as peatured and Now it is nn longer in the events list:
    http://www.allot.com/events/

    this is my code in the list.php: http://pastebin.com/Mmg4s1tG

    • This topic was modified 11 years, 4 months ago by Brook.
    • This topic was modified 11 years, 4 months ago by Brook. Reason: Moved code to pastebin because it was too long for display
    #931614
    Brook
    Participant

    Howdy baraklevy,

    I moved your code over to pastebin, set it to unlisted and expire in two weeks. It was too long for our forums here and was breaking the styling. But thank you for posting it, it helped reveal the problem.

    First of all great customization. In your query you have this line for everything you want to appear in the slider:

    query_posts(array(‘post_type’ => ‘tribe_events’,
    ‘posts_per_page’ => -1,
    ‘meta_query’ => array(array(‘key’ => ‘featured_event’,
    ‘value’ => ‘1’,
    ‘compare’ => ‘==’
    )
    )
    )
    );

    That makes sense. But then you have this line later for everything you want to appear in the list:

    $links_params = array();
    $params = array(‘post_type’ => ‘tribe_events’,
    ‘paged’=> $page_custom,
    ‘eventDisplay’ => ‘upcoming’,
    ‘posts_per_page’ => $posts_per_page,
    ‘meta_query’ => array(array(‘key’ => ‘featured_event’,
    ‘value’ => ‘0’,
    ‘compare’ => ‘==’
    )
    )
    );

    Notice that it specifically precludes anytrhing where featured_event == 1. Thus it hides whatever appears in the slider. You’d need to modify this, maybe by just remove that part of the query. Make sense? Is there anything else I can help with? Cheers!

    – Brook

    #965004
    Brook
    Participant

    Since this topic has gone for a while without an update it is getting archived. If you need anything else though, please feel free to open a new topic. We would love to help!

    – Brook

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘featured event is gone from the list’ is closed to new replies.