webdev.ramyash@gmail.com

Web Development: January 2018


PHP, MySql, JQuery, Ajax,Wordpress,Woocommerce,HTML,CSS,JavaScript,DOM,jQuery,PHP,SQL,XML,Bootstrap,Web

Thumbnail support custom post type wordpress.





Create custom post type wordpress

<?php
function create_post_type() {
  register_post_type( 'test_posttype',
    array(
      'labels' => array(
        'name' => __( 'Test' ),
        'singular_name' => __( 'Test' )
      ),
      'public' => true,
      'has_archive' => true,
      'rewrite' => array('slug' => 'Test'),
    )
  );
}
add_action( 'init', 'create_post_type' );

?>
Create custom post type wordpress

Get theme path in wordpress.

<?php
 echo get_template_directory_uri();
 ?>

Get theme path in wordpress

Display Menus on Theme in wordpress.

<?php
wp_nav_menu( array( 'theme_location' => 'test' ) );

?>


Display Menus on Theme in wordpress.