Created
June 26, 2017 11:22
-
-
Save f4rr3ll1990/6d670db15dde14a1d8e4c623eb45944e 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
<!-- Луп из поста по ID --> | |
<?php | |
$post_id_1 = get_post( 1 ); | |
$title = $post_id_1->post_title; | |
$content = $post_id_1->post_content; | |
$excerpt = $post_id_1->post_excerpt; | |
if (has_post_thumbnail( $post->ID ) ): | |
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); | |
?> | |
<?php echo $image[0]; ?> | |
<?php echo $title ?> | |
<?php echo $content ?> | |
<?php echo $excerpt ?> | |
<?php endif; wp_reset_query();?> | |
<!-- !#### --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment