Answer the question
In order to leave comments, you need to log in
And how to display in custom news [guid] ??
Hello. WP old update will put the site.
there is a slider that is displayed from the custom section.
in the loop I tried to display just permalink (), no value was displayed
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
$sliderQuery = new WP_Query(array(
'post_type' => 'imageslider',
'posts_per_page' => -1,
'orderby' => 'post_date',
'order' => 'ASC',
'no_found_rows' => 1
));
?>
<div class="slider-sgt">
<div class="fotorama">
<?php
while ($sliderQuery->have_posts()) {
$sliderQuery->the_post();
$feat_image = wp_get_attachment_url(get_post_thumbnail_id());
$link = the_guid( $sliderQuery->the_post() );
echo '
<img src="'.$feat_image.'" alt="" href=" ">
';
}
wp_reset_query();
?>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question