Last active
May 30, 2016 17:38
-
-
Save lschatzkin/c28b20a4fe0f38bae302d178c5bfa656 to your computer and use it in GitHub Desktop.
wordpress background image from featured image
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 $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> | |
<header class="intro-header" style="background-image: url('<?=$url?>')"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment