• I have a main page that includes automatically the tag in my page. On a second page using <br />

    $post_id = 466;
    $queried_post = get_post($post_id);

    echo $queried_post->post_content;

    it pulls in the content but strips out the tag <br />

Viewing 1 replies (of 1 total)
  • I think you’ve got it backwards. Using the_content() means that <br /> tags are added to your post content. echo $queried_post->post_content; will be displaying raw content before it is passed through the formatting filters that add these tags.

Viewing 1 replies (of 1 total)
  • The topic ‘Break Tags shows up on one page and not another’ is closed to new replies.