Category: wordpress


Look at the bottom right of this photo. See where it reads Blog? A site I’m working on has a special template for showing off all posts marked blog when they go to mysite.com/blog. Fine and dandy.

So you made your blog.php file but its not showing up? Make sure the top of your blog.php file looks like this:

<?php
/**
*Template Name: Blog
*
*@package WordPress
*/

Giving the template file the name makes it visible to wordpress.

Nifty!

Relative linking in wordpress is a pain. Do this:

<img src="<?php bloginfo('template_directory'); ?>/images/image.jpg"/>

Hurray image!