Last active
October 2, 2019 16:47
-
-
Save wesellhost/1d0f1b3c2bbfa04177d5c0c3c86b8245 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
<?php | |
//show wordpress site title | |
bloginfo( 'name' ); | |
//show wordpress homepage url and support multi language | |
echo esc_url( home_url( '/' ) ); | |
//page or post title | |
the_title(); | |
//show the content of page or post | |
the_content(); // should be inside loop | |
//post thumbnail into src | |
the_post_thumbnail_url( 'xxx' ); //replace xxx with image size | |
//show auther name | |
the_author(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment