GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress 2.3 tags question (https://gfy.com/showthread.php?t=793337)

Snake Doctor 12-19-2007 01:10 AM

Wordpress 2.3 tags question
 
Has anyone been able to get
<p><?php the_tags(); ?></p>
to work on their blogs?

I've put this code just about everywhere on the post template I can think of, and it won't display the tags.

I've got the most popular tags displayed in the sidebar, but I can't seem to get them to display on individual posts.

Thanks in advance for your help.

V_RocKs 12-19-2007 01:18 AM

You will need a plugin. The posts are converted to remove such things.

http://dev.wp-plugins.org/wiki/RunPHP

starpimps 12-19-2007 01:18 AM

hrmn if you are putting it in the post template it should show up in only the post url : www.site.com/the-post/

if you want it to show on the main page also add it in index.php template
between <div id=post> (or something along those lines)

try this code

<?php the_tags('Tags:', ' ', ''); ?>

Snake Doctor 12-19-2007 01:47 AM

I got it.

You have to replace this
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

with this
<?php if ($posts) : foreach ($posts as $post) : the_post(); ?>

in order to display the tags on your template.


All times are GMT -7. The time now is 07:37 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123