/*
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
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();
}
}
How to Check NABTEB May/June Result 2021- NABTEB Result Checker
How to Check NABTEB May/June Result 2021 – NABTEB Result Checker
NABTEB May June Result 2021 more detailed information Below; The National Business and Technical Examinations Board (NABTEB) has released the result of the May/June 2021/2022 Senior School Certificate Examination (SSCE) and General Certificate of Education (GCE) examinations online. Candidates who participated in the NABTEB SSCE May/June examination should visit Nabteb official website to check their names.
The examination council has warned candidates against giving any form of gratification or inducement to help facilitate NECO, WAEC, NABTEB & JAMB Score Upgrade. BE WISE, Don’t fall a victim. Candidates must possess the under-listed items to enable them Check NABTEB Result 2021:
NABTEB Card PIN
NABTEB Candidate ID Number
NABTEB Examination Type
NABTEB Examination Year
NABTEB Card Serial Number
Personal E-mail Address (optional).
NABTEB May/June Result 2021 – How to Check NABTEB Result Online 2021.
Candidates should follow the step by step guide below to check NABTEB May/June Result 2021/2022 result online. Please note that checking NABTEB Result without a scratch card is not possible.
Visit the NABTEB Result Checker Portal/Website on (http://eworld.nabtebnigeria.org)
Enter your Candidate Identification Number e.g. 38001178
Select the Type of Examination
Enter the 4 digits of your Examination Year e.g. 2021
Enter the Card Serial Number found on the reverse side of your Scratch card. The Card Serial Number has an alphabet prefix followed by digits e.g. N123456789
Enter the 12-digit Personal Identification Number (PIN) on your Scratch card eg. 012345678912
Click the Submit button to display your result online
Candidates who wish to send NABTEB result to their E-mail should follow the procedures below: – Follow steps 1-5 above. – Click on the ‘Send Results to E-mail’ box – Enter a valid e-mail address. – Click Submit and wait for the results window to come up
NABTEB May/June Result 2021 – How to Check NABTEB Result 2021 on Phone Via SMS
Send SMS in the format below:
NABTEB*ExamNo*PIN*ExamType*ExamYear To short-code 32327
For example:
To check for May/June results,
NABTEB*01001001*123456789012*MJ*2012
To check for Nov/Dec results,
NABTEB*01001001*123456789012*ND*2012
Note: Make sure you follow the above-listed step and leave no space in the message. Your result will be sent to your mobile phone via SMS.
Thanks for reading to the end, we appreciate your view and we anticipate it. Subsequently, if you require us to bolster you with more refreshed information at the ideal time about NABTEB May June Result 2021, cordially provide us your telephone number and Email Address in the comment box beneath.
Winningbrain is a recruitment and school news information portal, that provides daily quality contents for recruiters, job applicants and students in Nigeria.