223 reputation
18
bio website
location
age
visits member for 1 year, 7 months
seen Aug 25 at 17:31

Aug
20
revised What hook is executed just after wp_query has been executed?
deleted 2 characters in body
Aug
19
awarded  Commentator
Aug
19
comment What hook is executed just after wp_query has been executed?
@LeaCohen Do you mean the title tag in the head? It isn't ideal, but you can use the_post to alter the title tag in the same manner as template_redirect. Since the OP asked for an action between wp_query and the template rendering, my answer is still technically valid. However, I would assume that on the Stack Exchange devoted to WordPress, when someone says "page title," they usually mean the title of an actual WordPress page. Regardless, unless the OP clarifies his question, I think downvoting an answer based on your own assumption of the OP's intended meaning is a bit unjustified.
Aug
19
comment What hook is executed just after wp_query has been executed?
@LeaCohen Unless I am mistaken, the reason for your downvote was because you mistakenly thought the_post action only applied to posts. Now that you know better, do you have any other issues that need to be rectified before changing your vote? I assure you, I have used the the_post action as described; it works. This is a perfectly valid answer to the original question. Unless you have some actual experience or knowledge that would indicate that my answer is wrong (and by all means, tell me if you do so I can fix the answer), I fail to see any further issues.
Aug
18
comment 404 page is not querying my custom post
I don't think the_field is a WordPress function. Is it from the Advanced Custom Fields plugin? Either way, using a custom query, custom post type, and custom fields seems a bit convoluted just to add a little inline CSS. If every page uses the same background image and color, why not simply add a class or id to that div and set the background image and color in the theme's CSS style sheet?
Aug
18
comment What hook is executed just after wp_query has been executed?
@LeaCohen Like you asked earlier, who said they're on an archive page? That being said, archive pages are fine. When I said any query I meant any query. The description for the_post is quite literally: allows developers to modify the post object immediately after being queried and setup. Pages are stored and set-up as post objects in the back-end. This is exactly what the OP is looking for. Are these questions based on any actual issues you've run into when using the_post?
Aug
17
comment What hook is executed just after wp_query has been executed?
@LeaCohen I used that as an example. It will work for any page data from any query. In the back-end, posts and pages are the exact same thing (post-types). After a query, a post object is created (whether it be a post, page, or custom post-type). the_post is the best action to use to alter the page's data because it exposes that object. Effectively, my answer is the same as Craig's; that the template_redirect action is one of several that technically can be used. I'm simply pointing out the most useful action for the OP's situation.
Aug
15
awarded  Citizen Patrol
Aug
14
comment What hook is executed just after wp_query has been executed?
@LeaCohen When you are on a single page, the page title is the post title. A page is simply a built-in post type. the_post action is fired for pages and $post_obj will contain all the information for that page just like a post.
May
24
awarded  Critic
May
14
answered What hook is executed just after wp_query has been executed?
Feb
11
answered Wordpress Numeric Pagination with Query String
Jan
23
awarded  Yearling
Apr
28
comment Changing taxonomy term by slug (wp_update_term)
Since you're altering the results of another plugin, you'll probably want to use the appropriate action and priority to make sure your code is called after the other plugin's code.
Apr
28
answered Changing taxonomy term by slug (wp_update_term)
Apr
3
comment Custom column working problem
You could always use the built-in HTTP API: http://codex.wordpress.org/HTTP_API
Apr
2
revised Multiple custom fields with the same name
Adding example code to question.
Apr
2
awarded  Custodian
Apr
2
reviewed No Action Needed Is it possible to activate page template without manually selecting it in wp-admin?
Apr
2
awarded  Analytical