Show date | WordPress.org

[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

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer