Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Broobles Forum Forum Index » SimpleTags

Post new topic   Reply to topic
Build in automation into template?
View previous topic :: View next topic  
Author Message
brumbino
Junior Member


Joined: 11 Jan 2010
Posts: 1

PostPosted: Mon Jan 11, 2010 5:30 pm    Post subject: Build in automation into template? Reply with quote

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!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Broobles Forum Forum Index » SimpleTags All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional