Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
check if custom post type exists
user28665
Programming language:
PHP
2021-06-19 00:20:37
0
Q:
check if custom post type exists
Toby Mak
Code:
PHP
2021-06-25 19:51:31
post_exists(get_the_title($postID), '', '', $slug_post_type); //Returns $postID or 0
0
Tags
check
type
post
Related
check backend post type
wp+get tags for custom post type
wp+create custom post type and category
custom post type with taxonomy
pre_get_posts custom post type archive
check if post id exists wordpress
custom post type
get name custom post type wordpress
wp_query get custom post type
how to get custom post type data in wordpress
display custom post type
New to Communities?
Join the community