Add default content to post (for specific category)

I’m trying to add some default content to my posts using this code in my functions.php: add_filter( ‘default_content’, ‘my_editor_content’ ); function my_editor_content( $content ) { $content = “My html content.”; return $content; } It works fine, but I would like to add the content to some categories only. This is tricky because the default content … Read more

Hide content editor for posts after approriate date

I am tuning my new site and i what to disable Content Editor for post created after date X, but for posts that created before that date Content Editor must be on its place. 1 Answer 1 function disable_editor_for_old_posts_wpse_101106($post) { if (strtotime(‘-2 months’) > strtotime($post->post_date)) { remove_post_type_support(‘post’,’editor’); } } add_action(‘add_meta_boxes_post’, ‘disable_editor_for_old_posts_wpse_101106′); I couldn’t find a … Read more

Moving comments section to left of content (Twenty Thirteen)

So I want to move my comments section to the left of my content in my Twentythirteen child theme. I’ve located where it’s pulled from in the content.php file: <?php if ( comments_open() && ! is_single() ) : ?> <div class=”comments-link”> <?php comments_popup_link( ‘<span class=”leave-reply”>’ . __( ‘Leave a comment’, ‘twentythirteen’ ) . ‘</span>’, __( … Read more