'slidelink', 'title' => 'Slide Link', 'page' => array('slides'), 'context' => 'normal', 'priority' => 'default', 'fields' => array( array( 'name' => 'Slide URL', 'desc' => '', 'id' => 'fsiu_slideurl', 'class' => 'fsiu_slideurl', 'type' => 'text', 'rich_editor' => 0, 'max' => 0 , 'std' => '' ), array( 'name' => 'Slide Caption', 'desc' => '', 'id' => 'fsiu_slide_caption', 'class' => 'fsiu_slide_caption', 'type' => 'textarea', 'rich_editor' => 1, 'max' => 300 , 'std' => '' ), array( 'name' => 'Select', 'desc' => '', 'id' => 'fsiu_upload_button', 'type' => 'button', 'std' => 'Browse' ) ) ); public function __construct() { $labels = array( 'name' => __( 'Slides', 'fsiu' ), 'singular_name' => __( 'Slide', 'fsiu' ), 'add_new' => __( 'Add New Slide', 'fsiu' ), 'add_new_item' => __( 'Add New Slide', 'fsiu' ), 'edit_item' => __( 'Edit Slide', 'fsiu' ), 'new_item' => __( 'New Slide', 'fsiu' ), 'view_item' => __( 'View Slide', 'fsiu' ), 'search_items' => __( 'Search Slides', 'fsiu' ), 'not_found' => __( 'Slide', 'fsiu' ), 'not_found_in_trash'=> __( 'Slide', 'fsiu' ), 'parent_item_colon' => __( 'Slide', 'fsiu' ), 'menu_name' => __( 'Slides', 'fsiu' ) ); $supports = array('title','thumbnail'); $post_type_args = array( 'labels' => $labels, 'singular_label' => __('Slide', 'fsiu'), 'public' => true, 'show_ui' => true, 'publicly_queryable'=> true, 'query_var' => true, 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => false, 'rewrite' => array( 'slug' => 'slides', 'with_front' => false ), 'supports' => $supports, 'menu_position' => 64, 'menu_icon' => get_template_directory_uri() . '/assets/img/gallery-icon.png', 'taxonomies' => array() ); register_post_type('slides',$post_type_args); if( is_admin() ) { add_action('admin_menu', array( &$this, 'add_fsiu_meta_box') ); add_action('save_post', array( &$this, 'fsiu_save') ); } } public function add_fsiu_meta_box() { foreach($this->fsiu_metabox['page'] as $page) { add_meta_box( $this->fsiu_metabox['id'], $this->fsiu_metabox['title'], array( &$this, 'fsiu_box'), $page, 'normal', 'default', $this->fsiu_metabox ); } } public function fsiu_box() { global $post; //global $wptuts_prefix; global $wp_version; ?>
The flex slider is displayed by putting the [flex-slider] shortcode in any page or post.
The dispalyed flex slider will display all of the images you have uploaded
The maximum height for images in the slider is 300px.
If you intend on using captions images must be 300px high by 600px wide.
If you are NOT using captions make sure the height and width are consistent on all of your images. (or it will look silly)
Crop and scale your images using the Media Library
|
|
||
|
|