Tagged Questions
1
vote
1answer
63 views
Gravity Forms field entries into wp_query loop
I have a simple function that filters the page content when form (ID 18) is submitted. It simply displays the entry of field (ID 13)...
add_action("gform_after_submission_18", "set_post_content", 10, ...
1
vote
0answers
127 views
get_query_var() not working in pre_get_posts
I'm using the pre_get_posts hook to order the main query on all my custom post type / taxonomy pages using a custom meta value. As part of the logic, I am trying to determine which taxonomy is ...
0
votes
1answer
52 views
Checking url from plugin
I'm trying to change the login url from wp-login.php to simply 'login'. I'd been looking through another plugins source to find ways of doing it.
Some of the applicable parts that I've got so far:
...
3
votes
1answer
243 views
Want to redirect if search query match exact title of any post
I am using WordPress 3.3.1 and new to this system. I want to redirect the search query to the post if query exactly matches post title of some post.
I also want it to run before any search query ...
0
votes
1answer
168 views
How can I override one post and make it display content for another post?
I have two pages on my Wordpress site:
mysite.com/?p=100
mysite.com/?p=200
I think I should be able to hook into Wordpress' actions somewhere and re-query the post, so that content for ...
2
votes
1answer
1k views
Overriding The Loop with filter or hook
I'm trying to replace the $wp_query object for a specific category, without having to deal with creating a new template and creating a new WP_Query object there.
My aim is to change the data ...
0
votes
1answer
314 views
Filter for replacing the WP_query object for a given category
I'm looking for a action/filter to replace replace a category archive page with the contents of a page. I'm thinking of testing the category ID, and replacing the WP_Query object with a new one ...
3
votes
2answers
221 views
Identify which loop you are hooking into; primary or secondary?
What is the most efficient way to determine which loop I'm in?
I have a few plugins that alter the query by hooking into various parts of WP_Query::get_posts(), through the usual suspects, ie ...
1
vote
2answers
1k views
Hook/action after WP_Query gets posts to query custom tables for post-related meta
I see that there are hooks for manipulating WP_Query before it gets its posts (parse_query, pre_get_posts), but I can't seem to find any hooks for after the WP_Query object is populated. I have a ...