Your English isn’t clear to me. What I understood is that you want to list archives of posts with specifications. Like, posts from the first week January, year 2013.
Well, there is a dedicated function for this purpose and it’s: wp_get_archives();
For example, if you want posts of the first week of January, year 2013:
$args = array(
'type' => 'daily',
'echo' => 0,
'year' => '2013',
'month' => '1'
);
echo '<ul>'.wp_get_archives($args).'</ul>';
Hope it helps.
Related Posts:
- Pagination on archive.php page
- How to create an attachments archive with working pagination?
- Filter query_posts by tag slug on “Tag Archive” page (when tag is 2 or more words)
- How do I make archives.php for one category only?
- How can i display the posts per week in a particular month?
- Query Posts Incorrectly Displaying Tags Archives
- Query Posts Creates 404 Error
- posts_per_page no limit
- Alternative to query_posts for main loop? [duplicate]
- Query posts by custom taxonomy ID
- How to return results of a get_posts() in explicitly defined order
- Query posts: how to exclude results if post is in multiple categories
- query_posts ->using meta_compare / where meta value is smaller or greater or equals
- How to order posts by descending comment count on taxonomy page?
- Is it better practice to use query_posts, WP_Query, or get_posts to create various custom loops within a Page?
- WP 5.8 “Query Loop” block: where to place custom query?
- Sort X categories by last update and show image
- Best way to load page content in Fancybox popup?
- order post my meta value m/d/y format with year as included value
- _wp_page_template to dynamically use template
- Schedule Sticky Posts
- Total Count of Posts NOT in Selected Categories?
- WordPress Search Filter Only for Page with Child of Child of Child of Child of Child
- Replace query_posts with pre_get_posts
- Problem with single-page for my custom post
- How to modify the query to exclude posts by slug?
- How to make the list of post and load on same page with sub-pages [closed]
- Using database meta_values to calculate new post order using pre_get_posts or a ‘request’ hook
- exclude ids through post__not_in
- How to get 4 Posts after the 5 most recent ones
- post_status => publish not working
- How to fetch all posts in a category that were published between two given dates?
- get_meta_data within a loop
- making random query button using $_GET
- Is it possible to query_posts using post__in and then Loop through them in the ordered they were queried?
- How do I change the default sort order of a custom column on the posts page?
- how to exclude “featured” posts from the main loop?
- WordPress pagination showing same posts on each page
- pass query string on url to filter media
- Order posts by condition
- Co-authors plus problems with query_post
- Error sending array of inputs
- order posts by meta value on posts page
- Search breaks when querying main loop for category
- Authors List page – How to include only those with wp_user_level as Author
- Adding conditional content to single post-type template
- Simple custom post query for all the posts or many of them not working
- Query posts by meta_key whose value is an array
- Show Blogroll of another WordPress site
- Why this code causes infinite loop?
- Each post is showing twice in my custom query…?
- using query_posts to pull posts out of a category in a while loop. Getting odd echo
- Echo a numerical value in query_posts
- query_posts() – problem with “s” parameter
- why to use query_posts() in custom page?
- Page title in post query
- Question about querying posts
- Currently using a query_posts() in my theme – want to use a request filter in stead
- How to list most popular post
- Breadcrumbs stop working on a specific template file
- How can I query for all children posts regardless of parent
- INSERT in table row fatal error
- WordPress query reverse order
- How to reverse post navigation at bottom of post
- WP-API: get posts in multiple categories
- Make tag archive display post are ordered by post format
- Order for custom field after the loop
- Custom post query error
- Exclude a category of posts in author template
- Multiple instances of query_posts
- Different layout based on post amount?
- If Query Post Returns 1 Post
- Calling Posts from Specified Cat
- Keeping get_posts’ offset and is_paged() synchronized
- odd behaviours from template tags
- Having an issue doing a WP_Query with post_content and category__and
- How to get any type posts include attachments by ids?
- Create a Loop with Posts Ordered by Most Recent Comments
- Different post slug based on archive
- How do I stop the same post showing multiple times in a archive?
- Pagination doesn’t work in query post in tag template
- Specifying image size used in template the_content
- allow user to edit posts made by others users based on the user role
- Order posts by ACF checkbox
- Post per page not working
- Show previous month’s posts
- query_posts result differs from wp_query request result
- If meta_key has value = 6 | Change the wp_posts.post_date to current date
- Adding Category Argument into an Array for WordPress Query
- How to optimize ‘select found_rows()’ query? Several ‘high load average’ alerts daily
- Collect posts from last 48 hours
- query_posts – slightly more advanced query
- How to go to tag archives using a form
- Can you orderby slug in a taxonomy archive page using WP_Query?
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- Why doesn’t this page query work?
- Achieving pagination with `query_posts`
- query_posts works while get_posts doesn’t
- Resetting a Query using wp_reset_query() or wp_reset_postdata() does not work
- Sort posts with multiple meta_keys