WordPress.org

Support

Support » How-To and Troubleshooting » can't get tags of post …

can't get tags of post …

  • Hi there

    I trying to get tags of a post and have tried :

    $t = get_the_tags($post_id);
    print_r($t);

    and

    $tags = wp_get_post_tags($post->ID);
    
    if ($tags) {
      foreach($ags as $tag) {
        echo $tag->name;
      }
    }

    doesn’t return anything…

    What else can I do ?

    Cheers
    Adam

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can't get tags of post …’ is closed to new replies.