try this
<?php if ( (! is_page_template('modelPages.php')) || (! is_archive()) || (! is_single) ) { ?>
Think your ‘not’ ! is causing the issue.
btw, you could move it to this
<?php if ( !( is_page_template('modelPages.php') || is_archive() || is_single() ) ) { ?>
Related Posts:
- Best Practice for PHP
- Adding “Remember Me” in custom login
- Using wp_send_json to return HTML
- WordPress URL Rewrite not working
- Add post class to the TinyMCE iframe?
- How to remove a metabox from menu editor page?
- Bypass .htaccess when using download_url
- wp_remote_get returns an error for valid URL
- Install will not load: PHP does not have MYSQL installed
- Constructing a custom login form using ajax
- Error when requesting password reset email – wp authentication
- How to do conditional publishing?
- New Plugin Review
- Create custom blocks for bootstrap
- How to get the post_id from postmeta
- Adding code to child theme functions.php to override parent theme behaviour doesn’t work
- Anyone can register via backend
- Preferred Method of debugging a wordpress SQL calls?
- Displaying NextGen Gallery using value from meta not working
- Taxonomy linked to pages
- Checking for new message using AJAX and PHP. Server overload?
- WordPress Scheduled Event Request Blocking
- jQuery not defined
- dynamic page in WordPress
- How to use my style.css file outside of wordpress subdomain?
- How to sort posts based on the value (number) of a post’s metadata?
- Pagination of custom mysql in wordpress
- Automatically create child pages and grandchild pages when saving a (parent) page
- WordPress wpform plugin submit and get multiple checked value from checkbox [closed]
- How to add an arrow to menu items has submenus
- Is it possible to create a wordpress database with php code?
- Script to browser problem PHP
- wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu
- Trying to get a PHP variable defined in a custom post into a javascript file. Null value. Using wp_localize_script
- How to retrieve the sender email with wp_mail()?
- WordPress update_post_meta updating with empty meta_value field [closed]
- Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3
- Non-Closing PHP Query in WordPress Loop
- Converting Y-m-d to a date with a Month name? [closed]
- Is it save to use eval for a jQuery callback method coming from the database?
- Need oop for wordpress theme? [duplicate]
- Display Youtube Time Automate from Key
- What is the best way to define constant options for a theme?
- An audio player that showcase a random song from playlist every 24h [closed]
- Use value from Ajax call in PHP function
- extract serialized array to use for wp-query
- Help Fallback (thumbnail)
- PHP Contact form
- How to use `wp_insert_post()` and `get_permalink()` functions?
- Image Attachments of an Array into Flexslider
- save metabox with new values _wp_page_template
- ACF Unexpected T_CONSTANT_ENCAPSED_STRING [closed]
- get_template_part function and add images
- Need advice on theme customizer and child themes
- How to make sure relative URL works when site is not on root domain?
- xmlrpc how to check for errors
- Migrating site, only header shows
- display sticky post outside loop and exclude from loop
- remove specificly the last tag in all posts
- Change image data durgin upload
- How to hide a child category and show his parent category
- PHP Warning: exif_imagetype
- How to detect and handle the time difference between server and user in WordPress?
- error in my request with meta_key and meta_value
- Posts title instead of Pages and Category titles – PHP WordPress
- Getting an error when my plugin is updated, but the files update correctly
- How to change PHP variables with AJAX request in WordPress
- If Statement is Ignored?
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Remove span tags from WooCommerce Downloads page
- Split post or page content in two or more columns
- Edit woocommerce_product_archive_description using hook
- Allow specific user to edit a specific page
- Use Post ID in functions.php
- How to create loop inside wordpress function?
- Adding PHP to an if else loop
- include javascript Multiple files in wordpress through script.js
- Creating a custom register form
- Display only upcoming events / Show all events when archive year is selected
- Website is loading with corrupted data once a while [duplicate]
- get_users when from meta key that has serialized values
- PHP Warning:fread(): SSL: Connection reset by peer in /var/www/html/wp-includes/class-wp-http-streams.php line 269
- Passed variable gets undefined variable error on insert on next page
- How to set up an auto delete post?
- Editted Theme Files Get Updated/Reverted Every So Often
- Display a post based on its metabox selection
- search results based on categories or custom fields
- WordPress Setting page can not be saved by html radio
- Calling the Next category link on an archive page – WordPress
- Custom action on comment post
- If I define a variable in header.php, how do I make it available to templates?
- How to add together (get the sum) a field from all author’s posts
- two body tags on all WP pages regardless of theme
- Load php function with AJAX on modal window
- Display biography post for today’s birthday person
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API
- Convert custom field date format to “WordPress default”
- Woocommerce Convert existing order to the cart
- Execute function when I click button
- links Slick jS library using wp_enqueue_scripts not pulling