Linked Questions

1
vote
2answers
110 views

Why is the first query affecting the second query, even after wp_reset_query() and wp_reset_postdata(), but not on the second page?

I am literally clueless as to why the code does not function properly on the first page, but functions as expected on the second page. I have already tried running the second query via another ...
0
votes
1answer
620 views

Custom Post Type Query for Sidebar Doesn't Work on Front Page

Interesting issue here. I have this: $args=array( 'meta_key'=>'_simple_fields_fieldGroupID_1_fieldID_8_numInSet_0', 'post_type' => 'stores', 'post_status' => 'publish', ...
0
votes
3answers
227 views

how to “not” display new posts with a specific category on the main page?

I've read this and this but I'm just a basic user. I have a "technical" blog that more and more people visit. I'm a freelance, and now, when someone hears about me, he/she wants to search for me, ...
2
votes
2answers
454 views

How to generate a list of posts published on current day?

I want to create a page labeled "Today's News" which displays a simple bulleted list of all posts published on the current day and grab the current date based on the server's date/time. Is this ...
1
vote
1answer
744 views

Query get post,how to add comment box

Hello I have a query that gets a post with id=x and it works but it leaves out the comment box. Is there a way to add "get comment box" to the query? <?php $post_id = 104; $queried_post = ...
2
votes
1answer
265 views

Determine if more posts are available than was asked for in `query_posts()`?

I'm getting products (from a specific category) using a custom query_posts() function. I limited the showposts parameter to 25, so how do I know to activate pagination if there are still products ...
5
votes
1answer
427 views

WordPress Posts By Date/Day?

I want to output on the homepage the posts from the lastest 3 days. Like this: 30/03/12 post 1 post 2 post 3 29/03/12 post 1 post 2 post 3 28/03/12 ...
0
votes
1answer
427 views

get_posts() and global variables

I was reading this post: When should you use WP_Query vs query_posts() vs get_posts()?, which seems to have become the go-to post for understanding the difference between the different functions for ...
0
votes
2answers
690 views

Achieving pagination with `query_posts`

I'm using query_posts to build a list of posts from a single category, and I'm trying to add pagination to this setup. Here's my code: <ul> <h1><?php the_title(); ?></h1> ...
1
vote
3answers
150 views

Single page theme

I am trying to create single page theme. What i have trouble with is understanding this whole wordpress query logic. There is query object and supposedly i get all published posts like this: ...
0
votes
1answer
636 views

A two column loop with one lead post

I got a loop from internet (I forgot the site) for two column post view. It has a nice CSS for it too. But skipping that for the question now. <?php $counter = 1; ?> <?php ...
0
votes
1answer
294 views

2 loops, is_home won't work, count is off

Alright, I've made a bunch of themes over the years, and I've written a lot of queries. And I just realized that I apparently have no clue how to get multiple queries to behave. So, here is the loops ...
4
votes
1answer
274 views

Limiting query_posts to 1, regardless of sticky post?

As part of my homepage template, using the standard query_posts I'm pulling out 1 post (styled using a different content_part), then an ad, then the rest of the posts. This works fine, except for when ...
0
votes
3answers
322 views

How can I show posts for a single category?

Is it possible to show posts for a single category? I tried browsing to the URL http://mysite.com/category/foo which does show all of the posts with category foo, but the posts lose their formatting ...
1
vote
1answer
391 views

Possible to display posts containing a short code ?

i have some posts with a certain shortcode in them. unfortunately these posts are in different categories and contain different tags so i am not able to query them. is it possible that i run a query ...

15 30 50 per page