Viewing 1 replies (of 1 total)
  • Thread Starter amir_tara67

    (@amir_tara67)

    solved.
    But this code get the post via ID instead of tag.

    <?php
    $post_id = 52;
    $queried_post = get_post($post_id);
    $title = $queried_post->post_title;
    echo "<div>$title;</div>";
    echo "<div>$queried_post->post_content</div>";
    echo get_the_post_thumbnail( $post_id, 'full' );
    ?>
Viewing 1 replies (of 1 total)

The topic ‘How to get posts with specific tag’ is closed to new replies.