How to create a custom post type in wordpress ?
We often need to add a new post type in WordPress beside the POST and PAGES menu. Below is a sample PHP code below to write in the theme or plugin function file. add_action( ‘init’, ‘create_posttype_qr_code’ ); function create_posttype_qr_code() { register_post_type( ‘ogpqrcode’, // CPT Options array( ‘labels’ => array( ‘name’ => __( ‘QR Code’ ),…