how to take a part of specific page content
-
Hello everybody.
I’m trying to put a part of a page content in a static homepage,
I use the following code:<?php $my_id = 19; $mypage = get_post($my_id); $mypage_title = $mypage->post_title; $mypage_content=$mypage->post_content; ?> <h2 class="boxTitle"><?php echo $post_title;?></h2> <?php echo $post_content;?>
but this shows the entire contents and not the part before the more tag.
Can anyone help me?
Sorry for my english and thanks everybody.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘how to take a part of specific page content’ is closed to new replies.