Convert With Custom Post Type

I think all you’d need to do is change the WP_Query from $catquery = new WP_Query( ‘cat=” .$category_id. “&posts_per_page=100’ ); to $catquery = new WP_Query( ‘post_type=property&posts_per_page=100′ ); This assumes your new custom post type is registered as “property” (lowercase) – if you registered the new post type using ‘Property’ or ‘properties’ use that instead. UPDATE … Read more

How to output and alert message when updating a post

I have developed functionality which is check duplicate value for specific post meta value exist or not on update post. when user update data and if find any record then give a error message in admin dashboard(see attached screenshot). you can use below code according your requirement. class Check_duplicate_entry { public function __construct(){ add_action( ‘save_post’, … Read more