You’ll see the issue on the site copy admin page (during the upgrade). We have left it broken here:
https://sitecopy.empirecenter.org/wp-admin/
The error it throws is:
Fatal error: Class ‘Super_Custom_Post_Type’ not found in /home/empirecenter/www/sitecopy/wp-content/mu-plugins/Empire_Center/Init/Post_Types_Taxonomies.php on line 6
It is caused by custom code written in a theme file. (This is not the actual site theme – but files just housed in a theme folder.) Below is the code in its entirety. Can you please let us know what we should do here so that we can successfully upgrade this website without this breaking? Thanks!
add_action(‘after_setup_theme’, ‘ec_setup_post_types_taxonomies’);
function ec_setup_post_types_taxonomies() {
$publications = new Super_Custom_Post_Type(ec_prefix(‘publication’),
‘Publication’,
‘Publications’,
array( ‘has_archive’=> true, ‘rewrite’ => array(‘slug’ => ‘publications’), ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘revisions’, ‘excerpt’, ‘page-attributes’, ‘author’)));
$publications->set_icon(‘book’);
$ny_torch_posts = new Super_Custom_Post_Type(ec_prefix(‘ny-torch-post’), ‘NY Torch Post’, ‘NY Torch Posts’, array( ‘has_archive’=> true, ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘revisions’, ‘excerpt’, ‘page-attributes’, ‘author’ ) ) );
$ny_torch_posts->set_icon(‘fire’);
$tax_tags = new Super_Custom_Taxonomy(ec_prefix(‘tag’), ‘Tag’, ‘Tags’);
$tax_torch_tags = new Super_Custom_Taxonomy(ec_prefix(‘torch_tag’), ‘NY Torch Tag’, ‘NY Torch Tags’);
$tax_cats = new Super_Custom_Taxonomy(ec_prefix(‘category’), ‘Category’, ‘Categories’, ‘category’);
//$tax_pub_issue_areas = new Super_Custom_Taxonomy(ec_prefix(‘pub-issue-area’), ‘Issue Area’, ‘Issue Areas’);
$data = new Super_Custom_Post_Type(ec_prefix(‘data’), ‘Data’, ‘Data’, array( ‘has_archive’=> true, ‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’, ‘revisions’, ‘excerpt’, ‘page-attributes’, ‘author’ ) ) );
$data->set_icon(‘picture’);
//connect_types_and_taxes($publications, array($tax_tags, $tax_cats, $tax_pub_issue_areas));
connect_types_and_taxes($publications, array($tax_tags, $tax_cats));
connect_types_and_taxes($ny_torch_posts, array($tax_tags));
connect_types_and_taxes($data, array($tax_tags));
}
https://www.ads-software.com/plugins/super-cpt/
]]>Any idea why that would be happening? Its on my local using Desktopserver if that matters?
Thanks !
https://www.ads-software.com/plugins/super-cpt/
]]>https://www.ads-software.com/plugins/super-cpt/
]]>the search box of the dashboard return nothing when I search for terms of the the custom meta box.
Am I missing something ?
K.
]]>https://www.ads-software.com/plugins/super-cpt/
]]>is there a way to add a new meta box for uploading images (media) only without having to add the full wysiwyg editor?
Can I also add a wysiwyg editor without the add media button?
Finally, for links, would I just use a textbox or is there a specific field for links?
Doing this to prevent the people who are going to use the site from getting confused.
Thanks for the help and for the awesome plugin!
https://www.ads-software.com/plugins/super-cpt/
]]>Is there a proper way to remove the standard content box ?
I am used to select what to display without your great plugin, like that :
…
‘supports’ => array(‘title’,’author’,’thumbnail’,’excerpt’,’comments’);
…
But how to do it with SuperCPT ?
Regards,
https://www.ads-software.com/extend/plugins/super-cpt/
]]>