The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
14 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
25 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
1answer
103 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
1answer
183 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
177 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
31 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
28 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
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 ) { ...
0
votes
0answers
53 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
0answers
79 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
0answers
398 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 ...