The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
108 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
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
82 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 ...
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 ...
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
138 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
488 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
392 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
450 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
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( ...
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 ...
1
vote
1answer
937 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 ...
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
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 ...

1 2
15 30 50 per page