Looking at custom post type as author produces Warning: Illegal offset
-
Greetings all. As an editor and above, I have no issues viewing custom post types. As an author through, if I go to post or the custom post type I see the following error:
Warning: Illegal offset type in isset or empty in /wp-includes/post.php on line 825
Below that are all of the authors posts for the regular post type. Having a really tough time figuring this one out. I thought it possibly might be a problem with something I have in one of the arrays under the register_post_type function, but was unable to pin point my problem. Here is the custom post type:
function post_type_review() { register_post_type('review', array( 'label' => __('Reviews'), 'singular_label' => __('Review'), 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'capability_type' => 'post', 'supports' => array('title','editor','thumbnail','excerpt','author','trackbacks', 'comments','revisions'), 'query_var' => 'review', 'taxonomies' => array('post_tag','category','review_type','tweet_tags'), 'rewrite' => array("slug" => "review") )); } add_action('init', 'post_type_review');
Any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Looking at custom post type as author produces Warning: Illegal offset’ is closed to new replies.