Last active
December 28, 2015 11:58
-
-
Save mypacecreator/7496834 to your computer and use it in GitHub Desktop.
ページスラッグを元にタイトル画像を表示する(子カテゴリーでもそのページのスラッグを取る)
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
<h1><img src="<?php echo esc_url( get_template_directory_uri() ); ?>/images/title_<?php echo esc_attr( $post->post_name ); ?>.jpg" alt="<?php the_title_attribute(); ?>" /></h1> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment