/ Published in: PHP
Using the ID of a page, you can get the content, the featured image and the title to power widgets in your template.
Expand |
Embed | Plain Text
<?php //Use the Page Id $page_data = get_page(86); $title = $page_data->post_title; $content = apply_filters('the_content', $page_data->post_content); $image = get_the_post_thumbnail($page_id); echo $content; ?>
You need to login to post a comment.
