If there is only 1 post showing up in your page, you could use the the_title()
filter to hide the title.
The simplest way would be this:
function hide_my_title( $title, $id = null ) {
if ( is_single( 2 ) ) {
return '';
}
return $title;
}
add_filter( 'the_title', 'hide_my_title', 10, 2 );
This will hide the title when you are viewing the post with an ID of 2. Notice, this might also hide the title for another posts if some elements such as related posts are being used on this page.
Related Posts:
- Please I want to prefix my WP posts title according to each category
- Displaying Page Title on index.php
- Animated gif for a thumbs
- Posts vs. Pages
- Post titles and thumbnails as links to custom post types?
- Change modified date to current date when title updated automatically
- How to add a custom class attribute into code wrapper? [duplicate]
- Post title not displaying as recorded in the wp_posts table
- Include Recent Post in Category
- long-title posts do not want published
- How to delete/customize imported demo content from a theme or add my own?
- My posts page is missing the page title
- Custom Post Title as search term
- Automatically delete default posts and pages on theme install?
- Deleting first four characters from all Post Titles
- How remove “recent comments” title without modifying code? [closed]
- Title displaying multiple times
- Edit Page button is gone
- How to set something to added automatically to the post
- Is it possible to create dynamic templates for block themes directly from the site editor?
- Show custom post category for single post
- How can change header text in post careate/edit form
- How to get meta data from custom category name
- Add Categories To Custom Post
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- how to redirect page after delete post inside a post page?
- Permalink base only for posts
- Can the_post_navigation() be outside of the loop?
- Custom post type – Loop out in random order but same 15 to appear first… still random
- Custom post type template not called
- Difference between modified post and new post
- Displaying dynamic content (blog posts/portfolio) on a static homepage and keep the blog post styles
- How to use Categories of custom post type
- Append a random string to a post permalink
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- Creating widget – ask for selecting a post in the admin panel
- Multiple Custom Post Type loop logic
- WordPress search for specific Post Type
- Show Posts By Custom Field
- Hide title in Merlin Theme on posts and pages only
- issue in wordpress auto delete post and redirect to another 1
- Static text above category page
- How can you control what a user is allowed to post in the backend?
- wp query custom orderby not custom field
- How can I choose and change a post title at random from an array when it is published?
- Custom Post Type doesn’t use single.php or single-{custom_post_type}.php
- Customizing individual images on posts
- Hook To Get All Posts Deleted
- How to show content of specific item on the same page?
- Post title to show all characters after having it limited for preview
- Display tab title as ‘blog tagline | blog title’
- How to retrieve custom field values and save again as array
- Meta boxes not saving
- Custom Select Query pagination not working properly
- Custom Single Post Type not referring to single-post-type.php File
- Custom URL Structure for posts with subcategories
- Help with a function that will place a map pin for all posts
- How to list all names and descriptions of a custom taxonomy
- Add Image Before Posts Entry Title
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- How can I have the posts from one word press blog show on the presentation page of another word press site
- Customize search results to include custom posts and display in a specific template page
- Custom permalink based on custom post type fields
- How to modify specific parts of a post content in WordPress
- Include post on external custom site
- How to show the posts list into a static page? Problems to use the loop into a static page
- Save/retrieve form data best practises for theme development
- Get new post meta data when (custom) post is saved
- Run Jquery Script after delete post in front end
- How do I control the fallback query after the original query returned cero posts?
- Checking if some condition is matched before inserting post into database
- Adding The Post Template Dropdown to WP-Admin
- wordpress paginate, link to the right page
- Allow users to create their own page/s
- prevent same wordpress post title
- “Current” class on a singular page menu item with custom post types?
- Latest Posts not in the right order
- 404 for some custom taxonomy not ALL taxonomy
- Get post title by Alphabet
- Given two custom post types: Automatically add meta fields from one custom post type to another
- How to only allow post to be deleted if custom field doesn’t exist
- Display metabox with date
- Show a Category Specific Info Box
- Successive creation of over 1000 posts causes 404?
- Issues with Post 2 Post Plugin
- Get post title of faulty link on 404 error page
- Make a custom URL and link to custom Template
- How to get all post titles starting with numbers and symbols?
- wordpress taxonomy results
- How can i retrive the movies, trailers, news in a single page using search
- Special Query: Title, Terms, Content – %LIKE%
- How do I get the WordPress post to display the content instead of an image?
- Is it possible to have different header style blog titles in different categories?
- Add default content to post (for specific category)
- How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)
- Setting default category for display
- Choose options via url
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- Is there a way to separate wordpress titles from their posts?
- adding custom meta as well as looping through posts