1 Replies - 10946 Views - Last Post: 19 February 2012 - 04:12 AM

#1 narekm  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 48
  • Joined: 23-March 11

My created theme's archive does not work

Posted 19 February 2012 - 03:23 AM

I am creating my own theme . I typed
wp_get_archives("type=monthly"); in my sidebar.php file and in the main page it shows the link for 2012 fubruary but when i click on it it takes my to the blank page .
And for that reason i typed in my "archive.php" file
the_post();
the_title(); (And hoped that wordpress is organized in a way that will take me to another page showing the posts of that month). And after doing it it again when i clicked on home pages archive link it again took me to a blank page .
What could be the reason ?

Is This A Good Question/Topic? 0
  • +

Replies To: My created theme's archive does not work

#2 floppyspace  Icon User is offline

  • D.I.C Regular

Reputation: 48
  • View blog
  • Posts: 254
  • Joined: 04-February 10

Re: My created theme's archive does not work

Posted 19 February 2012 - 04:12 AM

try
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1