Status changes on adding expiration date
-
Hi all,
I’m currently struggeling with the following.
The Plugin works just fine. My client wanted me to create a widget that holds two kinds of post.
One of them is the jobman_job post type. Now this works fine.
It shows two kinds of posts based on placing date.However if I add a expiration date on a job and that date passes the job goes in the archive but the status remains on ‘publish’. So it stays in my widget list.
Is there a way where I can change the status of the job where the expiration date has past.
Here is a snippet of the code I use in my widget.
$wpcust = new WP_Query( array( 'post_type' => array('jobman_job','post'), 'showposts' => '5' )); if ($wpcust->have_posts()): while( $wpcust->have_posts() ) : $wpcust->the_post(); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li>
The topic ‘Status changes on adding expiration date’ is closed to new replies.