Don't show main content editor for certain posts

Posted in: Newspaper
Post count: 62

I have a custom post type with its own front-end template, and despite it having content in the main content editor, I wish to not show this on the front-end. Using the wordpress function remove_post_type_support( 'my_cpt', 'editor');, I was able to remove it from the edit screen, however its content seems to still exists in the database and it shows on the front-end. In my cpt template, I’m using $td_mod_single->get_content() to display the posts contents (the cpt has other fields other than the main editor that I wish to show).

Post count: 22421

Hello,

Are you referring to the tiny mce back-ed editor? That can be removed from wordpress. Here is an example:
http://wordpress.stackexchange.com/questions/85312/removing-the-tinymce-editor-for-a-given-page-template

Thank you!

Post count: 62

I did use the remove_post_type_support( 'my_cpt', 'editor'); to try to remove it, but as I have mentioned, it only hides it in the backend where I edit my post. On the frontend, it still shows the TinyMCE editor’s contents.

Post count: 62

The mentioned code was tried in the files “functions.php” and the cpt template file, using the hooks “init” and “load-page”.

Post count: 22421

Hi,

The mce editor is not part of the theme. It is provided by wordpress as I have mentioned above. The theme support does not cover wordpress customization.
Please search on the wordpress forums for a solution in removing the mce editor.

Thank you for your understanding.

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.