I want to have the index page to have a different number of posts than the rest of the pages (page 2, page 3 of the index page, as...
I am trying to make custom filter for my woocommerce website. Everything is working fine in the shop page, but when I go to the archive page the filters...
how can i filter by roles in wordpress admin im already add filter by roles dropdown using this code http://pastebin.com/Zbv3UhVH but im stuck on pre_get_posts function add_role_filter_to_posts_query( $query )...
I need to add custom field to wordpress search result. This what i tried to do is used pre_get_posts filter, like this: function search_filter( $query ) { $key_fields =...
I’m trying to re-order the search results using the pre_get_posts hook and set the orderby parameter to relevance. I also want to put priority posts, which is based on...
I’ve been trying to implement some of the ideas discussed by Andrew Nacin http://wordpress.tv/2012/06/15/andrew-nacin-wp_query/ into my workflow, specifically trying to move away from using query_posts or a new WP_Query...
I have a custom taxonomy called coauthor. On the edit.php screen, I am trying filter and only show posts authored by the current user OR posts coauthored by the...
Is it possible to edit the main query on a page using the pre_get_posts filter? I tried but it doesn’t seem to work. function pre_wp_queries( $query ) { //...
I created a Custom Post Type (call it “my-post-type”). I created an archive-my-post-type.php page for displaying all the Custom Post Types. Looking at the “Recent Posts” section of the...
I am able to get articles as RSS feed from below url http://wordpress_site/blog/feed I am also able to get articles from BlogSpot with specific keywords as below https://www.yourblogname.blogspot.com/feeds/posts/default?q=KEYWORD I...