Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slide Links and Title #119

Open
dannymichel opened this issue Oct 25, 2012 · 0 comments
Open

Slide Links and Title #119

dannymichel opened this issue Oct 25, 2012 · 0 comments

Comments

@dannymichel
Copy link

I'm not much of a coder at all, and for the past 3 days, I've been trying my damndest to add links to the slider image, the ability to chose which 'the_post_thumbnail size I want the slider to use, and a title to each slide. I can take care of the CSS, but I was hoping someone could help me add the rest.
Thanks in advance for any help.

function slides_register() {

$labels = array(
    'name' => _x('Slideshow', 'post type general name'),
    'singular_name' => _x('Slide', 'post type singular name'),
    'add_new' => _x('Add New', 'slide'),
    'add_new_item' => __('Add New Slide'),
    'edit_item' => __('Edit Slide'),
    'new_item' => __('New Slide'),
    'all_items' => __('All Slides'),
    'view_item' => __('View Slide'),
    'search_items' => __('Search Slides'),
    'not_found' =>  __('Nothing found'),
    'not_found_in_trash' => __('Nothing found in Trash'),
    'parent_item_colon' => '',
    'menu_name' => 'Slides'
);

$args = array(
    'labels' => $labels,
    'public' => true,
    'publicly_queryable' => true,
    'show_ui' => true,
    'show_in_menu' => true,
    'query_var' => true,
    'rewrite'   => true,
    'capability_type' => 'post',
    'has_archive' => false,
    'hierarchical' => false,
    'menu_position' => 7,
        'rewrite' => array(  
        'slug' => 'slideshow-item',  
        'with_front' => false,  
        'feed' => true,  
        'pages' => true ),
    'supports' => array('title','editor','thumbnail', 'excerpt')
  ); 

register_post_type( 'slides' , $args );

}

add_action('init', 'slides_register');
http://pastie.org/5112480

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant