At the top of the loop in your page.php of your theme. Add the following condition:
if (get_the_ID()==$my_id) {
exit;
}
Related Posts:
- Accessing $post variable from template part
- how to show all post in my page-grid.php template page
- How to create a template for Pages?
- posts not showing on index.php
- How to identify and hide/remove an element from a WordPress page [closed]
- How to Featured content with images in home page?
- Post/Page Preview Template
- Setting a custom sub-path for blog without using pages?
- How to get Images included in Post
- Forcing oembeds to top of post
- Use template of parent category for single post sub-categories
- loop not displaying posts on custom template page
- Including text at the end of every post
- custom single.php not working
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- How to display different single post template based on author?
- How only display all post related to category
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- Submitting POST data to a custom page template triggers a 404, why?
- Display page content AFTER a loop of posts
- Different template for posts of all subcategories of category
- Custom Post Templates
- Single post as homepage?
- Templating of a specific post ID
- Creating a Page of Posts
- Dynamically generate child-URLs for posts or custom posts
- Category Template: Need to display different content on first page of archives
- Change post_date to post_modified date on post template?
- What part of template to edit to remove category name from the top of posts?
- How can I pass the ID of a post to a page template by clicking a url?
- How to display posts on a static page? (like search loop)
- Setting posts_per_page for taxonomy term template
- Send post id through ajax and get the post content back
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- how to show single post in a custom template
- custom post template file not shown, instead all the time 404.php
- How to create new post content templates for my users?
- How do I stop the loop from repeating in my category template?
- Page template is accessing the incorrect posts?
- Proper way of establishing custom landing pages in WordPress
- Tell WP to use a specific template file in posts
- How to make different custom post layouts?
- Why won’t pagination work?
- Is it possible to give the user the chance to select between two single template files to use in a post?
- Create a custom posts page
- wordpress posts template remove default template from menu
- Force a specific template as default
- Custom Articles page only showing a limited number of posts per page
- Give posts a particular template based on the assigned category
- Single post full screen template not inheriting WordPress role permission
- List all native posts in template page?
- Sidebar on single.php not showing up
- Post Templates and Post ID’s
- How do I disable the “by author” hyperlink on posts?
- Find out in which kind of archive am I
- Trying to query all posts in category 4
- Output Buffer Issue with Single Post View
- add_rewrite_rule and template redirect not working
- WordPress single.php different layouts projects / posts
- Prevent 404 of Author pages without posts
- How do I apply a template to my single posts?
- Custom post type and taxonomy page templates
- How to save template data into wp_post table (post_content column)
- How to create custom post page in WordPress?
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- Related post not showing table of content
- Post not using taxonomy template
- Why does my “Add New Post” page have an old post in it?
- How to show WP admin edit page within template page/post?
- Single Sidebar; multiple templates! How?
- How to Display Most View Post in the template file?
- Page Template Drop down disappears when static front page is selected
- Is it possible to query a category with specified posts?
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Custom post type template not called
- Page 2 has no posts?
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- How to change post template via url?
- how to remove entry meta from wordpress archive category and change its display
- My blog “page” used to show a list of posts, but now it’s just showing the page content?
- Custom template for different post types
- Adding The Post Template Dropdown to WP-Admin
- Posts page template: How can I edit the markup for this?
- How to arrange different post categories in template
- How can I change the look of a post as is displayed
- Make a custom URL and link to custom Template
- Which hooks are essential for post templates?
- Display the first post’s comments of category in comments.php template
- 1 post, 2 templates
- How to display a certain template element only for posts published within certain time range?
- Redirecting posts in WordPress to a specific page
- Creating / Editing a post from within site template
- custom post type single page template not working
- WordPress “Posts Page” isn’t showing template dropdown
- How do I create a template page to show 3 blog posts?
- How to add a new page that will function as a separate blog/news article page
- excerpt in template for specific page
- Is there a block to print post link standalone in a block theme?
- How can I locate the single buddypress forum post template? [closed]
- Is there a way to change the default post template selection for a specific category?