To remove any post that is older than X days in WordPress you can use the query below.
Sample mySQL
DELETE FROM wp_posts WHERE post_type = 'post' AND DATEDIFF(NOW(), post_date) > X
All the Code Snippets and Samples you need
To remove any post that is older than X days in WordPress you can use the query below.
DELETE FROM wp_posts WHERE post_type = 'post' AND DATEDIFF(NOW(), post_date) > X
You must be logged in to post a comment.
RT @CodeSnippetsNET: Remove any post that is older than X days in #Wordpress http://t.co/egNedlOt33 #wp #blog #blogs #php #phpmyadmin #mysq…
RT @CodeSnippetsNET: Remove any post that is older than X days in #Wordpress http://t.co/egNedlOt33 #wp #blog #blogs #php #phpmyadmin #mysq…
RT @CodeSnippetsNET: Remove any post that is older than X days in #Wordpress http://t.co/egNedlOt33 #wp #blog #blogs #php #phpmyadmin #mysq…
RT @CodeSnippetsNET: Remove any post that is older than X days in #Wordpress http://t.co/egNedlOt33 #wp #blog #blogs #php #phpmyadmin #mysq…