I am developing a user generated content sharing theme So i created a front end form And i need admin to decide whether the post should be published or should wait for admins approval
This is a bit of code i am using for front end submission
"post_status" =>'pending'
but whenever i replace this
with
"post_status" =>'get_option('mytheme_poststatus')"
i start getting internal server error at that page
i also tried other codes like
"post_status" =>'<?php echo get_option('mytheme_status'); ?>
"post_status" =>'<?php get_option('mytheme_status'); ?>
but all of them resulted me in 500internal sever error
i am a newbie in php so i think that i am doing something wrong in it
"post_status" => get_option('mytheme_poststatus'). – toscho♦ Nov 22 '12 at 10:13