How to display the featured post on the category page?
The problem is not in code to Displaying Feature post in category page. the problem is to add feature post meta into post. First, checked() by default echo, so you have to pass false attribute to prevent echo. function add_featured_meta_box($post){ $featured = get_post_meta($post->ID, ‘_featured-post’, true); echo “<label for=”_featured-post”>”.__(‘Feature this post?’, ‘foobar’).”</label>”; echo “<input type=”checkbox” name=”_featured-post” … Read more