Last active
September 10, 2017 06:30
-
-
Save braddalton/e35ff39512a7aa524fa4960af2b26cb8 to your computer and use it in GitHub Desktop.
Filter WP_Query In Genesis Featured Posts Widget https://wpsites.net/web-design/add-filter-to-wp_query-in-genesis-featured-posts-widget-suggested-genesis-core-enhancement/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$query_args = apply_filters( 'featured_posts_args', array( | |
'post_type' => 'post', | |
'cat' => $instance['posts_cat'], | |
'showposts' => $instance['posts_num'], | |
'offset' => $instance['posts_offset'], | |
'orderby' => $instance['orderby'], | |
'order' => $instance['order'], | |
'ignore_sticky_posts' => $instance['exclude_sticky'], | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment