Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter moatmtn

    (@moatmtn)

    Hi again, Mark.

    Once more, thanks for pointing those errors out. I despise bad code, so I went in and cleaned everything up.

    Cheers!
    -Steve

    Thread Starter moatmtn

    (@moatmtn)

    Mark,

    Thank you! That worked like a charm!!

    You’re far too kind, by the way. And while I appreciate the delicacy with which you point out errors in my code, I am enthusiastic about learning, so please feel free to point them out if you have time…I have NO ego when it comes to this stuff. I just want to learn.

    Again, many, many thanks! Hope things are good in England.

    Cheers,
    Steve

    Thread Starter moatmtn

    (@moatmtn)

    I jumped the gun! Can’t get the re-added meta_box to recognize the taxonomy. Here’s my code:

    // Register deeds (Activity) post_type
    add_action('init', 'deeds_register');
    
    function deeds_register() {
    
    $labels = array(
    	'name' => _x('Activities', 'post type general name'),
    	'singular_name' => _x('Activity', 'post type singular name'),
    	'add_new' => _x("Post Today's Activity", 'add new post type name'),
    	'add_new_item' => __("Post Today's Activity...They're Waiting"),
    	'edit_item' => __('Edit Activity'),
    	'new_item' => __('New Activity'),
    	'view_item' => __('View Activity'),
    	'search_items' => __('Search Activities'),
    	'not_found' =>  __('Nothing found'),
    	'not_found_in_trash' => __('Nothing found in Trash'),
    	'parent_item_colon' => ''
    );
    
    $args = array(
    	'labels' => $labels,
    	'public' => true,
    	'publicly_queryable' => false,
    	'show_ui' => true,
    	'query_var' => true,
    	'rewrite' => true,
    	'capability_type' => 'post',
    	'hierarchical' => false,
    	'menu_position' => 8,
    	'register_meta_box_cb' => 'move_activitypost_box',
    	'supports' => array('title',)
      ); 
    
    register_post_type( 'deeds' , $args );
    // Register deeds (Activity) taxonomies
    register_taxonomy("activity-type", array("deeds"), array("hierarchical" => true, "label" => "Activity", "rewrite" => true,));
    register_taxonomy("activity-route", array("deeds"), array("hierarchical" => true, "label" => "Route", "labels" => array('all_items' => __('All Routes'),'add_new_item' => __('Add New Route'),), "rewrite" => true));
    
    add_action('do_meta_boxes', 'move_activitypost_box');
    
    function move_activitypost_box() {
    	remove_meta_box( 'activity-typediv', 'deeds', 'side' );
    	add_meta_box( 'activity-typediv', "Activity", 'move_activitypost_box', 'deeds', 'normal', 'high',array( 'taxonomy' => 'activity-type' ));
    }

    Thanks in advance for your help, all!
    -Steve

    Thread Starter moatmtn

    (@moatmtn)

    Hi, Mark.

    Very helpful indeed! Thank you.

    As an aside, do you know if setting 'label' => false, when registering a new taxonomy would eliminate the need to remove a box (thus requiring that one only add a new meta box)?

    No need to answer that one. I had just read that somewhere and wasn’t sure if it was an option.

    Again, thank you!

    Cheers,
    Steve

    jsarber,

    I’ve been searching for an answer to the same question for some time now. Blogger.Com had a “tag” that did this, and I’m sure with a little PHP it’s possible in WP. I just lack the scripting skills.

    Thanks in advance to anyone who can help!

    Thread Starter moatmtn

    (@moatmtn)

    The problem persists.

    It seems only to happen with posts that have names I’ve used before, but not with posts with entirely new names. I’m using the ‘day and name’ permalink structure and tried going back to the default structure, which did nothing.

    I’ve de-activated all plugins. No luck there. I’ve replaced the wp-db.php file and added an ‘.htaccess’ file to wp-admin as suggested elsewhere. No luck there either.

    Anyone had this problem in 2.6.2?

    Thread Starter moatmtn

    (@moatmtn)

    hotkee,

    Again, thanks. Actually, this time (it’s happened a few times), I tried “backdating” the post when it was not publishing, but that wasn’t the issue.

    I’m wondering if there’s a database issue with slugs or some-such. Of course, the fact that it published after I logged out this time complicates matters.

    Thread Starter moatmtn

    (@moatmtn)

    hotkee,

    Thanks for getting back to me.

    I just checked my local time settings, and I’m set for UTC -6, which is Mountain Standard Time, so it should be right.

    Strangely, one of the posts that would not publish, just did after I logged out. That’s odd.

Viewing 8 replies - 1 through 8 (of 8 total)