Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Normal editor content we can call as the_content(); here, i have 3 more wp_editor fields, how can i print the code in my page?.


<?php wp_editor( $holds, 'holds', $settings = array('textarea_rows'=>20) ); ?>

share|improve this question
    
Is there any chance that you mean 'post content' by 'editor content'? In what way do you store these custom editors contents? Do you use Custom Fields or in some other way? –  Krzysiek Dróżdż Jul 3 '13 at 12:54
    
Hi Krzysiek Dróżdż, thank you for your replay. it's a CPT . please look this pastebin.com/2SRvBwrq. and solve this problem. –  Shihab Malayil Jul 3 '13 at 12:57

1 Answer 1

OK, since you save these additional values as Custom Fields (see your code below):

function save_points(){
        global $post;
        update_post_meta($post->ID, "category", $_POST["category"]);
        update_post_meta($post->ID, "brand", $_POST["brand"]);
        update_post_meta($post->ID, "features", $_POST["features"]);
        update_post_meta($post->ID, "holds", $_POST["holds"]);
        update_post_meta($post->ID, "extra", $_POST["extra"]);
}

You should use [get_post_meta][1] to get these values.

share|improve this answer
    
thank you <?php echo get_post_meta( $post->ID, 'features', true ); ?> –  Shihab Malayil Jul 3 '13 at 13:22
    
Yes, exactly like that. You can also run filters on it. For example: <?php echo apply_filters('the_content', get_post_meta($post->ID, 'features', true)); ?> - pls select this as correct answer, if it was helpful. –  Krzysiek Dróżdż Jul 3 '13 at 18:09
    
hi Krzysiek Dróżdż, still not showing,it's worked yesterday.now i don't know what happend, field productid not saving.all custom fields not printing data on the page. cpt:pastebin.com/Sidr1juD template code:pastebin.com/MiArdFcs –  Shihab Malayil Jul 4 '13 at 11:56
    
If it worked, then it is correct. First bug is that on line 49 you store value as $id variable, but then use $productid (it's undefined). You should also take care of escaping values correctly. And you don't use manage_posts_custom_column correctly. Don't use get_the_ID() inside. This function takes post_id as second argument. codex.wordpress.org/Plugin_API/Action_Reference/… –  Krzysiek Dróżdż Jul 4 '13 at 12:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.