Can someone kindly tell me where to insert my javascript code below:
<?php
global $post,
$mk_options;
$page_layout = get_post_meta( $post->ID, '_layout', true );
$padding = get_post_meta( $post->ID, '_padding', true );
if ( empty( $page_layout ) ) {
$page_layout = 'full';
}
$padding = ($padding == 'true') ? 'no-padding' : '';
get_header(); ?>
<div id="theme-page" <?php echo get_schema_markup('main');
?>>
What is happening, the "get_post_meta" is causing my blog post dates to show in my Google SERP. I did some research and am aware I need to add the code below, I'm just unsure where to insert it in the code above.
<script language="javascript" type="text/javascript">document.write
(I believe my code goes here) </script>
I would really appreciate some help. This is my first time posting here, so if I am not posting questions properly, just let me know!