Как опубликовать the_content, когда идентификатор передается на URL

0
задан Steven Baker 4 March 2019 в 11:53
поделиться

1 ответ

Разобрался

<?php
$post = 

Разобрался

[110]GET['postid']; $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> <img src="<?php echo $image[0]; ?>" height=100% width=100%> <h1 style="padding:50px;"><?php the_title(); ?></h1> </div> <?php> $post =

Разобрался

[110]GET['postid']; $include = get_posts("include=$post"); $content = apply_filters('the_content',$include[0]->post_content); echo $content; ?>
0
ответ дан Steven Baker 4 March 2019 в 11:53
поделиться
Другие вопросы по тегам:

Похожие вопросы: