开发者

How can i show the archives on side bar of the home page, Wordpress?

I have a wordpress site, and in the home page , there is si开发者_运维问答de bar section.In this section i need to display the archives like

February 2010

  • friday 5th
  • friday 12th
  • friday 19th
  • friday 26th

March 2010

  • friday 5th
  • friday 12th
  • friday 19th
  • friday 26th

April2010

  • friday 2th
  • friday 9th
  • friday 16th
  • friday 23th
  • friday 30th

How can i do this?


There is, unhappily, no quick and easy way to do this. You will need to create your own function for generating the archive display.

If I were you I'd find the wp_get_archives() function in the core and copy it into your functions.php file with your own function name, and hack around with it there to get the display the way you want it.


If your theme is widget-ready, you can simply drop the Archives widget on your sidebar from the admin side.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜