Created
February 9, 2017 09:50
-
-
Save coinso/57489b55061c38e5813c44a24b93ecc2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| //define constant var - goes in header.php | |
| define('PHONE_NUMBER', get_post_meta($frontpage_id,'phone', true));?> | |
| //show constant var - goes whereever you need the phone number | |
| <?php echo "<span class='phone'>{PHONE_NUMBER}</span>";?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment