Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question