The way to use is_page with multiple pages is as follows:
is_page(array(42,'about-me','Contact'));
You have to use the array
keyword
Related Posts:
- Which banner plugin is this? [closed]
- List all sidebar names?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- Adding a widget programmatically
- Show missing Sidebar from Gutenberg admin area
- Override dynamic_sidebar() in plugin?
- Sidebar Generator issue [closed]
- Layout shop page: resize images and columns
- Flickr plugin that will display photos from multiple group pools? [closed]
- Way to hook into a sidebar call to replace it with a custom sidebar
- I need some direction on how to have a sidebar based on meta rather than page
- Multisite Widget/Content
- Missing argument 3 for wp_register_sidebar_widget()
- (WooCommerce) Remove Sidebar only on Single-Product page
- Plugin Code ONLY on Post Edit Page
- Custom random quote widget breaks when used in multiple sidebars
- How to display custom sidebar in wordpress 5.5.2
- Displaying Custom Sidebar Without Modifying Theme’s Core File?
- How to use my menu PHP code as sidebar?
- Best practice for including plugin output in a template without using shortcode?
- Widget’s container?
- How do I add the same contact form to multiple wordpress sites and capture the response in one place or database?
- do_action in conditional
- Posts to have category specific sidebars with the widgets
- How to Use the Filter “sidebar_login_widget_form_args”
- Woocommerce product info in a sidebar?
- Add Stack Exchange Recent Questions to a wordpress sidebar?
- Need to setup grid like thumbnail of recent posts on sidebar
- Widget content turns up before title
- Displaying number of drafts in Posts section of admin sidebar [closed]
- is_front_page breaks with url parameters generated by a plugin
- Listing all sidebars
- Mobile Menu and Mobile Sidebar missing
- Use modulo condition in ACF repeater Field
- Co-author plus: list of posts by authors in the sidebar
- Conditional Fields depending on checkboxes
- How can I remove this sidebar from my Search Results page?
- Conditional required fields for WordPress Contact Form 7
- Programmatically retrieve the sidebar/s classes
- Cannot access variables within a widget
- twitter widget loads properly in all themes except my own theme?
- Template from scratch: Sidebars not showing widget
- Display WP Start bar on front page only
- functions.php conditional output for a single plugin
- What method should I use for a sidebar widget that reads latest posts?
- Can’t edit Contact Us form on front page
- Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?
- Change page content based on dropdown selection
- Trying to Make a Sidebar/Tab on Specific Posts
- Is there a plugin for uploading files such as PDF files?
- Simply poll & Events Calendar plugins clashing
- WordPress plugin Post Creation [closed]
- Register google jquery gets overwritten by plugin
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- WordPress plugin to auto execute php script on a specific time?
- WordPress Book Exchange Plugin Equivalent?
- Making that Admin Bar transparent or a blue color
- Use wp_upload_dir() correctly
- Which wordpress theme is compatible Optima Express theme (real estate inventory) plugin?
- Fullscreen gallery plugin [closed]
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Measure and limit file uploads
- WordPress Related Plugin – only show when related content
- Plugin to email a post or page to someone
- Don’t publish/update a post when a plugin finds errors in custom fields
- How to enable customer login to customer specific admin page
- Ajax save data to database on document ready, no data being saved
- How to execute a plugin on a single page only?
- Short messages widget [closed]
- autologin in wordpress when loged in non wp-site
- Yoast Force Rewrite Crashed Site [closed]
- Creating author Specific page URL
- Image crop, resize and compression plugin?
- I want to know about the plugins that help in while I write code on my Page? [closed]
- How to Include File from Plugins into Template?
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Fetch Data from other website in wordpress (screen scraping)
- Allowing users to Sign-up > Login > Post articles that need approval
- What is a good plugin for making a template that can be reused to make several objects on a single page?
- Is there a plugin for feedback like Kissmetrics available? [closed]
- adding a button to the media uploader
- Hotel reservation plugin you would recommend [closed]
- how to insert a HTML form into a javascript popup?
- Mask and Track Outbound Links
- Get path to themes CSS file inside of a Plugin
- Shortcode does not expand in Facebook like
- How can I modify page content in the admin panel?
- Is there a plugin to turn comments into structured reviews [closed]
- how to activate a plugin inside a theme
- WordPress programming video tutorials [closed]
- Add Content to Content()
- WordPress front end AJAX. Return 0 :?
- Add some fileds to the wp_posts table
- Hook for page Request?
- Check if user is on backend page
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- How to Resize the Custom Post Images?
- WordPress stats: OWA plugin overhead in the future
- Flag Comment as inappropriate button plugin
- Display a consistent Google Plus icon on ALL pages of my site