The post ID.
It’s not possible to say any more without more context. If I had to guess $post
in this case is a WP_Post
object that represents the current post and the author of the post wants to get some posts while excluding the current post. Just be aware that doing so this way is typically a bad idea.
Related Posts:
- Get page ID of page that is set as the posts page
- Are post ID’s reliable?
- Get current post id in functions.php
- get all posts ID from a category
- Get the current post ID as a variable in Javascript
- Is post ID number always incremental n+
- Are all ID’s used unique?
- $post->ID displays wrong ID
- At my posts archive page, outside the loop, get_the_id() returns the top most post’s ID
- Showing random content / pictures from earlier posts in a sticky post?
- Get the post_id of a new post
- get post id in while loops outputting page id
- How can I display a specific user’s first published post?
- Undefined variable post_id in custom quick edit coloumn
- Getting post id from wp_insert_post_data function?
- Does an article (post) id ever change?
- How to get the post’s parent ID?
- Can a page_id and a post_id be same?
- Is there a better, more efficient way to get the post id outside the loop?
- Getting current post ID in functions.php
- Buddypress activity id
- How blog page in WordPress works : blog page retrieve first post ID
- Post-ID in url differs from $post->ID
- Why is my Blog Page ID == First Post ID?
- current post with current author
- Is it possible to change post id for an already added menu item in WordPress?
- Get ALL post ID’s export list (Only id’s. Php or sql not important )
- How to get next post ID?
- Search results posts_orderby and ID
- Retrieve post ID from “querying” URL
- How to get a post’s content? [closed]
- obtain the author id given the post id
- How to get ID of the page included with get_page()?
- How to I retrieve the ID from the Posts page?
- Crazy Question – Updating Post ID
- Why I can not I use the variable outside my function?
- retrieve the oldest post id
- WP_Query custom field pass the post id
- Accessing Post ID Within Loop
- How do post IDs work in WordPress?
- Are post, page and category IDs unique to each other?
- The loop starting at a certain ID
- linking to post outside the loop
- Widget to show posts in the sidebar basing on its IDs
- Get a post’s ID
- Making posts permalinks consistent numbers
- How to get post id of last approved comment?
- How to get the post id (of the parent custom custom type) in a loop inside a widget?
- Get post slug and match with menu item slug to change css
- WordPress Post ids big increment
- Reuse old post ID for new post after deleting post
- Get post attachment with post id
- How can i take all ids from untrash_post action?
- How do I apply a wordpress function to something with no ID inside an archive page?
- Get from the dashboard the ID of the current post being edited
- Only get post_id [duplicate]
- Surrogate ID for posts, is there an alternative field in the posts table?
- Is it possible to have dynamic post id # in add_menu_page()?
- Using Post ID and Page ID in same function
- unused post IDs
- Custom post page has attributes of latest post [closed]
- Can I get custom post items in select box (dropdown)
- View post with specific category id and name which I selected in the backend (drop-down option)
- How to get post ID after removing that post?
- How to change all the guid in posts table?
- “coming soon” placeholder blog posts?
- Restore contents of deleted user
- How do I reorder (pop and push) items from WP_Query?
- Count posts in category including child categories
- Hiding posts from non logged in users
- database columns: post_title vs post_name
- Autoremove empty custom fields
- Group posts by year in loop
- Checking is user author of number of posts?
- get_next_post() and get_previous_post() return wrong posts
- Should I use posts or pages in this scenario?
- Distinguish between publish and update? [duplicate]
- Display posts from a different website on Genesis Responsive Slider
- Query Posts With Over 1000 Views
- redirect to uploaded (wordpress) post after form submission from front-end
- Where do wordpress posts go?
- How to add the time of a post to the list of posts on the administration page?
- my post slug gets really long and I can’t change it
- Display specific posts on home page
- How do I display main query posts in random order using add_filter
- How can I display the last updated post with the author, the created date, and the modified date on one line?
- How do i bring out post category name in my widget?
- Passing values via an Ajax querystring
- How can I stop ‘in use’ message from intermittently blocking my wp_posts table?
- Get Categories & Posts With Type Article
- My post permalinks are always the same
- Set multi posts random categories and tags
- How can I set and update the the_date according to a custom field of the post
- Adding editable content above posts
- Post not showing up sometimes on website
- Extra field in wp_post instead of postmeta
- Same sidebar in all posts as in the category
- Update Post with Modified Data
- How can add custom commands in post-new.php in wordpress
- How to move all images in a post to a single gallery for a bunch of posts?