• Resolved Matdragon

    (@matdragon)


    I have just started creating a new word press site for a client, and for some reason which i cannot figure out why, the content editor is missing completely from the page set to the “page for posts”. This was not the case last time around the only thing that has changed is word press has updated for 4.2.2. As soon as i choose a different page for posts, the content editor re-appears on that page, so it seems like specific behaviour hiding the editor on the page for posts. I’ve looked through all the recent change logs and cant see this ability to have content on the page for posts removed. Why this would be default behaviour i cannot understand, surely the theme should choose weather there’s content on the page for posts not word press itself, most of the sites i have made for clients have got editable content on the main blog page.
    Any & all help is appreciated.
    Cheers,
    Matt

Viewing 4 replies - 1 through 4 (of 4 total)
  • surely the theme should choose weather there’s content on the page for posts not word press itself

    That is how it works. When you set a page to be your “Page for Posts”, it looks for the index.php in the active theme directory, which typically has a different loop than your standard page template and most will be listing your recent posts rather than the content of the page itself.

    You could always use a plugin like Display Posts Shortcode or add a new loop to index.php

    Thread Starter Matdragon

    (@matdragon)

    Hi there,
    Thanks for your input, i am aware of how it works with it using the index.php file – that is not the issue here. I am not using a theme, i do not use themes i build them from scratch bespoke for each client.

    I may not have explained my issue well enough, basically the behaviour of wordpress has changed and i’d like to know how / why and how to revert it. I could easily use custom fields to put a text editor back on the blog page however that would be a hack when there has ALWAYS been a content editor on the page selected as the “page for posts”.

    So now all of my older sites which have content added to the page for posts now have un-editable content as theres no editor but its still stored as post meta in the database so outputs fine.

    Cheers

    the content editor is missing completely from the page set to the “page for posts”

    caused by this code in /wp-admin/edit-form-advanced.php:

    if ( $post_ID == get_option( 'page_for_posts' ) && empty( $post->post_content ) ) {
    	add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
    	remove_post_type_support( $post_type, 'editor' );
    }

    somebody suggested a fix a few days ago:
    https://www.ads-software.com/support/topic/you-are-currently-editing-the-page-that-shows-your-latest-posts?replies=3#post-7130021

    Thread Starter Matdragon

    (@matdragon)

    Didn’t manage to find that post in my searches somehow, but the fix works perfectly! Thanks for that!
    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page for posts content editor.’ is closed to new replies.