You should be using the “AND” operator, not “OR”
<?php if (!is_page('about-us') && !is_page('news-articles')) {wp_head();}?>
Because you want to display the WP head only if both conditions are true.
Related Posts:
- How to fix “Headers already sent” error in PHP
- What are PHP extensions and libraries WP needs and/or uses?
- How to get WordPress Time Zone setting?
- how to get page id of a page using page slug
- How to stop form resubmission on page refresh
- the_author_meta() vs get_the_author_meta()
- Displaying a WooCommerce product via PHP
- Enqueue Javascript Correctly for 3.5
- How to get the ID of an item in an audio playlist?
- Does wordpress allow me to add a php file to the root directory to execute custom scripts?
- Add footer.php to WordPress child theme
- how to display active, upcoming and past event with featured listing with pagination
- JS completely stopped loading but Files are found
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- Import 10,000 Users into WordPress WITH a specific ID for each user
- Include a Gutenberg Block in a PHP file
- do not show web page section when using advanced custom fields pro
- Restrict WordPress File Type Uploads by User Type
- How to slow down server response
- Click loads template via ajax
- Why isn’t the canonical link element used for all pages?
- WordPress Site front End and Back End Loading Slowly
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Evaluations of two wordpress security plans against php code injection attack
- Change the URL of an image from wp_get_attachment_image_src except in the frontpage
- Change Navigation Bar based on logged in or not
- What is an equivalent of single_cat_title for getting the slug of the category?
- Count the number of custom posts per user
- Second transition_post_status hook fired instead of the first
- getting logged in user info (wp-load.php) from parent directory
- How wp-cron can run in background if PHP is single threaded?
- How do I get post attachments in menu_order in WordPress?
- How do I add a custom css to all posts without affecting homepage css? [closed]
- Is_front_page inside header.php is always returning true
- Correct and safe way to include php content in my page
- Revoke Access to certain user roles and admin pages
- Adding `post_author` in php
- Advanced Custom Fields not displaying
- update_post_meta on multi-dimensional array options
- Counting Search results, and displaying the offset per page
- Exclude posts with specific metadata from search?
- Where is this function’s callback getting its arguments from?
- Using Argument from Function to Re-Direct Visitor (WordPress)
- email alert for product availability
- How to present a div only when the index.php is accessed for/by the single post pages
- Displaying list of posts in category page
- how can I include some custom variable from functions.php?
- WPDB – Read and write value from / to database
- Is it possible to add a custom page to a free WordPress site? [closed]
- Advanced Custom Fields [closed]
- Simple php in wordpress widget [closed]
- Assistance with elseif [closed]
- Function to call either single post or category
- search and add in wordpress content
- Updating Metadata with Shortcode
- Updated to PHP 8.0 and WordPress site not working
- Applying css in functions.php
- Are there any drawbacks on opening a session_start in functions.php and header.php?
- Setting up a cron job to auto update a custom field
- How do you measure the PHP generation time of your WordPress pages?
- Admin-ajax.php 404 error
- Change the “Show All” button in a WordPress Portfolio Filter
- How do I properly upgrade WordPress’s PHP within an OpenLiteSpeed GCP instance? [closed]
- ACF Gallery field images donwload
- Trying to retrieve meta values from three different meta keys and display in rows
- Cannot figure out how to add a read more link to a manual excerpt. Please help
- This occurs when I open admin or front on localhost
- Search only for posts with specific metadata?
- ACF background-color per post in a WordPress loop
- ajaxurl usage for a custom function
- oembed facebook link?
- Open/closed function [closed]
- Trouble with checked() for array of multiple checkboxes
- (Xdebug Profiler) Why are there two cachegrind files generated for one page?
- Is it possible to dupplicate a WordPress post with php?
- How to create a radio button to alt between settings in wp_options table
- I want to use wordpress database in android app using json encode?
- get_post_meta with variable
- if user is admin display admin link and logout link else display logout only
- site_url() returns with additional backslashes
- Adding instant search to wordpress page
- If Month=Particular month display content [closed]
- Name Input from widget displays Sidebar name instead of saved data
- WP multisite network plugin fails to see classes loaded with spl autoload
- Change order that the menu is generated with wp_list_pages
- Using variables as href in anchor tags (PHP) [closed]
- What’s the .php file which generates the Custom Background page in the admin panel?
- Parse error: syntax error, unexpected ‘else’ (T_ELSE) [closed]
- Code working in functions.php but not pluign for gavity forms
- Change an option string to a function [closed]
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- get_body_params() is always empty in POST request
- Warning: Attempt to read property “term_id” on int – Woocommerce
- Headers already sent error with get_template_part in REST API call
- How to fix wordpress after update to php 8.1?
- How to translate the blog date in the Avada theme [closed]
- Variable ++ in query loop
- Generate and upload screenshot as featured image for user-submitted post
- How can precision be improved for the debug log timestamp?
- AJAX WP_Query’s order and orderby parameters not working