Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
check if post id exists wordpress
Noah
Programming language:
PHP
2021-02-21 16:53:59
0
Q:
check if post id exists wordpress
Peyman mohseni kiasari
Code:
PHP
2021-02-21 17:02:53
post_exists(get_the_title($postID)); //returns $postID or 0
0
Tags
check
post
word
Related
wordpress query a post by id
how to get custom post type data in wordpress
wpml get translated post id
wordpress get link to post by id
get wordpress id
get post index wordpress
wp get post content by id
get_the_id wordpress
check if custom post type exists
wordpress get post by id
New to Communities?
Join the community