wordpress get all post of post types code example
Example: wordpress get post type
// Retrieves the post type of the current post or of a given post.
get_post_type( int|WP_Post|null $post = null )
// Retrieves the post type of the current post or of a given post.
get_post_type( int|WP_Post|null $post = null )