Plugin Author
Laura
(@lauraquellmalz)
I have to rethink the architecture of the plugin because it is not designed for such actions (with special parameters). I’ll check that and I will post in this thread.
Plugin Author
Laura
(@lauraquellmalz)
Hey Tom,
It’s been a while and I thought about your feature request a bit. I will implement these kind of actions in version 2. I need to change the architecture and API for this too much and I really have no time to implement this in version 1. I hope you understand.
Best,
Thomas
No problem; I’ll watch for version 2.
+1 on this feature. I have categories that determine whether content is on the front page of the site or not: future, current, past. The content is already published, this category change merely moves it around.
+1 from me to. I’m currently looking under every stone and rock everywhere for a plugin that does exactly what this one does, only with categories.
But I’ll have to keep looking because I need to find a solution within a couple of weeks.
for example, i add a action in plugin : update post date
1 – add file in plugins/scheduled-content-actions/inc : action-update.php
add_action( 'sca_do_update_post', 'sca_update_post' );
function sca_update_post( $post_id )
{
// http://codex.wordpress.org/Database_Description#Table:_wp_posts
$my_post = array(
'ID' => $post_id,
'post_date' => date('Y-m-d H:i:s')
);
// Update the post into the database
wp_update_post($my_post);
}
2 – modify plugins/scheduled-content-actions/scheduled-content-actions.php
add in section “content actions” :
require_once dirname( __FILE__ ) . '/inc/action-update.php';
3 – modify plugins/scheduled-content-actions/inc/actions.php
add :
'update_post' => __( 'Update post', SCA_TEXTDOMAIN ),
Add if you want to change category :
(here it’s a custom category)
$post = array(
'ID' => $post_id,
'tax_input' => array(
'option' => [number of category]
)
);
wp_update_post($post);
7h47: I tried to follow the way you implement category change, but it isn’t working for my site. Would you mind being more specific, or is there any other plugins to use to solve this issue?
Heyhey,
Good news everyone: I implemented a new architecture to provide several new features. Currently done is the “Change Taxonomy Terms” and some other stuff. Within the future update to 1.2 there will be the possibility to change the date 🙂
Regards!
Thomas
Liebe Grüße aus Berlin, @wpcodingde, and many thanks for the work on the plugin.
I’m interested in the updated taxonomy feature, but I have not been able to get it to work for me.
I have a post for which I want to change the category between a certain time.
add_term – Taxonomy: category Term: current
delete_term – Taxonomy: category Term: current
In my multiple tests, set within minutes of each other, this neither added the category nor removed it. I made sure to click save in the plugin box AND to update the post.
This is on the right track for my needs though, so I look forward to hearing of a fix!