The Charlie Kirk Detail That Made MAGA Turn on Trump
President Trump is facing rare backlash from within his own party after dismissing the tragic murder of director Rob Reiner
The Charlie Kirk Detail That Made MAGA Turn on Trump Play/* Plugin Name: WP Random Post Dater Plugin URI: http://www.internetsplash.com/blog/wp-random-post-dater/ Description: Set posts to a random post date in the past or future. Version: 0.9 Author: Ash Baker Author URI: http://internetsplash.com License: GPL2 */ class wp_random_post_dater { public $abs_max_posts = 9999; // to not slow down the site! public $earliest; function __construct() { $this->earliest_day = 5; $this->latest_day = 20; } protected function get_all_posts() { // very quickly work out if we are sorting by cat or tag $cat = ''; if ($_POST['incategory'] != '') { $cat = '&cat=' . (int)$_POST['incategory']; } $tag = ''; if ($_POST['tagid'] != '') { $tag = "&tag_id=" . (int) $_POST['tagid']; } $all_posts = array(); $all_query = new WP_Query('showposts=' . $this->abs_max_posts . $cat . $tag); while($all_query->have_posts()) { $all_query->the_post(); $orig_date = get_the_date("Y-m-d H:i:s"); $i++; $all_posts[get_the_ID()] = array ( "link" => get_permalink(), "title" => the_title('','',false), "orig_date" => $orig_date, ); } return $all_posts; } public function redate_posts() { if (isset($_POST['latest_day']) && is_numeric($_POST['latest_day'])) { $this->latest_day = (int) $_POST['latest_day']; } if (isset($_POST['earliest_day']) && is_numeric($_POST['earliest_day'])) { $this->earliest_day = (int) $_POST['earliest_day']; } if ($this->earliest_day == 0 && $this->latest_day == 0) { echo "
Please go back - you cannot set latest and earliest at 0
"; return; } if ($this->earliest_day < 0 || $this->latest_day < 0 ) { echo "Please go back - you cannot either value as lower than 0
"; return; } if ($_POST['tagid'] !='' && $_POST['incategory'] != '') { echo "Please go back - you cannot set both slug and category!
"; return; } $total_diff_in_days = $this->latest_day + $this->earliest_day; echo "The earliest day is {$this->earliest_day} days ago. The latest day is {$this->latest_day} days in the future
"; $allposts = $this->get_all_posts(); if (count($allposts) > 0) { $doneDays = array(); echo "| $id | $link | $title | Original date: {$postData['orig_date']} | Changed date to : $newDate |
This shows the frequency of each post being posted x days ago/in future. It doesn't show every single day - only the ones with at least one post
"; //change for for() to show all days? might be handy echo "| +/- days | Number of posts | "; foreach($doneDays as $id => $val) { if ($id > 0) { $id = "+" . $id; } echo "
|---|---|
| $id days | $val posts |
Error - Could not find any posts to reorder!
"; } } protected function get_all_cats_options() { $args = array( 'type' => 'post', 'child_of' => 0, 'parent' => '', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 1, 'hierarchical' => 1, 'exclude' => '', 'include' => '', 'number' => '', 'taxonomy' => 'category', 'pad_counts' => true ); $categories = get_categories( $args ); $returnhtml = ''; foreach($categories as $cat) { $id = $cat->cat_ID; $name = $cat->name; $c = $cat->category_count; $returnhtml .= ""; } return $returnhtml; } protected function get_all_tags_options() { $tags = get_tags(); $returnhtml = ''; if ($tags) { foreach ($tags as $tag) { $id = $tag->term_id; $name = $tag->name; $c = $tag->count; $returnhtml .= ""; } } else { $returnhtml = ""; } return $returnhtml; } public function show_options() { ?>Use this form to set ALL posts in the selected category to a random date between these two values.
This will update the post dates on ALL posts within the selected category/tag (or ALL posts in your wordpress blog if both are set to default). Please do not use if you do not want to reset ALL post dates. I do not recommend using this on a site with lots of live posts - especially if you use a permalink structure that includes the date in the url. I use it on new sites (add all content, then set all posts to random date in the past). Use at your own risk! You will lose the current post date time (it only changes the date posted - nothing else)
} } add_action('admin_menu','random_post_dater_admin'); function random_post_dater_admin() { add_options_page(__('Random Post Dater'),__('Random Post Dater'),6,'random-post-dater','random_post_dater_page'); } function random_post_dater_page() { $random_post_dater = new wp_random_post_dater(); if (isset($_POST['random_post_dater'] )) { $random_post_dater->redate_posts(); } else { $random_post_dater->show_options(); } }New Videos Now – Popular Funny Video Clips
Watch Videos, Share Laughs
President Trump is facing rare backlash from within his own party after dismissing the tragic murder of director Rob Reiner
The Charlie Kirk Detail That Made MAGA Turn on Trump Play
Despite Disney’s aggressive attempts to scrub the internet, a leaked Avengers: Doomsday trailer has confirmed Chris Evans’ return as Captain
Did MARVEL Just RUIN Sam Wilson’s CAPTAIN AMERICA? Play
The release of the Stranger Things Season 5 Volume 2 trailer has triggered a viral panic, with one specific scene
The NEW Stranger Things Season 5 Theory That Has Fans ‘Suing’ Netflix Play
The 2025 Streamer Awards descended into chaos when influencer India Love stormed the stage to protest FaZe Adapt’s win for
STOP Blaming India Love for RUINING the 2025 Streamer Awards Play
Marlon Wayans inadvertently ignited a losing battle against 50 Cent after criticizing the rapper for “kicking a man while he’s
The TRUTH Behind the 50 Cent & DIddy ‘HOT TUB’ Photo Play
A new unexpected celebrity feud began when Marlon Wayans appeared on The Cruz Show and criticized 50 Cent for “”kicking
Why Marlon Wayans’ AI MEME WAR Never Stood a Chance Against 50 Cent Play
Timothée Chalamet was asked during a U.K. radio interview about the viral theory that he’s secretly British rapper EsDeeKid, but
Timothée Chalamet Finally Breaks His Silence on Viral Rumor He’s Secretly Rapper EsDeeKid Play
Khloé Kardashian sparked a viral moment on TikTok after a California teacher responded to one of her flirty social-media comments,
Khloé Kardashian’s TikTok Interaction Goes Viral After Teacher Responds to Her Comment Play
Streamer India Love faced intense backlash after storming the stage at the 2025 Streamer Awards. The stunt was triggered after
India Love Speaks Out After ‘Kanye-West’ Stunt ‘RUINED’ Streamer Awards Play
Boy Throb, the viral boy band known for their matching pink tracksuits, just hit one million followers on TikTok and
VIRAL TikTok BOY BAND Begs for Press Coverage to Fix VISA CRISIS Play