daniel7rusu
Member
Posted 1 year ago #
I want to add the contents from the body of a post or a page on the homepage of my blog. I can't set the Front page displays setting to a static page because my theme needs to be set on Lastest posts in order for the slider to work.
What is the php code I should up in home.php to put that page's content on the homepage?
You can add a Post to the top of your front page by just making it "sticky" (see the Visibility sub-menu in Edit Post). If you want to add the content of a static Page to your front page, you'll need to create a secondary custom query.
http://codex.wordpress.org/Function_Reference/get_posts
http://codex.wordpress.org/Function_Reference/WP_Query