I
I
Ivan2015-11-13 00:06:33
WordPress
Ivan, 2015-11-13 00:06:33

Define WordPress homepage inside an include file?

Good evening. There was a problem defining the main page. The bottom line is that posts that are generated in a separate file are displayed on the page, and if you specify is_front_page () or is_home () in that file, then they do not work, how can this be implemented?
More details:
There is a structure that you can see prntscr.com/929mx2 in the file that is selected, the content is formed and then the file connections are displayed on the pages. And the problem is that is_front_page () does not work in this file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
litvin2, 2015-12-04
@litvin2

Разбирайте код в этом файле и во всех файлах темы, которые этот подключают.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question