11<?php
22// Get the page / post content (easy way)
3- echo get_post_field ('post_content ' , $ page_id );
3+ echo get_post_field ( 'post_content ' , $ page_id );
44
55// $more_link_text Optional. Content for when there is more text. Default is null
66// $stripteaser Optional. Strip teaser content before the more text. Default is false.
77
8- $ post = get_post ($ page_id );
9- setup_postdata ( $ post , $ more_link_text , $ stripteaser );
8+ $ post = get_post ( $ page_id );
9+ setup_postdata ( $ post , $ more_link_text , $ stripteaser );
1010the_content ();
1111
1212// get other info by using ID
13- get_the_permalink ($ page_id );
14- get_the_title ($ page_id );
15- get_the_post_thumbnail_url ($ page_id );
16- get_the_excerpt ($ page_id );
17- get_the_date ( 'l F j, Y ' , $ page_id );
13+ get_the_permalink ( $ page_id );
14+ get_the_title ( $ page_id );
15+ get_the_post_thumbnail_url ( $ page_id );
16+ get_the_excerpt ( $ page_id );
17+ get_the_date ( 'l F j, Y ' , $ page_id );
1818
1919// Check if the page is front page or not
20- get_option (" page_on_front " ) == $ page_id ;
20+ get_option ( ' page_on_front ' ) == $ page_id ;
0 commit comments