I’m not certain, but if you’re talking about $_post as seen here:
http://codex.wordpress.org/Function_Reference/in_category
It’s referring to a post ID so they’ve probably added the underscore to avoid confusion. The $post variable is a post object with all the details of the post.
However, $_POST is a global PHP variable containing all the values sent from a form:
Related Posts:
- How to pass a variable to get_template_part that’s updated every time the template part is called?
- Custom Taxonomy Link Text Echo Name Not Slug
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- Checkbox doesn’t stay checked, conten
- post thumbnail, conditions, else wont work
- Widgets in the loop if active
- List posts that don’t have a specific tag?
- Changing the_posts_navigation() html output
- Can we count the WordPress Loop
- Get post id within comments loop
- Syntax error when I try to insert my loop into an unordered list? [closed]
- WP_Query fails despite having 1 post
- Variable not staying set
- Add content after the first post in WP Loop
- wp_query get the 2nd post
- Loop stopped working
- How to get post ID in a Page?
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- Custom Pagination is Broken
- Display an image if odd number of posts in grid
- How to loop through all the attached images in a post, and get their url one by one
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- PHP Warning: strip_tags() expects parameter 1 to be string?
- WordPress function and string as variable?
- Assign custom parameter to each post in query
- Create a WordPress shortcode using PHP [duplicate]
- Store post content in a php variable and output them using for loop
- How to add div blocks after certain set of post
- How to pass a PHP $_GET variable and fetch/output it?
- Echo a shortcode div after every 3 posts
- How to avoid duplicates when creating recent network posts
- Creating WordPress Shortcode with Variable
- How to overwrite orderby with add_query_var
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- Why in my theme I can’t see all the statics content under the posts?
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- How to put a form with php code into a variable or shortcode?
- Is the 404 page automatically displayed if a loop returns nothing?
- How do I remove a category from a wordpress loop>
- Apply class to every third list item? [duplicate]
- variable value disappears in a second loop
- persist a variable set in header.php all the way down to footer.php
- Last class on last headline?
- Show recent posts starting at a specific number archive
- Get access to variable from previous pageview, excluding ajax-calls
- get_the_ID() in the footer returns wrong value
- How to get the last category name of a child category?
- How to deal with too many $_POST variable conditions from ajax request at backend? [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- WordPress query undefined offset in loop
- What is the alternative code to if (isset ($_POST) && !empty ($_POST) to avoid warnings?
- How to unlink all posts from tracking same amount of views
- Insert page content into another page with a changed variable
- Pass Variables or Variable Place-Holder from Editor to PHP
- Issue with custom loop in Archive page
- How to access or parse key/values that have “string”
- Why my loop isn’t working? [closed]
- WordPress loop by meta key that is an array? and how loop multiple arrays
- Only show first image in foreach loop
- use loop to return blog details
- How to get current post category details inside “loop”?
- How to pass current loop data into nested loop
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- Get all posts as an array ID => Name
- Changing the order of custom fields in the dashboard for Woocommerce variable products [closed]
- How to get post ID from button and pass title to Modal
- javascript variable to wordpress php variable
- WP Query Leads to 502 Bad Gateway (Timeout Because Query Takes Too Long)
- home.php show blog posts as grid view
- Problem with custom loop and wp_list_pluck [closed]
- WP_Query multiple post results
- Convert Featured products loop into Recent products loop?
- Wpdb get->results to out the the month from the db
- How to add post meta in while loop?
- Echoing a CSS class based on category of post in a list
- Display child page content of a specific parent on home page
- How to reference PHP in Javascript
- Do not duplicate posts with multiple categories in multiple loops
- Calling function in loop causes repeat data
- Infinite Loop – WP_Query
- Posts are not looping through correctly
- Store and Change Session variable – PHP SESSION VARIABLE
- Overide Variable in Child Theme
- How to wrap every 3 posts in a div (and close the last div too) [closed]
- Dividing the loop to style post differently
- echo var into wp_query
- how can I include some custom variable from functions.php?
- Dynamically adding filters
- Limit tags shown in post
- WordPress call post-ID in jquery
- How to Generate a list of Most Commented post?
- How to extract information from a wp_query result?
- How to pick “full/thumbnail” images in the loop?
- Create Div Wrapper On 3rd Iteration Or When Query Loop Items Run Out
- How to Fix an Archive.php That Displays All Posts?
- WordPress loop is not working
- Echo array value
- List all anchor links on a page
- Php code error in wordpress if else statements [closed]
- First post article different on Archives template