get_page/post and no paragraphs problem
-
Hi.
I have a problem. I want to have 2 pages/posts on one front page in my wordpress.
I add 2 pages on admin panel (id 53 , 57) and i edited index.php adding:<?php
$my_id = 53;
$post_id_53 = get_post($my_id);
$title = $post_id_53->post_title;
$content = $post_id_53->post_content;
echo $post_id_53->post_content;
?>This works fine and i see the content of this post but there are NO paragraphs <p>.
When i go to https://www.mydomain.com/53/ it looks ok. I cen write on admin using “enter” and this generate <p> tags. When i’m looking on my front page (in source) there are no <p> and this looks not ok. Any idea?
Thx
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘get_page/post and no paragraphs problem’ is closed to new replies.