Comments on: Practical Uses of pre_get_posts https://wpshout.com/practical-uses-pre_get_posts/ A hub for advanced WordPress users, developers & savvy business owners. Wed, 21 Feb 2018 02:07:39 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Fred Meyer https://wpshout.com/practical-uses-pre_get_posts/#comment-20665 Wed, 21 Feb 2018 02:07:39 +0000 https://wpshout.com/?p=10471#comment-20665 In reply to Theo.

Hi Theo,

Thank you so much! I’ve (finally) fixed that. 🙂

]]>
By: Theo https://wpshout.com/practical-uses-pre_get_posts/#comment-20664 Wed, 04 Jan 2017 16:49:57 +0000 https://wpshout.com/?p=10471#comment-20664 Thank you for your post.

Shouldn’t you be using add_action(), rather than add_filter() in your examples? Technically I believe both will work, but according to the codex, it should be add_action().

e.g. add_action( ‘pre_get_posts’, ‘wpshout_pages_blogindex’ );

]]>
By: Course: Working with WP_Query | WPShout https://wpshout.com/practical-uses-pre_get_posts/#comment-20663 Fri, 05 Aug 2016 21:12:30 +0000 https://wpshout.com/?p=10471#comment-20663 […] Practical Uses of pre_get_posts […]

]]>
By: surja https://wpshout.com/practical-uses-pre_get_posts/#comment-20662 Wed, 06 Jul 2016 18:38:00 +0000 https://wpshout.com/?p=10471#comment-20662 Thank you for the article, explains the concept very clearly.

]]>