B
B
bloster2015-12-09 02:21:24
PHP
bloster, 2015-12-09 02:21:24

How to add display of a specific post\category\page in the index.php of a Wordpress theme?

Good afternoon. Setting up my WP. I downloaded a free template, I edit a little for myself.
I came across such a thing - after various sliders and other beauty, at the bottom the template displays the latest blog entries.
I found a line in index.php that is responsible for this business.
get_template_part( 'content-posts', 'home' );
I would really like to change this function to display some static page (maybe the main one). If you can’t have a separate page, then a separate entry will help out, or displaying a separate category (I’ll create it, add one entry there and it will be the same)
I tried to logically poke at random - it didn’t work out.
Thanks for the help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Petrov, 2015-12-09
@Linez

Isn't it easier to do this in the template settings?
Or is there no settings for this template?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question