0
votes
0answers
20 views

How to count the number of monthly archive?

<?PHP $num_cats = wp_count_terms('category'); echo $num_cats. '<br/>'; ?> I get the number of total categories from the above code. How can I get the total categories based monthly ...
1
vote
2answers
98 views

Date archives for custom post type

I have seen many questions/posts regarding this, but have yet to find a decent solution. Basically I am trying to do what wp_get_archives does, but for a custom post type (personally I am unsure why ...
0
votes
1answer
199 views

remove 2014 from wp_get_archives

we have wp_get_archives('type=monthly'); function that have a output like this: Archives by Month: January 2014 December 2013 November 2013 but I want style like a table that sorted by years: 2014 ...
-1
votes
1answer
195 views

Wordpress 3.6 - archive.php doesn't get triggered [closed]

I made a custom theme and just created an archive.php file. When I try to access http://localhost/wordpress/?m=201308 for example it just triggers my index.php template. The link was generated by ...
0
votes
1answer
716 views

How to have Multiple Archives Widgets, one archive widget per category (in a different page)?

Please read the whole question before assuming this question is repeated. After one day of trying plugins and tutorials, I am convinced that there is no straightforward method of achieving what I am ...
1
vote
1answer
794 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
193 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 ...
1
vote
1answer
276 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
1k 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
2k 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
715 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
589 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?): ...
3
votes
1answer
2k 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
3k 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
2answers
399 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 ...
1
vote
1answer
662 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 ...