Posts by kaaz

377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says

old one

377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says

yoast breadcrumb

377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says
377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says

Happy Deepawali

377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says

Congratulations! :)

377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says
377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says

Try this… first register post type “book”


add_action('admin_init','add_book_meta');
add_action('save_post','update_book_field');
function add_book_meta() {
    add_meta_box('book_details',__('Book Details', 'framework'),'book_field','book','normal','low');

}
function book_field() {
    global $post;
    $text='';
    $custom = get_post_custom( $post->ID );
    if( isset( $custom[ 'text_input' ] [ 0 ] ) ){
        $text = $custom[ 'text_input' ] [ 0 ];
    }
?>
<p><?php _e('HTML Input fields goes here with custom fields', 'framework');?></p>
<label id="book-author"><?php _e('Author Name', 'framework');?></label> <input name="text_input" size="25" value="<?php echo $text; ?>" type="text" />

<?php }
function update_book_field() {
    global $post;
    if( isset( $_POST[ 'text_input' ] ) ) {

        update_post_meta( $post?>ID, 'text_input', $_POST[ 'text_input' ] );

    }

}
377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says
Nekto said
Hi TF people :) ,

Could anyone please tell suggest me how to add a meta box to custom taxonomy page?

Thanks a lot in advance.

Alex

your question should be ” how to add a meta box for custom post type?”

377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says

waiting for beta

377 posts
    Has sold $40,000+ on Envato Market Has been a beta tester for an Envato feature Has been part of the Envato Community for over 3 years Sells items exclusively on Envato Market
+2 more
kaaz says

very nice :)

by
by
by
by
by
by