Title: is_page don´t work in PHP Code widget
Last modified: August 19, 2016

---

# is_page don´t work in PHP Code widget

 *  [moonwoff](https://wordpress.org/support/users/moonwoff/)
 * (@moonwoff)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/is_page-dont-work-in-php-code-widget/)
 * I use PHP Code Widget to get my links (with widget logic) to show in the sidebar
   on the pages about Dante (dante, info, etc…).
    I have tried to use `is_page('
   19','50','54','58')` but it doesn´t show the menu (dante-menu) in the sidebar.
   If I use !is_page(array(‘hem’,’13’,’9′,’85’)) it works fine, but the menu shows
   in the sidebar at “hem”-page (blog).
 * How do I get so the dante-menu not shows in the sidebar at “hem”-page?
    Or how
   do i get the is_page-code to work, as it works with some other text-widgets?
 * Thanx in advance!

The topic ‘is_page don´t work in PHP Code widget’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [moonwoff](https://wordpress.org/support/users/moonwoff/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/is_page-dont-work-in-php-code-widget/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
