Home / Tag Archives: Custom Post Type in wordpress

Tag Archives: Custom Post Type in wordpress

How to Creating a Custom Post Type for product, slider, portfolio or News Sections in wordpress or Woocommerce

custom_post_type

Copy and paste the code in functions.php function my_custom_post_product() { $args = array(); register_post_type( 'product', $args ); } add_action( 'init', 'my_custom_post_product' ); <?php function my_custom_post_product() { $labels = array( 'name' => _x( 'Products', 'post type general name' ), 'singular_name' => _x( 'Product', 'post type singular name' ), 'add_new' => _x( …

Read More »
0

December 10, 2016

Clear all