Expanding Your WordPress Theme

You are so in love with your hacked up WordPress Theme that you’ve decided to use it for your entire website. Awesome. Great job on the design. The only problem is you no longer have access the WordPress Template Tags such get_bloginfo(’name’), get_bloginfo(’home’), (’description’) or others.

What do you do? Well, you can always manually type in the information. If you ever decide to change blog titles or description, you’ll have to change your static template as well. There’s an easy way of doing this by simply pulling out the WordPress Template Tags from the WordPress database. You’ll need a php script to extract the Template Tags from the wp_options table.

Here’s the PHP code for it.

Code

Usage

Just modify the query for other Template Tags you like to extract. To use, include this PHP file in your static template and echo the variables extracted from the database whenever you need it. That’s it.

Let me know if you found this information useful.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

One Response to “Expanding Your WordPress Theme”

  1. Elaine, you are just to funny. Don’t ever loose your sense of humor.
    wallmart

Leave a Reply