Devin Blewitt
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Did you manage to resolve the issue ? I am having the same issue.
Adding the function worked !! Thanks Jose
OK, I think I have it.
I will need to create a function in the function.php file that will register the post type.
This should resolve my error issue, correct ?
Thanks.
Thanks Jose for the feedback.
I completely understand, but want to make changes to the code to stop the errors. So, would you suggest that I empty the function to;
add_action( 'admin_init', '' ); register_post_type( 'course', array( 'labels' => array( 'name' => __( 'Courses' ), 'singular_name' => __( 'Courses' ) ), 'public' => true, 'has_archive' => true, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail'), ) );If because the call can’t see the function, can I confirm that no code is running from that function. If that is the case, removing the function call syntax would have no effect on the rest of the theme as it is already not being used.
Or do you have other ideas?
thanks again for your help.
Viewing 4 replies - 1 through 4 (of 4 total)