I have added some fields to a custom post type through
function add_electric_portfolio_box() {
add_meta_box(
"electric_portfolio_info", __('Detalles de la web'), "electric_portfolio_fields", "electric_portfolio", "normal"
);
}
Which I then call with:
add_action('admin_init', 'add_electric_portfolio_box');
But now those custom fields appear in regular pages too. Is it posible to show those fields ONLY on that type of post?
Here is a screenshot of the undesired fields in the regular pages

as opposed to the desired fields in the custom post:
