[wp-hackers] Page Tags

Devin Dixon devin at tayloegray.com
Fri Aug 6 18:24:03 UTC 2010


I have pages in Wordpress 3.01 and those pages have tags associated
with it. Now when I go to pull the tags out, it comes up empty. But I
can get the tags from custom post types, regular post, etc.

$posttags = get_the_tags(get_the_ID());
if ($posttags) {
echo 'Not Empty';
foreach($posttags as $tag) {
echo $tag->name . ' ';

Does anyone have any idea how to get the tags from pages and can those
tags be used to get other pages in a WP_Query?

More information about the wp-hackers mailing list