• Has anybody come up with a way of doing featured or sticky events? We want to highlight certain events and have them appear at the top of calendar and list views.

Viewing 2 replies - 1 through 2 (of 2 total)
  • LS

    (@lsterling03)

    I came here to ask the same question. Would love to know if this is possible!

    I tried to make it work with a custom WP_Query of the event post type, by adding a custom field for “featured” with a value of “1” and then setting the orderby parameter to “orderby” => “meta_value_num eventstart”. But this doesn’t quite work, and in any case, it doesn’t affect the archives or shortcode lists.

    Is this possible?

    • This reply was modified 4 years, 9 months ago by LS.
    • This reply was modified 4 years, 9 months ago by LS. Reason: fixing errors
    • This reply was modified 4 years, 9 months ago by LS.

    It depends on how you are displaying the events loop.

    I was able to use this plugin to make the events sticky on the archive page: Sticky Posts – Switch https://wordpress.org/plugins/sticky-posts-switch/

    If you’re using the shortcode, just use two shortcodes. The first shortcode will have parameters to show only that event. Since this shortcode is placed first, it will always be on top. The shortcode below it will show all the events but exclude the featured/sticky one.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Featured/sticky events?’ is closed to new replies.