• Not every post needs to be published on the FrontPage. So, I’ve searched a plugin, but I couldn’t’ find one. Now I’ve added a field post_frontpage to wp_posts, and this code to edit-form-comment.php

    <fieldset id="poststatusdiv" class="dbx-box">
    <h3 class="dbx-handle"><?php _e('Post On FrontPage') ?></h3>
    <div class="dbx-content"><?php if ( current_user_can('publish_posts') ) : ?>
    	<label for="post_frontpage_yes" class="selectit"><input id="post_frontpage_yes" name="post_frontpage" type="radio" value="yes" <?php checked($post->post_frontpage, 'yes'); ?> /> <?php _e('Yes')?></label>
    	<?php endif; ?>
    	<label for="post_frontpage_no"  class="selectit"><input id="post_frontpage_no"  name="post_frontpage" type="radio" value="no"  <?php checked($post->post_frontpage, 'no' ); ?> /> <?php _e('No') ?></label></div>
    </fieldset>

    This is going well on the admin back-end. However, of course the changes ‘yes’, ‘no’ are not saved; I can’t find the code or even the .php file that is doing that. Does anyone know? Or has a plugin?

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

The topic ‘Managing posts on frontpage’ is closed to new replies.