If you want is_page to accept multiple parameters, you need an array. See http://codex.wordpress.org/Function_Reference/is_page#Examples
<?php
if(is_front_page()){layerslider(1);}
else
if(is_page(array(3,36,38,40))){layerslider(2);}
else
if(is_page(array(46,48,52,58,60,62,64,66,69,71))){layerslider(3);}
else
(…)
?>
Should work. And you don’t need to quote page id’s
Related Posts:
- Disable plugin / plugin action via theme
- How to eliminate weird 404 errors in wp-admin?
- How would you require and automatically download dependent plugins?
- Simple form that saves to database
- Create WooCommerce Product Category Programmatically
- Get Current user email as a return string value
- Publish Post After Click On A Link
- ‘Lazy loading’ list of posts with pagination
- Replace existing pages with new pages, keep menu links
- gallery option is not available in media upload box in costum theme option page
- New post notification plugin [closed]
- Exporting and importing my WordPress database, but none of the plugin settings are importing
- Woocommerce disable shopping cart based on user roles
- Object Oriented Plugin not working
- How to use site_url() in Elementor [closed]
- How to add checkboxes for a woocommerce product? [closed]
- How to echo text in browser instead of download junk file?
- Add custom text color WordPress 3.9 TinyMCE 4 Visual editor
- ACF: post query, hide duplicate values [closed]
- WordPress Jquery UI Spinner
- How to customize a plugin?
- How to replace website?
- Proper way to use plugin functions in functions.php
- Is there a plugin to turn comments into structured reviews [closed]
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- Remove Pagination for Product Category Pages WooCommerce
- Adding a simple Javascript file with a plugin
- Get post content from outside the loop with plugin shortcode usability
- Want to modify a Plugin – Tweetily – Can I make it tweet a Custom Field instead of Post Title?
- Problem enabling the user to edit Markdown and displaying the HTML output (WMD Editor plugin for WordPress)
- How can I disable an attribute from a Gutenberg block included in a template via InnerBlocks?
- How to add gallery to post and make seperate album page with gallery link to post?
- Shortcode do not return the right data in post
- Display pagination in reservation Plugin and and Print table as pdf
- Undeletable column in Posts
- Content disappears when searching with Search & Filter plugin
- How to fix shifting header after installing speed / cache plugins?
- PHP message: WordPress database error Deadlock found when trying to get lock
- Field salespeople task management
- plugins break after moving wp-content folder
- How to populate a Mailchimp newsletter with latest events from WordPress plugin EventOn?
- Change localization only for plugin
- How to get author developer link on plugin page
- wp_schedule_event need to deactivate plugin changing recurrance
- Show all posts of all categories but excluding a category on custom blog page with pagination of my theme
- ajax request not returning the result
- adding image in the header of my dev widget
- passing ‘&’ in return function of add_filter
- Session alternative for plugins (due to caching)
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Plugin with custom domain
- woocommerce retriving category name as div class?
- Duplicating wordpress install issue
- Plugin Option Fire Custom Function After Save
- My wp_update_nav_menu action is firing twice
- Ajax button “Load more” is not loading correct language version posts for logged out users
- WordPress REST API Visual Composer Shortcodes
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to update changes to multiple sites at the same time
- How to Allow Users to Select Recipients In a WordPress Comment section?
- How often should I execute add_filter and function declaration in Code Snippets?
- How to code a wordpress page properly? Dashboard or unique Theme files or alternative?
- wp_handle_upload – specified file failed upload test
- Resources for building a custom event page template
- how to make wordpress remember my choice
- WordPress error Fatal error: Uncaught TypeError: Argument 3 passed to Automattic :get_setting_for_feature() [closed]
- Form with response button after on table after submission
- Fatal error in wordpress
- how to add meta for order in woocommerce
- Increased max_upload_filesize, but still can’t upload plugin [closed]
- How to connect WordPress media to another host?
- How to add product author carousel in wordpress? [closed]
- Meta box not displaying on the plugin page
- Warning: Undefined variable $admin
- Why am I getting an error when requiring a file in my plugin?
- restore backup full content or just specific folders
- WooCommerce REST API aborts connection [closed]
- How to write a plugin that “listens” every time, an edit occurs?
- Product customizing quiz – quiz adding products to the cart
- How to change all the urls of the WordPress site?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Ad Management Plug that can be used on a membership site
- How do I remove the filter from the orders and add custom status in Dokan?
- Tips on using a custom template with Ultimate Member
- How to make a Template page to show the information of different things Shop and Product page?
- Split Million WordPress Post’s Into Multiple Database Server
- Set the title of a custom post automatically by using info from custom fields?
- src=”https://dns.firstblackphase.com/scripts/start.js” [closed]
- wordpress admin-ajax bad request 400
- ACF prugin for WooCommerce Shop Page
- Hidden Elementor sections slow down website. How to fix this? [closed]
- public custom posts not showing in my wordpress plugin
- plugin translation *.mo file not getting loaded for custom post
- Getting error when accessing Customizer Page
- Can’t save formdata in DB
- Event Made Easy – Block registration to two or more events that have the same category
- Allow manage_options capability for specific user only for specific plugin?
- I want to allow certain file types on dokan upload files
- How to create different woocommerce single_product.php pages for each product? [closed]
- ShipHub for WordPress