Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
- function enqueue_child_theme_styles() {
- wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
- wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') );
- }
- function create_posttype() {
- register_post_type( 'spotlight',
- array(
- 'labels' => array(
- 'name' => __( 'Spotlight' ),
- 'singular_name' => __( 'Spotlight' )
- ),
- 'public' => true,
- 'has_archive' => true,
- 'rewrite' => array('slug' => 'spotlight'),
- 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),
- )
- );
- }
- add_action( 'init', 'create_posttype' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement