L
L
leha782015-12-10 07:33:00
WordPress
leha78, 2015-12-10 07:33:00

ID and URI of the main page is the same as the ID and URI of the last blog post, how to solve?

I need to make a condition so that the block is displayed on the main page, but not on the blog pages. But when comparing id or URi, it turns out that they match. Why is this happening?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Ortero, 2015-12-10
@Ortero

You can use is_front_page
More details here wp-kama.ru/function/is_front_page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question