Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter ufito

    (@ufito)

    ok… so… I did create all my pages in html, and then I did move them to kinda php. With this I mean, I separeted all the block of code that were constant trough out the website in order to make my life easier if I wanted to change something. I did this by using the php function include.

    I created a file call sidebar.php and introduced the following code

    <div class="list"><?php _e('Archives:'); ?>
    <li id="archives">
         <ul>
    <?php wp_get_archives('type=postbypost&amp;limit=7'); ?>     </ul>
    
    </div>
    <br />
    <div class="list"><?php _e('Categories:'); ?>
    <li id="categories">
    	<ul>
    <?php wp_list_cats(); ?>
    	</ul>
     </li>
    
    </div>

    When use this code and the wordpress loop, my blog page works flawlessly. Then I added the rest of my pages to my theme folder and used the link option in wordpress admin.

    Do I need to add them via the add page in order to use the variables?
    I might need to rethink the layout template in order to do this.

Viewing 1 replies (of 1 total)