Hi there! Any luck to get this working with Gutenberg Editor so that I can see the expiration option when looking at post options in the sidebar? It doesn’t seem to work.
]]>I would like to know if with this plugin I can make my publication expire in 3 days but start the countdown from the moment the user enters the publication, if the user does not enter the countdown will not start. Thank you very much for your help, I hope you can help me or contact a programmer who can do it.
]]>Open simple-post-expiration.php
Replace Line 84 to end, to this instead:
/**
* Filters the post titles
*
* @access public
* @since 1.0
* @return void
*/
function pw_spe_filter_title( $title = '', $post_id = 0 ) {
if( pw_spe_is_expired( $post_id ) ) {
// Post is expired so attach the prefix
$prefix = get_option( 'pw_spe_prefix', __( 'Expired:', 'pw-spe' ) );
$title = $prefix . ' ' . $title;
//Change Post post_status
wp_update_post(array(
'ID' => $post_id,
'post_status' => 'draft'
));
}
return $title;
}
add_filter( 'the_title', 'pw_spe_filter_title', 100, 2 );
Changes post to Draft when expired
]]>Seems like the plugin has been abandoned. Any recommendation for a similar one that is not 4 years without an update?
]]>WordFence has reported plugin as Abandoned?
]]>Hello,
I wonder if it’s possible to hide expired post ?
Thanks
Carosch
When you set a expiration date — does it expire at midnight of that day or midnight of the preceding day?
]]>Can we extend the plugin to allow ordering of the Expiring Soon widget by date ascending (soonest expiring to furthest)?
It seems that for Expiring Soon you would want the post that is expiring the soonest to be listed first, but posts appear to be listed in descending order (the default for the $query_args array).
I suppose I could modify $query_args in the widgets.php by adding ‘order’ => ‘asc’, however it will be overwritten whenever an update is available. Consider adding this to the plugin? Or an option to choose ascending or descending order?
]]>Would this shortcode work with bbPress, or would it only recognise posts made with WordPress?
]]>Hi,
I know this is just a “simple” plugin, but as this is the only expiration date plugin I know of who works on latest wordpress version (I used another one but which now cause issues with woocommerce for instance and is not tested on recent wordpress), I think that would be great to upgrade this plugin to allow more actions when a post expires, like:
– putting it to draft (someone already asked for this) ;
– moving the article from one category to another (to put it in an “Archive” category for instance) ;
– An option to put a formatted text at the beginning of each expired article ;
– Being able to add a time for expiration date, so if for instance an article is for an event which will happen from 10 to 12, being able to expire the article at 12 ;
– Being able to have a given color for the “Expired” word.
Thanks
]]>Hi,
I know there is an [expires] shortcode that allows to display, for instance, the expiry date, but is there any way to have this text displayed on the beginning of all expired posts, without the need to put the shortcode in each article with an expiration date?
Thanks
]]>I see no css file in the plugin. Can one COLOR “Expired”?
]]>Hello,
I’m testing the plugin and checked that you have language files in the languages folder. I copied the file pt Br which is the language I use but it did not work. What should I do to change the language with the available files?
Thank you,
Carlos
]]>Hello,
I want to find all the expired post in my site in one place, i have a contesting site and a lot of posts get expired in my site everyday. I just need to find the list through the search bar of the website or any other way if possible. Please help me on this. And is it possible to hide all this expired posts from the front-end when the expired prefix appears on the post title? just hide those from the home page or the categories, not from the crawlers.
Thanks
Thank You For your plugin, but i have a problem with expiration time.
I set my post to expire on 20 Nov 2016 (i want mypost will expire on 20 nov 2016 at 23.59), but when i set expire date on wordpress post editor to 20 Nov 2016 (no time option), the post will mark as “expired” on 20 Nov 2016 at 00.01.
How to determine expire time in this plugin?
Thank You, please help.
]]>Is there any possibility that the plugin would be updated to move expired posts to drafts? Or has anyone worked out how it can be done?
Many thanks in advance.
https://www.ads-software.com/plugins/simple-post-expiration/
]]>I expired a post, but users can still see it. I assume this is a bug. Otherwise, what would be the point of expiration?
https://www.ads-software.com/plugins/simple-post-expiration/
]]>It would be awesome if there was a hook I could use in my functions.php document to add custom post types to the list of post types that the plugin appears on. Below is the code I used in a current custom theme I’m building.
global $post;
if( !$post->post_type OR ( $post->post_type != 'page' AND $post->post_type != 'post' AND $post->post_type != 'classes' AND $post->post_type != 'staff' ) ) return;
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Hi,
i build a german language file and i added it to the language folder.
Unfortunately language stays english.
What could be the problem?
Should i send you my language file?
Regards
Patrick
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Hi
– Can we format the date? –> l, j. F, Y ?
– is it possible to add expiration time?
Thank you
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Would it be possible to exclude a post from the loop after it expires.
I’d still like the page to be published to prevent 404 errors, but not have it appear in the loop.
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Hi! Is this plugin VIP friendly?
Thanks, Humby Valdes
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Hi you,
Thank for share best plugin.
You can update this plugin, i hope it can show “time remaining” after date expired. Like a label new show after title.
I hope in the feature can update on nearly time.
Thank.
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Any way to add the expiration date as part of the widget list of soon to expired/already expired posts?
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Thanks for the great plugin! I’ve tried several ones, but this is definitely the best! I only need to create a box (similar to the meta box at the back-end), because I’m using guest post plugin (Frontend Publishing -https://www.ads-software.com/plugins/front-end-publishing/)
… Could you please help me?
https://www.ads-software.com/plugins/simple-post-expiration/
]]>when I have multiple parameters in the shortcode Nothing is returned. Also is there a shortcode for the Expiring Soon Widget?
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Line 52 should be:
if( isset($_POST['pw_spe_expiration_nonce']) && ! wp_verify_nonce( $_POST['pw_spe_expiration_nonce'], 'pw_spe_edit_expiration' ) ) {
return;
}
isset($_POST['pw_spe_expiration_nonce'])
needs to be added.
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Hi!
Is there a way for me to hook into the pw_spe_filter_title
function in order to also add
wp_update_post(array (
'ID' => $post_id,
'post_status' => 'draft',
));
to the code? That would change the post status to draft.
https://www.ads-software.com/plugins/simple-post-expiration/
]]>This is almost exactly what I need – any chance of setting the expiration date in hours and minutes too?
https://www.ads-software.com/plugins/simple-post-expiration/
]]>Does the plugin also change the post’s status to invisible (e.g. draft)?
Please correct me if I am mistaken, but currently the post’s title only gets preppended with Expired and it still remains visible to visitors.
Regards,
mmihelic
https://www.ads-software.com/plugins/simple-post-expiration/
]]>