brumbino Junior Member
Joined: 11 Jan 2010 Posts: 1
|
Posted: Mon Jan 11, 2010 5:30 pm Post subject: Build in automation into template? |
|
|
Hi,
Wondered if there is a way to build [tags] [/tags] into my theme automatically,
So effectively the coding would see
| Code: |
[tags]<?php the_tags(); ?>[/tags]
|
So when I automatically add articles, the tags are automatically added...
Any ideas?
If we could define two Custom Fields called TagOpen and TagClosed with the values [tag] and [/tag] respectively, we could then code
| Code: |
<?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($postid, 'TagOpen', true); ?>
<?php the_tags(); ?>
<?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($postid, 'TagClosed', true); ?>
|
(not sure how to get the Tags: that is built into the_tags() removed, but it's a start! |
|