is_page() does not work as expected
-
Hello,
I have 3 pages on which I want to show a single widget.
Pages have following ID’s:
765 (parent)
—983 (child)
—985 (child)I used following logic:
is_page( array(765,983,985))
which does not work.
Then I tried this:
is_page(765) || is_page(983) || is_page(985)
which does not work either.
Then I tried the logic seperately for each page:
is_page(765)
WORKS
is_page(983)
DOES NOT WORK
is_page(985)
DOES NOT WORKIt appearently does not work on my sub-pages. What could be wrong?
I use WP 4.7.4 and WPL 5.8.2.
Thanks for assistance.
- The topic ‘is_page() does not work as expected’ is closed to new replies.