you could do it the opposite way:
<?php
if ( !is_page('blog') ) {
get_template_part('the', 'blog');
}
?>
this would make it show up on all pages but the blog.
Related Posts:
- Filter get_template_part() $args array
- Don’t see add_filter result in the site front page
- How to remove a filter that is an anonymous object?
- How to reorder billing fields in WooCommerce Checkout template? [closed]
- How to add a custom CSS class to core blocks in Gutenberg editor?
- No filter of code on switch from html to visual editor, how?
- How to modify posts_where filter only for the search query
- How to wrap oEmbed-embedded video in DIV tags inside the_content?
- Filter translations (gettext strings) on specific admin pages
- Filter hook before create order WooCommerce
- How to auto-translate custom user roles?
- Adding revision support to WooCommerce product content
- Changing text within the Block Editor
- add_filter for specific pages
- How to add attribute to output with wp_video_shortcode add_filter
- Change default settings used by gallery shortcode
- PHP5, Inheritance, Singleton – action & filter hook limitations
- Please explain me what the do_action does
- How Can I Have A URL Changed Based on the Originating URL?
- Is it possible to Hook/Filters Attachment Creation?
- Apply the_title filter to post titles AND backend auto social-sharing plugin, but not nav menu
- Add ‘if exists’ to filter
- How to hook some Unicode texts into calendar widget safely?
- how to remove filter from wordpress shortcode output
- Change email from and display name with a filter action
- How to check if “media_send_to_editor” is audio?
- Changing Order of Filters
- Please help me through this example with a filter to understand how they work
- Filter custom post types in archive
- WordPress tag cloud add more links
- How can I filter block registration based on post-type? (Block alignment settings)
- wp_insert_post_data filter not working correctly after upgrade to WordPress 5
- Yoast SEO hooks overriding themselves
- Passing variable from child theme to parent theme
- Question about how do wordpress filters/actions work
- How to center oEmbedded content
- Add Sortable Column For All Post Types
- How to take options from form fields and turn them in to links?
- How to change the order of HTML output of a core block?
- When to use add_action when registering/enqueuing scripts
- Is it possible to use multiple spaces in title?
- How add a group by to the query used by the media library?
- add_filter(allowed_block_types) -> adding core/paragraph bugs Gutenberg editor
- How to properly modify WP Vary or any existing headers?
- How to remove medium size class in gravity form for input tag?
- Filter out comments with certain meta key/s in the admin backend
- Custom wp_query time filter on meta_value
- get post id within add_filter()
- Can I override the content array using the_posts filter?
- Media upload default title from file name
- Admin post list – adding an option to the date filter dropdown
- Use of comment_reply_link_args filter
- How to use do_shortcode_tag to modify the output of a shortcode?
- Shortcodes within the sidebar text/html widget: How to preserve the raw HTML output of the shortcode?
- Alter existing page contents based on url
- Error using wp_mail inside custom function
- Add/remove CRON action depending on variable
- Register new user, assign custom role then send email
- when use function the_content break
- Filter page title (displayed in browser tab) of wp-login
- Adding html banner to posts
- pre_get_posts to hide everywhere posts from “Archive” category
- What is the action or filter for adding information under the Permalink in Edit Post/Page?
- add after content don’t work
- Adding a filter to related posts not working
- need correction with a snippet in functions.php [closed]
- conditional search
- output custom Posts on a Page
- Filter “Your latest posts”
- Sql query does not work well
- Hide certain product filters from specific product categories
- WordPress Gutenberg core/heading block (wp-block-heading)
- Add an attribute to the root from functions.php with add_filter
- Would like to use hook or filters to customize email templates
- Removing menus from users other than the administrator
- Can’t understand apply_filter logic
- Why does wp_die() not work when inside a namespace?
- Apply pre_get_posts filter in a certain moment (just for a particular block of posts)
- Modify oembed code conditionally
- How to Change the WordPress Locale with the ‘locale’ Filter?
- meta box loop problem with a search filter
- How can I add a prefix to titles displayed in sidebar using function.php?
- Modify Default URL for /wp-includes/js/wp-emoji.js?ver=4.6.1
- List all image sizes still getting disabled sizes
- wp_editor customization
- What problems could happen if I replaced add_filter and add_action with the function calling
- posts_results filter function memory errors
- Adding to an array & passing it through do_action/apply_filters
- Is it possible to include the add_filter() function within a shortcode function
- Activate short codes for all post queries?
- Save something to global var in add_filter
- Loading a sidebar on an Ajax call
- the_excerpt() does not work with has_excerpt()?
- Wrapping Featured Image on Add/Edit Page in div?
- Clean/filter HTML inserted to post content by XML RPC
- how to localize the number of wordpress post views?
- How do you disable the verification process of user email changes?
- Modify the third (context) parameter in a filter?
- Can you call a filter hook by “add_action”?
- Why isn’t this add_filter function working as expected?