• Hi

    I’m using a plugin that allows me to use tags on pages, working just fine when I’m inside the loop. But how do I apply it in WP 3.1 outside the loop?

    get_the_tags($post->ID) does not work

    Thanks!!

    / ors

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ors

    (@ors)

    Oh, btw, I’m using Page Tagger 0.3.6

    Thread Starter ors

    (@ors)

    Got it working with this:

    <?php
    	$posttags = wp_get_post_terms( get_the_ID() , 'post_tag' , 'fields=names' );
    	if( $posttags ) echo implode( ',' , $posttags );
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_the_tags() outside the loop in page.php’ is closed to new replies.