Created
March 7, 2012 16:36
-
-
Save mrjasonweaver/1994246 to your computer and use it in GitHub Desktop.
Storing Page Title with data attributes in WordPress
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 $page_title = get_the_title($post->post_parent); ?> | |
<footer id="footer" data-theme="<?php echo bloginfo('stylesheet_directory'); ?>" data-page="<?php echo $page_title ?>" role="contentinfo"> | |
</footer><!-- #footer --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment