how can i show specific excerpt on a page?
-
hi there,
does anyone have any idea how i can display a specific excerpt on my home page using the post id? the following code works but shows the whole post<?php $post_id = 43; // substitute the actual post ID for "2" $my_post = get_post($post_id); echo "<h3>$my_post->post_title</h3>"; echo "<p>$my_post->post_content</p>"; ?>
i’d really appreciate any help thanks ??
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘how can i show specific excerpt on a page?’ is closed to new replies.