Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include_once( 'acf.php' );
- define( 'ACF_LITE', true );
- function create_posttype() {
- register_post_type( 'menyside',
- array(
- 'labels' => array(
- 'name' => __( 'Menysider' ),
- 'singular_name' => __( 'Menyside' )
- ),
- 'public' => true,
- 'has_archive' => false,
- 'rewrite' => array('slug' => 'meny'),
- 'supports' => array( 'title', 'editor', 'comments', 'excerpt', 'custom-fields', 'thumbnail' ),
- )
- );
- }
- add_action( 'init', 'create_posttype' );
- add_action( 'plugins_loaded', array( $this, 'acf_fields' ) );
- add_theme_support( 'post-thumbnails','menyside');
- if( function_exists('acf_add_local_field_group') ):
- acf_add_local_field_group(array (
- 'key' => 'group_56b90ec45265a',
- 'title' => 'menufields',
- 'fields' => array (
- array (
- ...... (continued, data from PHP output from ACF)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement