• Hi there,
    I have a problem concerning a small bit of php that I am using to add the default seo and meta boxes in Thesis to my custom posts. This is it:

    add_action('admin_menu','my_admin_menu');
    function my_admin_menu() {
       $post_options = new thesis_post_options;
       $post_options->meta_boxes();
       foreach ($post_options->meta_boxes as $meta_name => $meta_box){
    add_meta_box($meta_box['id'], $meta_box['title'], array('thesis_post_options', 'output_' . $meta_name . '_box'), 'graphics', 'normal', 'high'); #wp }
    add_action('save_post', array('thesis_post_options', 'save_meta')); #wp }

    This works fine for my custom post named graphics but I have three other custom posts which I need to add these to. If I repeat the code and try to apply it separately I get a repeat error. Can anyone help with this? I believe an array may be used in some way but my knowledge of php is not sufficient to solve this.
    Thank you

    duplicate of https://www.ads-software.com/support/topic/custom-post-seo-and-meta-boxes-thesis?replies=2

  • The topic ‘Custom post seo and meta boxes (Thesis) 2’ is closed to new replies.