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

February 28, 2017

Clear all

Warning: Cannot modify header information - headers already sent by (output started at /home/u797196687/public_html/wp-content/plugins/google-analytics-dashboard-for-wp/front/tracking/code-universal.php:21) in /home/u797196687/public_html/wp-content/plugins/wppush-push-notifications/WPPush.php on line 274