Some doubts about how the main query and the custom query works in this custom theme?
I am pretty new in WordPress theme development and I’m not so into PHP (I came from Java and C#) and have the following situation in this custom theme
I am pretty new in WordPress theme development and I’m not so into PHP (I came from Java and C#) and have the following situation in this custom theme
It seems like half the tutorials in the Codex and around the blogosphere use query_posts() and half use WP_Query.
I have 3 categories with each 15 posts, I want to do ONE query to the db bringing only 5 first posts for each category, how can I do it?
I read @nacin’s You don’t know Query yesterday and was sent down a bit of a querying rabbit hole. Before yesterday, I was (wrongly) using query_posts() for all my querying needs. Now I’m a little bit wiser about using WP_Query(), but still have some gray areas.
Aa you know, as of WP3.0 there are options for custom advanced queries, which is great.
As of this, some query parameters of custom fields like meta_key, meta_value were deprecated for the new meta_query parameter (see here)
Is it a way to get posts published between a date and today with query_posts() ?
For some reason I’m finding it a struggle to grab any posts using a custom taxonomy… can anyone unravel my stupidity?
I’m trying to pull multiple sites posts. For example, I can pull out a single site
posts by a category and total posts 10.
WordPress by default shows ALL posts to users who are Authors. I wanted Authors to only be able to see their own posts so I came up with the following code which works well.