The wp-get-archives tag has no wiki summary.
0
votes
1answer
35 views
How we display Archives for specific categories
I just want to show Archives for special categories. For example i have categories abc,xyz. I just want to show Archives for xyz not for abc. Currently i am using code to display Archives is
...
0
votes
1answer
84 views
wp_get_archives breakes Html5 validation
I have a issue with wp_get_archives because it breaks my Html5 validation.
Inside validator I get this message: Bad value archives for attribute rel on element link: Not an absolute IRI. The string ...
0
votes
1answer
66 views
Wrap the “show_post_count” between div
How can I wrap the "show_post_count" between a div? (from the wp_get_archives())
Do I need to edit the function for that?
Or could I do something like this with pseudo css?
<div ...
0
votes
1answer
141 views
wp_get_archives() output
Iv got this code in my blog.php:
<?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?>
It links to:
/2013/01
My page only loads the header and footer - I think ...
0
votes
0answers
108 views
How do I exclude custom post types from wp_get_archives [closed]
I'm working on a website where I've set has_archive to 'true' on a custom post type and now when I call the wp_get_archives in my template code for just the regular blog posts, it's pulling the ...
1
vote
3answers
495 views
Overriding wp_get_archives() apply_filters()
I have Googled for a while and I am not sure how is the best way to do this.
In wp-includes/general-template.php I am looking at the function wp_get_archives() which has this line of code in:
$where ...
1
vote
2answers
394 views
wp_get_archives() - Get CSS selector for current month
I'm looking for how to get a class in the wp_get_archives functions to get the current month (when we are in a month archive) just like when we call wp_list_categories, the current category has a ...
2
votes
3answers
451 views
Post count per (day/month/year) since blog began
I'm looking to echo the number of posts per month since the blog began, and for months where there was no posts echo '0'.
This is the output I want:
January 1, February 3, March 8, April 3, ...
...
0
votes
0answers
109 views
How can i format the date in the wp_get_archives() function. [closed]
I'm using the wp_get_archives( 'type=daily' ) in my sidebar.php file. but it showing the date like this (July 29, 2012) and i want to show only the date. like
Sunday
Monday
Tuesday
Wednesday
...
0
votes
1answer
128 views
Shortcode for output of wp_get_archives displays at top of post
Why does the output of this function
// One Recent Post
function most_recent_post_shortcode() {
return wp_get_archives( 'type=postbypost&limit=1&format=custom');
}
add_shortcode( ...
1
vote
1answer
945 views
custom post types, wp_get_archives and add_rewrite_rule
I've searched to see if anyone came up with a solution to a peculiar problem I'm having but did not find anything that was close to what was happening in my case.
I have two custom post types - let's ...
1
vote
1answer
187 views
Custom archives function
I'm working on building a custom archives page for my church's website. On my archives page I want to have last week's sermon shown at the top in a special box, followed by the future sermons and then ...
2
votes
1answer
688 views
How to limit wp_get_archives to show months for the X years only
Can anybody show me how to set a limit on wp_get_archives to show archives by month BUT only those for the year 2010 and above - so the 2009 monthly archives are not shown on the sidebar archive ...
0
votes
1answer
1k views
Simplest Way to Build Custom Archives Page?
I am looking to create a page in Wordpress to output links to all of our posts from every month since we launched the blog. I have seen the archive.php template file in Wordpress, but this seems to ...
2
votes
1answer
551 views
Display all custom post types in archives.php
How would I do this?
archive.php only has this:
wp_get_archives('type=monthly');
And wp_get_archives() does not have a parameter to display all post types.
Also I think archive-[post_type].php is ...
0
votes
2answers
414 views
How would you create a “weekly” archive?
I'm looking to create individual archives for each category of my website, but want to them to break into weeks. Check out the linked image (can't embed images as a new user?):
...
2
votes
1answer
1k views
Extend the wp_get_archives output with '?post_type=foo'?
I've gotten my custom post types to display as it should in date based archives; the structure example.com/year/month/day (and above) works properly as long as it's extended with ...
2
votes
1answer
1k views
Archive list with only years and months
I'm trying to show the archive list like that
<ul>
<li>Year</li>
<li>Month</li>
<li>Month</li>
<li>Month</li>
<li>Year</li>
...
-1
votes
1answer
2k views
Archive Widget - Show selected Category Post title. Sorted by Year
I need to add a widget to the sidebar that shows post titles sorted by year ie:
2011
POST TITLE 1
POST TITLE 2
POST TITLE 3
2010
POST TITLE 1
POST TITLE 2
POST TITLE 3
I was thinking of using the ...
1
vote
3answers
3k views
wp_get_archives for a specific category?
I've been pulling my hair out on this one - I need to hard code in wp_get_archives() for a specific category into a template.
This post was useful:
Category Specific Archive
but, as with all the ...
1
vote
2answers
347 views
just can't get date-based archives per post-type to work
I expected that wp3.1 with the support for archive-{post_type}.php would solve my problems. However, I am still struggling to get it working.
What I want is: a custom date-based archive page per ...
3
votes
4answers
8k views
Limit WP_get_archives by category?
I have two categories on a site - news which contains news posts and blog - which contains blog posts. Each page has a wp_get_archives in the sidebar. I'd like to limit the archive listing by category ...
1
vote
1answer
508 views
wp_get_archives() display months even if there is no posts
Hay, the example on the wp_get_archives documentation page shows how to show a list of all the posts, by months. However if there is no posts for a month, the month doesnt get displayed.
So an ...