WordPress.org

Ready to get started?Download WordPress

Forums

Archives Breaking Theme (3 posts)

  1. eyenovation
    Member
    Posted 6 years ago #

    I am trying to edit my footer.php so that I can limit the amount of months shown in the "Archives by Month" column. Please see: http://eyesoncreativity.com/ (at the bottom).

    I tried editing the code in the footer.php:

    <div id="footerleft">
    	<h2>Recent Updates</h2>
    		<ul><?php get_archives('postbypost', 10); ?></ul>
    	</div>
    
    <div id="footermiddle1">
    	<h2>Archives by Month</h2>
    		<ul><?php wp_get_archives('type=monthly', 10); ?></ul>

    You'll notice I tried adding the , 10 - but that did not work (and obviously neither did omitting it). Any ideas?

  2. moshu
    Member
    Posted 6 years ago #

    So, why don't you go back to the Documentation and READ?
    Template_Tags/wp_get_archives#Examples
    and the articles linked at the bottom about how to use the parameters...

  3. eyenovation
    Member
    Posted 6 years ago #

    So, why don't you go back to the Documentation and READ

    Sorry, I hadn't realized there was documentation on that sort of thing. Anyway problem solved. Thanks very much for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic