// execute the scripts on page and single posts
// Should I add || is_category() or || is_archive() on your script like that?
function wpwoxcustomscript_display_hook_header() {
global $post;
if(is_single() || is_page() || is_category()) {
echo html_entity_decode(get_post_meta($post->ID, ‘_wpwoxcustomscriptcontentinhead’, true));
}
echo get_option(‘wpwoxcustomscript_all_head’);
return;
}
function wpwoxcustomscript_display_hook_footer() {
global $post;
if(is_single() || is_page() || is_category()) {
echo html_entity_decode(get_post_meta($post->ID, ‘_wpwoxcustomscriptcontentinfooter’, true));
}
echo get_option(‘wpwoxcustomscript_all_body’);
return;
}
function wpwoxcustomscript_display_hook($content=”) {
global $post;
$contents=$content;
if(is_single() || is_page() || is_category()) {
$contents= html_entity_decode(get_post_meta($post->ID, ‘_wpwoxcustomscriptcontenttop’, true)) . $content . html_entity_decode(get_post_meta($post->ID, ‘_wpwoxcustomscriptcontentbottom’, true));
}
return $contents;
}