Support » Plugin: Custom Post Type UI » Blank page instead of post

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Michael Beckwith


    Could you follow the instructions here to enable WP_DEBUG and then refresh the page? Let me know if any errors show up and what they are.

    Thank you for your very quick response!
    I got two messages:

    Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead

    Notice: attribute_escape is deprecated since version 2.8! Use esc_attr() instead

    Plugin Author Michael Beckwith


    Hrm, nothing that relates to CPT UI. Does your site load properly when it’s disabled? Are you able to log into the admin still?

    Yes, everything is fine..

    And the installation is fine.. the only problem, is when i try to see the custom posts infront, where i get a blank page. All other pages, and posts work normally.

    Only my posts fails and gives me blank screen..

    Plugin Author Michael Beckwith


    If you know what template file it’s using, could you pastebin that file at

    Also if I could get what settings you used for your CPT, that’d be awesome as well.

    the code is

    add_action(‘init’, ‘cptui_register_my_cpt’);
    function cptui_register_my_cpt() {
    register_post_type(‘astheneies’, array(
    ‘label’ => ‘__(‘Ασθένειες’)’,
    ‘description’ => ”,
    ‘public’ => ‘true’,
    ‘show_ui’ => ‘true’,
    ‘show_in_menu’ => ‘true’,
    ‘capability_type’ => ‘post’,
    ‘hierarchical’ => ‘false’,
    ‘rewrite’ => array(‘slug’ => ‘astheneies’, ‘with_front’ => ‘1’),
    ‘query_var’ => ‘true’,
    ‘has_archive\’ => ‘true’,
    ‘exclude_from_search’ => ‘false’,
    ‘supports’ => array(”title’,’editor’,’excerpt’,’trackbacks’,’custom-fields’,’comments’,’revisions’,’thumbnail’,’author’,’page-attributes’,’post-formats’,’),
    ‘labels’ => ‘array (
    ‘name’ => ‘Ασθένειες’,
    ‘singular_name’ => ‘Ασθένεια’,
    ‘menu_name’ => ‘Ασθένειες’,
    ‘add_new’ => ‘Προσθήκη νέας’,
    ‘add_new_item’ => ‘Προσθήκη νέας ασθένειας’,
    ‘edit’ => ‘Επεξεργασία’,
    ‘edit_item’ => ‘Επεξεργασία ασθένειας’,
    ‘new_item’ => ‘Νέα ασθένεια’,
    ‘view’ => ‘Προβολή’,
    ‘view_item’ => ‘Προβολή ασθένειας’,
    ‘search_items’ => ‘Αναζήτηση ασθένειας’,
    ‘not_found’ => ‘Δεν βρέθηκαν ασθένειες’,
    ‘not_found_in_trash’ => ‘Δεν βρέθηκαν ασθένειες στα απορρίμματα’,
    ‘parent’ => ‘Γονική ασθένεια’,
    ) ); }

    how can i find which theme file is using?

    I havent edited any other file, except from functions.php, where i inserted the code above.. 🙁

    The generated code of your plugin version has errors, e.g.
    'supports' => array(''title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes','post-formats','),
    should be
    'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes','post-formats'),

    In general, if you have Custom Post Type UI installed and active, do NOT copy the code to your functions.php, the register_post_type() is done by the plugin itself.

    Plugin Author Michael Beckwith


    And the Get Code is hopefully fixed in 8.1 which I am waiting on a bit of testing + permission to release. Ov3rfly is right though, the Get Code bit doesn’t handle the registering when the plugin is active.

    It should be stable enough that I am fine with doing this. Evoweb, download this here:

    and extract the contents into the same plugin folder on your server. Keep the folder name the same though. Once things get pushed out to, if there’s anything different, you should get a prompt to update it via your admin later, and you’ll still get the latest version.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Blank page instead of post’ is closed to new replies.