Pintsize footer.php


Usually included in a wordpress template by a <?php get_footer(); ?> command. This code generates the code to display the page footer.

   <!-- footer div for styling -->
   <div id="footer">
      <!-- Print date in year format and use bloginfo function to show site name -->
      <p>&copy;<?php echo date("Y"); echo " "; bloginfo('name'); ?></p>
<!-- wp-footer is one of those required elements in a WordPress theme -->
<?php wp_footer(); ?>
<!-- Don't forget analytics -->
<!-- Analytics code can be put here if wanted -->

<?php bloginfo(‘name’); ?>

The bloginfo php function will retrieve blog information from the WordPress database, the name is the Site Title from General under Settings. Retireving this from the WordPress database allows you to show a user specified value for the name, as opposed to having it hardcoded in the template file. Other options can be used to link to other information from the wordPress database.

<?php wp_footer(); ?>

Always have wp_footer() just before the closing </body> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript files.

Next, sidebar.php


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s