[ad_1]
Hi, sorry for my english. I will do my best.
I use a custom loop in the functions.php (for a custom shortcode) to show the last posts from a certain category. With your plugin, I will change the category from a post on certain date – thats working fine.
BUT
How can I show this special date in my loop in the functions.php?
I will show the expire date, which I settting with your plugin….
like
<?php
$args = array(
'post_type' => 'post',
'category_name' => 'dogs',
'posts_per_page' => 2,
);
$query = new WP_Query( $args );
?>
<?php if ( $query->have_posts() ) : while ( $query-> have_posts() ) : $query-> the_post(); ?>
<p class="date">
<?php SHOW_EXPIRE_DATE ?></p>
<?php
endwhile;
wp_reset_postdata();
endif;
?>Do you can help me?
janwill
