Jump to content
Lizard Wizard Coding Club

sergi

Member
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About sergi

  • Rank
    New member
  1. so glad to know about the missing "{". This whole thing is bringing to light my confusion between CPTs (custom post types) and taxonomy. I've been considering them as inseparable. Am I correct? This is my aim: I have a 2 main categories: Video and Magazine. Furthermore, Videos are either Fiction or Non-Fiction; and Magazines are either Comedy or Drama. Should my code attempt the following: create a CPT for Movies w/ a taxonomy for Comedy and a tax. for Drama? And in addition, create a CPT for Videos, w/ a tax. for Fiction and a tax. for Non-Fiction? Let's say the answer i
  2. Ah! Well, worst comes to worst, I'll use Custom Post UI plugin. But I'm really interested in figuring out how to accomplish multiple post types. Appreciate any insight you have into this dirty work. <? /* create custom posts *** mags */ add_action('init', 'create_mags'); function create_mags() { $labels = array( 'name' => __( 'Mags' ), 'singular_name' => __( 'Mags' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add New Mag' ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit Mag' ), 'new_item' => __( 'New Mag' ), 'view' => __( 'View Mag' ),
  3. In the WordPress video on Custom Post Types, Ben teaches us how to create a custom post type of Products. It's easy enough to have 2 custom post types by simply using add_action then register_post_type. However, I can't seem to replicate the other features he add to that custom post type: the inpu, the taxonomy and the columns. this is the point at which things start to break: function video_options() { global $post; $custom = get_post_custom($post->ID); $length = $custom['length'][0]; echo '<label style="padding-right:40px;">Length:</label> <input name="length
  4. yeah, this is what ended up working: add_theme_support( 'post-thumbnails', array( 'post', 'video', 'magazine' ) ); thanks!
  5. my theme supports post-thumbnails. they work when i am adding a post. however, i don't have the option to add them when i'm creating a Custom Post Type. i've completed Ben Falk's Custom Post Types videos, but I'm using Coyier's Blank Theme, not twentyten. still, I have the array that should allow the thumbs to work in my register_post_types funtion, e.g., 'supports' => array('title', 'editor', 'thumbnail') Anyone have any suggestions? Thanks Sergi
×
×
  • Create New...