The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
15 views

WordPress Archives Cause Looping

I am attempting to create an archives page that would have links to authors, categories, tags, etc. I would like it so that when the author, for example, is clicked, all their posts are displayed. ...
0
votes
1answer
18 views

Custom link text wp_get_archive link

Im trying to create custom text for the archive links in my sidebar. Right now it prints it but it comes out as regular text - i'm trying to make the full text output into the link. so "+ Trip ...
0
votes
1answer
29 views

Echo there are no posts wp_get_archives

I'm using wp_get_archives to output my archives in a sidebar - but if there are no posts I would like to echo out 'there are no posts to show'. Is there a conditional statement or filter I can use? ...
0
votes
0answers
32 views

Archive sorted by month - separate

I was looking for my answer in this forum but without success (so far..). Case is following - I have a news page with sidebar that shows archive (last 12 months). I'm using following code: <?php ...
0
votes
0answers
30 views

wp_get_archives using a custom date field instead of post date?

I would like to use the wp_get_archives() function but instead of generating a monthly list of links based on the post date I would like to generate the links based on a custom field date. Any idea ...
0
votes
1answer
108 views

Can I show also the post date using the wp_get_archives() function?

I am pretty new in WordPress theme development and I have some doubt about the wp_get_archives() function: http://codex.wordpress.org/Function_Reference/wp_get_archives In my website I have create ...
0
votes
0answers
39 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 ...
0
votes
0answers
37 views

getarchiveswhere filter returning correct results, but wrong permalink

possible duplicate of Custom Post Types and archives I'm using getarchives_where filter to return custom post type archives in a template. function Cpt_getarchives_where_filter( $where , $r ) { ...
1
vote
2answers
258 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
0answers
54 views

How to get wp_get_archives to work on multisite

I am using multisite and have a news-archive on blog(3) and would like to use wp_get_archives for showing in sidebar, but it doesn´t show anything. Does it work on multisite? If not is it any others ...
0
votes
1answer
339 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 ...
0
votes
0answers
80 views

How to arrange different post categories in template

I'm playing with WordPress for sometime. In my website, there will be 3 possible categories for posts, like: 'offer', 'news' and 'about' (each category with individual content). My attempt is to ...
0
votes
1answer
184 views

Yearly Archive from a custom date metabox (Event Start Date)

I have created a custom post_type called (event) and here's the code // Register Custom Post Type Events function custom_post_type_events() { $labels = array( ...
1
vote
0answers
178 views

wp_get_archives custom function broken since upgrading to WP 3.7.1

I've upgraded a site I'm working on to the latest WP, but it appears the function I wrote for splitting wp_get_archives() into years is now broken and I can't find out why. I've turned on debugging, ...
0
votes
0answers
405 views

wp_get_archives(); Change output of link

Is it possible to edit the output of the wp_get_archives link at all? I'd like to prefix the link with a string. At the moment the output is something like url.com/2013/10 what I'd like it to do ...
0
votes
0answers
119 views

wp_get_archive for category returning different URLs on different but similar sites

I have this code on two different sites in the sidebar: <ul class="news"> <?php wp_get_archives('cat=2&show_post_count=true'); ?> </ul> and this code in the main content ...
0
votes
1answer
1k views

Need some help with “the_widget()” function

I am trying to create code to display certain default WordPress widgets on my e-commerce site. I have 6 content boxes which display WordPress widgets: • Pages • Latest Posts • Archive (last ...
-1
votes
1answer
216 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
931 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
1k 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 ...
2
votes
1answer
275 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
273 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
419 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 ...
1
vote
3answers
2k 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
1k 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
1k 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
229 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
2k 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
300 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
750 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
635 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 ...
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 ...
2
votes
3answers
5k 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
407 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
12k 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
702 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 ...