This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
<?php | |
// Display Custom Field Value | |
echo get_post_meta( $post->ID, 'my-field-slug', true ); | |
// You can also use | |
echo get_post_meta( get_the_ID(), 'my-field-slug', true ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var adUnit = document.getElementsByClassName("section-below-title")[0]; | |
var parentElement = adUnit.childNodes[0]; | |
// Create script element | |
var script = document.createElement('script'); | |
script.async = true; | |
script.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"; | |
parentElement.appendChild(script); | |
// Create INS element |