{"id":71894,"date":"2026-02-01T03:01:00","date_gmt":"2026-01-31T17:01:00","guid":{"rendered":"https:\/\/www.rjmprogramming.com.au\/ITblog\/?p=71894"},"modified":"2026-02-01T07:32:00","modified_gmt":"2026-01-31T21:32:00","slug":"wordpress-blog-search-title-and-posting-date-checkbox-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-blog-search-title-and-posting-date-checkbox-tutorial\/","title":{"rendered":"WordPress Blog Search Title and Posting Date Checkbox Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=\"_blank\" href=\"https:\/\/www.rjmprogramming.com.au\/itnewblog\/match\/mapper.php\" rel=\"noopener\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"WordPress Blog Search Title and Posting Date Checkbox Tutorial\" src=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/post_re.gif\" title=\"WordPress Blog Search Title and Posting Date Checkbox Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">WordPress Blog Search Title and Posting Date Checkbox Tutorial<\/p><\/div>\n<p>We&#8217;re back at this WordPress Blog&#8217;s Search textbox inhouse checkbox tailoring functionality today.   All the user will initially see is that one checkbox that used to be labelled &#8220;Title RE&#8221; is now labelled &#8220;Post RE&#8221; because &#8230;<\/p>\n<ul>\n<li>as well as the blog posting <i>Title<\/i> (optional Regular Expression means of filtering) &#8230; as of today, also, we now offer &#8230;<\/li>\n<li>new functionality for blog posting <i>Date of Publication<\/i> filtering &#8230; examples of use being &#8230;\n<ol>\n<li>3\/2015<\/li>\n<li>23rd October,2016<\/li>\n<li>23\/10\/2016<\/li>\n<li>10\/23\/2016 <font size=1>&#8230; but this one only works because 23 is greater than 12 &#8230; we&#8217;d prefer dd\/mm\/yyyy user entries really<\/font><\/li>\n<li>20161023<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>It&#8217;s PHP that mainly changes for this via <a target=\"_blank\" href='https:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=https:\/\/www.rjmprogramming.com.au\/itnewblog\/match\/mapper.php----GETME' rel=\"noopener\">the changed<\/a> <a target=\"_blank\" href='https:\/\/www.rjmprogramming.com.au\/itnewblog\/match\/mapper.php----GETME' rel=\"noopener\">mapper.php<\/a> <a target=\"_blank\" href='https:\/\/www.rjmprogramming.com.au\/itnewblog\/match\/mapper.php' rel=\"noopener\">Posting Search &#8220;Post RE&#8221; filterer<\/a> web application, <font color=blue>with new<\/font> &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n<font color=blue>function ourexplode($needle, $haystack) {<br \/>\n  $isordinal=false;<br \/>\n  $intrm=explode($needle, $haystack)[0];<br \/>\n  if ($intrm != $haystack) {<br \/>\n    if (strlen($intrm) &gt;= 4) {<br \/>\n      if (substr($intrm,-4,1) &gt;= '0' && substr($intrm,-4,1) &lt;= '9') {<br \/>\n       if (substr($intrm,-1,1) == ' ') {<br \/>\n         switch (strtolower(substr($intrm,-3,2))) {<br \/>\n           case 'st':<br \/>\n           case 'nd':<br \/>\n           case 'rd':<br \/>\n           case 'th':<br \/>\n            $isordinal=true;<br \/>\n            break;<br \/>\n<br \/>\n           default:<br \/>\n            break;<br \/>\n         }<br \/>\n       }<br \/>\n      }<br \/>\n    }<br \/>\n  }<br \/>\n  if ($isordinal) {<br \/>\n    return str_replace(substr($intrm,-3,3), ' ', str_replace(substr($intrm,-3,3) . $needle . ',', substr($intrm,-3,3) . $needle . ' ', $haystack));<br \/>\n  }<br \/>\n  return $haystack;<br \/>\n}<\/font><br \/>\n<br \/>\nfunction someof($sbits, $viapm) {<br \/>\n global $onclick;<br \/>\n <font color=blue>$previa='';<\/font><br \/>\n $obits=\"\";<br \/>\n <font color=blue>$befvia='';<\/font><br \/>\n $obits=str_replace('&gt;&lt;\/option&gt;','&gt;&lt;\/OPTION&gt;',$sbits);<br \/>\n $zobits=explode(\"&lt;\/option&gt;\",$obits);<br \/>\n if (sizeof($zobits) &gt; 1) {<br \/>\n   $obits=str_replace(\"Tutorials (show blog, toggle sort order) ...\",\"Tutorials about \" . $viapm . \" (or ask about another topic)\",$zobits[0]) . \"&lt;\/option&gt;\";<br \/>\n   if ($viapm != \"\") {<br \/>\n     <font color=blue>if (strpos(strtolower(' ' . $viapm . ' '), 'january') !== false) {<br \/>\n       $viapm=str_replace('January','01', str_replace('january','01', str_replace('JANUARY','01', $viapm)));<br \/>\n       $viapm=ourexplode('01', $viapm);<br \/>\n       if (substr($viapm,0,2) == '01') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'jan ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jan\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jan-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jan,') !== false) {<br \/>\n       $viapm=str_replace('Jan','01', str_replace('jan','01', str_replace('JAN','01', $viapm)));<br \/>\n       $viapm=ourexplode('01', $viapm);<br \/>\n       if (substr($viapm,0,2) == '01') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'february') !== false) {<br \/>\n       $viapm=str_replace('February','02', str_replace('february','02', str_replace('FEBRUARY','02', $viapm)));<br \/>\n       $viapm=ourexplode('02', $viapm);<br \/>\n       if (substr($viapm,0,2) == '02') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'feb ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'feb\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'feb-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'feb,') !== false) {<br \/>\n       $viapm=str_replace('Feb','02', str_replace('feb','02', str_replace('FEB','02', $viapm)));<br \/>\n       $viapm=ourexplode('02', $viapm);<br \/>\n       if (substr($viapm,0,2) == '02') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'march') !== false) {<br \/>\n       $viapm=str_replace('March','03', str_replace('march','03', str_replace('MARCH','03', $viapm)));<br \/>\n       $viapm=ourexplode('03', $viapm);<br \/>\n       if (substr($viapm,0,2) == '03') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' mar ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'mar\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'mar-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'mar,') !== false) {<br \/>\n       $viapm=str_replace('Mar','03', str_replace('mar','03', str_replace('MAR','03', $viapm)));<br \/>\n       $viapm=ourexplode('03', $viapm);<br \/>\n       if (substr($viapm,0,2) == '03') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'april') !== false) {<br \/>\n       $viapm=str_replace('April','04', str_replace('april','04', str_replace('APRIL','04', $viapm)));<br \/>\n       $viapm=ourexplode('04', $viapm);<br \/>\n       if (substr($viapm,0,2) == '04') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' apr ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'apr\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'apr-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'apr,') !== false) {<br \/>\n       $viapm=str_replace('Apr','04', str_replace('apr','04', str_replace('APR','04', $viapm)));<br \/>\n       $viapm=ourexplode('04', $viapm);<br \/>\n       if (substr($viapm,0,2) == '04') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'may') !== false) {<br \/>\n       $viapm=str_replace('May','05', str_replace('may','05', str_replace('MAY','05', $viapm)));<br \/>\n       $viapm=ourexplode('05', $viapm);<br \/>\n       if (substr($viapm,0,2) == '05') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' may ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'may\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'may-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'may,') !== false) {<br \/>\n       $viapm=str_replace('May','05', str_replace('may','05', str_replace('MAY','05', $viapm)));<br \/>\n       $viapm=ourexplode('05', $viapm);<br \/>\n       if (substr($viapm,0,2) == '05') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'june') !== false) {<br \/>\n       $viapm=str_replace('June','06', str_replace('june','06', str_replace('JUNE','06', $viapm)));<br \/>\n       $viapm=ourexplode('06', $viapm);<br \/>\n       if (substr($viapm,0,2) == '06') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' jun ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jun\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jun-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jun,') !== false) {<br \/>\n       $viapm=str_replace('Jun','06', str_replace('jun','06', str_replace('JUN','06', $viapm)));<br \/>\n       $viapm=ourexplode('06', $viapm);<br \/>\n       if (substr($viapm,0,2) == '06') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'july') !== false) {<br \/>\n       $viapm=str_replace('July','07', str_replace('july','07', str_replace('JULY','07', $viapm)));<br \/>\n       $viapm=ourexplode('07', $viapm);<br \/>\n       if (substr($viapm,0,2) == '07') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' jul ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jul\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jul-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'jul,') !== false) {<br \/>\n       $viapm=str_replace('Jul','07', str_replace('jul','07', str_replace('JUL','07', $viapm)));<br \/>\n       $viapm=ourexplode('07', $viapm);<br \/>\n       if (substr($viapm,0,2) == '07') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'august') !== false) {<br \/>\n       $viapm=str_replace('August','08', str_replace('august','08', str_replace('AUGUST','08', $viapm)));<br \/>\n       $viapm=ourexplode('08', $viapm);<br \/>\n       if (substr($viapm,0,2) == '08') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' aug ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'aug\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'aug-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'aug,') !== false) {<br \/>\n       $viapm=str_replace('Aug','08', str_replace('aug','08', str_replace('AUG','08', $viapm)));<br \/>\n       $viapm=ourexplode('08', $viapm);<br \/>\n       if (substr($viapm,0,2) == '08') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'september') !== false) {<br \/>\n       $viapm=str_replace('September','09', str_replace('september','09', str_replace('SEPTEMBER','09', $viapm)));<br \/>\n       $viapm=ourexplode('09', $viapm);<br \/>\n       if (substr($viapm,0,2) == '09') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' sep ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'sep\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'sep-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'sep,') !== false) {<br \/>\n       $viapm=str_replace('Sep','09', str_replace('sep','09', str_replace('SEP','09', $viapm)));<br \/>\n       $viapm=ourexplode('09', $viapm);<br \/>\n       if (substr($viapm,0,2) == '09') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'october') !== false) {<br \/>\n       $viapm=str_replace('October','10', str_replace('october','10', str_replace('OCTOBER','10', $viapm)));<br \/>\n       $viapm=ourexplode('10', $viapm);<br \/>\n       if (substr($viapm,0,2) == '10') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' oct ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'oct\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'oct-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'oct,') !== false) {<br \/>\n       $viapm=str_replace('Oct','10', str_replace('oct','10', str_replace('OCT','10', $viapm)));<br \/>\n       $viapm=ourexplode('10', $viapm);<br \/>\n       if (substr($viapm,0,2) == '10') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'november') !== false) {<br \/>\n       $viapm=str_replace('November','11', str_replace('november','11', str_replace('NOVEMBER','11', $viapm)));<br \/>\n       $viapm=ourexplode('11', $viapm);<br \/>\n       if (substr($viapm,0,2) == '11') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' nov ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'nov\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'nov-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'nov,') !== false) {<br \/>\n       $viapm=str_replace('Nov','11', str_replace('nov','11', str_replace('NOV','11', $viapm)));<br \/>\n       $viapm=ourexplode('11', $viapm);<br \/>\n       if (substr($viapm,0,2) == '11') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), 'december') !== false) {<br \/>\n       $viapm=str_replace('December','12', str_replace('december','12', str_replace('DECEMBER','12', $viapm)));<br \/>\n       $viapm=ourexplode('12', $viapm);<br \/>\n       if (substr($viapm,0,2) == '12') {  $previa=\"\\\\(([0-9]{4})\"; }<br \/>\n     } else if (strpos(strtolower(' ' . $viapm . ' '), ' dec ') !== false || strpos(strtolower(' ' . $viapm . ' '), 'dec\/') !== false || strpos(strtolower(' ' . $viapm . ' '), 'dec-') !== false || strpos(strtolower(' ' . $viapm . ' '), 'dec,') !== false) {<br \/>\n       $viapm=str_replace('Dec','12', str_replace('dec','12', str_replace('DEC','12', $viapm)));<br \/>\n       $viapm=ourexplode('12', $viapm);<br \/>\n       if (substr($viapm,0,2) == '12') {  $previa=\"([0-9]{4})\"; }<br \/>\n     }<br \/>\n<br \/>\n   if (preg_match('\/([0-9]{4})\/i', $viapm)) {<br \/>\n     if (!preg_match('\/\\(([0-9]{4})\/i', $viapm)) {<br \/>\n      if (preg_match('\/^([0-9]{4})\/i', $viapm)) {<br \/>\n        $previa=\"\\\\(\";<br \/>\n      }<br \/>\n     }<br \/>\n     if (preg_match('\/([0-9]{1})\\\/([0-9]{2})\\\/([0-9]{4})\/i', $viapm) || preg_match('\/([0-9]{1})\\\/([0-9]{1})\\\/([0-9]{4})\/i', $viapm)) {<br \/>\n       $dnums=explode('\/', $viapm);<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[2]=explode(' ', $dnums[2])[0];<br \/>\n       $dnums[2]=explode(',', $dnums[2])[0];<br \/>\n       if (substr(('0' . $dnums[1]),-2,2) &gt; '12') {<br \/>\n       $viapm=str_replace($dnums[0] . '\/' . $dnums[1] . '\/' . substr($dnums[2],0,4), substr($dnums[2],0,4) . substr(('0' . $dnums[0]),-2,2) . substr(('0' . $dnums[1]),-2,2), $viapm);<br \/>\n       } else {<br \/>\n       $viapm=str_replace($dnums[0] . '\/' . $dnums[1] . '\/' . substr($dnums[2],0,4), substr($dnums[2],0,4) . substr(('0' . $dnums[1]),-2,2) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n       }<br \/>\n     } else if (preg_match('\/([0-9]{1})\\-([0-9]{2})\\-([0-9]{4})\/i', $viapm) || preg_match('\/([0-9]{1})\\-([0-9]{1})\\-([0-9]{4})\/i', $viapm)) {<br \/>\n       $dnums=explode('-', $viapm);<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[2]=explode(' ', $dnums[2])[0];<br \/>\n       $dnums[2]=explode(',', $dnums[2])[0];<br \/>\n       if (substr(('0' . $dnums[1]),-2,2) &gt; '12') {<br \/>\n       $viapm=str_replace($dnums[0] . '-' . $dnums[1] . '-' . substr($dnums[2],0,4), substr($dnums[2],0,4) . substr(('0' . $dnums[0]),-2,2) . substr(('0' . $dnums[1]),-2,2), $viapm);<br \/>\n       } else {<br \/>\n       $viapm=str_replace($dnums[0] . '-' . $dnums[1] . '-' . substr($dnums[2],0,4), substr($dnums[2],0,4) . substr(('0' . $dnums[1]),-2,2) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n       }<br \/>\n     } else if (preg_match('\/([0-9]{1})\\ ([0-9]{2})\\ ([0-9]{4})\/i', $viapm) || preg_match('\/([0-9]{1})\\ ([0-9]{1})\\ ([0-9]{4})\/i', $viapm)) {<br \/>\n       $thiszero=-1;<br \/>\n       for ($ik=0; $ik&lt;strlen($viapm); $ik++) {<br \/>\n         if ($thiszero &lt; 0) {<br \/>\n           if (substr(substr($viapm, $ik),0,1) &gt;= '0' && substr(substr($viapm, $ik),0,1) &lt;= '9') {<br \/>\n             $thiszero=$ik;<br \/>\n           }<br \/>\n         }<br \/>\n       }<br \/>\n       $dnums=explode(' ', substr($viapm, max($thiszero,0)));<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[2]=explode(' ', $dnums[2])[0];<br \/>\n       $dnums[2]=explode(',', $dnums[2])[0];<br \/>\n       if (substr(('0' . $dnums[1]),-2,2) &gt; '12') {<br \/>\n       $viapm=str_replace($dnums[0] . ' ' . $dnums[1] . ' ' . substr($dnums[2],0,4), substr($dnums[2],0,4) . substr(('0' . $dnums[0]),-2,2) . substr(('0' . $dnums[1]),-2,2), $viapm);<br \/>\n       } else {<br \/>\n       $viapm=str_replace($dnums[0] . ' ' . $dnums[1] . ' ' . substr($dnums[2],0,4), substr($dnums[2],0,4) . substr(('0' . $dnums[1]),-2,2) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n       }<br \/>\n     } else if (preg_match('\/([0-9]{2})\\\/([0-9]{4})\/i', $viapm) || preg_match('\/([0-9]{1})\\\/([0-9]{4})\/i', $viapm)) {<br \/>\n       $dnums=explode('\/', $viapm);<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[1]=explode(' ', $dnums[1])[0];<br \/>\n       $dnums[1]=explode(',', $dnums[1])[0];<br \/>\n       $viapm=str_replace($dnums[0] . '\/' . substr($dnums[1],0,4), substr($dnums[1],0,4) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n     } else if (preg_match('\/([0-9]{2})\\-([0-9]{4})\/i', $viapm) || preg_match('\/([0-9]{1})\\-([0-9]{4})\/i', $viapm)) {<br \/>\n       $dnums=explode('-', $viapm);<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[1]=explode(' ', $dnums[1])[0];<br \/>\n       $dnums[1]=explode(',', $dnums[1])[0];<br \/>\n       $viapm=str_replace($dnums[0] . '-' . substr($dnums[1],0,4), substr($dnums[1],0,4) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n     } else if (preg_match('\/([0-9]{2})\\ ([0-9]{4})\/i', $viapm) || preg_match('\/([0-9]{1})\\ ([0-9]{4})\/i', $viapm)) {<br \/>\n       $thiszero=-1;<br \/>\n       for ($ik=0; $ik&lt;strlen($viapm); $ik++) {<br \/>\n         if ($thiszero &lt; 0) {<br \/>\n           if (substr(substr($viapm, $ik),0,1) &gt;= '0' && substr(substr($viapm, $ik),0,1) &lt;= '9') {<br \/>\n             $thiszero=$ik;<br \/>\n           }<br \/>\n         }<br \/>\n       }<br \/>\n       $dnums=explode(' ', substr($viapm, max($thiszero,0)));<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[1]=explode(' ', $dnums[1])[0];<br \/>\n       $dnums[1]=explode(',', $dnums[1])[0];<br \/>\n       $viapm=str_replace($dnums[0] . ' ' . substr($dnums[1],0,4), substr($dnums[1],0,4) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n     }<br \/>\n   } else if (preg_match('\/([0-9]{1})\\\/([0-9]{1})\/i', $viapm)) {<br \/>\n       $dnums=explode('\/', $viapm);<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[1]=explode(' ', $dnums[1])[0];<br \/>\n       $dnums[1]=explode(',', $dnums[1])[0];<br \/>\n       if (substr(('0' . $dnums[0]),-2,2) &gt; '12') {<br \/>\n       $viapm=str_replace($dnums[0] . '\/' . $dnums[1], '([0-9]{4})' . substr(('0' . $dnums[1]),-2,2) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n       } else {<br \/>\n       $viapm=str_replace($dnums[0] . '\/' . $dnums[1], '([0-9]{4})' . substr(('0' . $dnums[0]),-2,2) . substr(('0' . $dnums[1]),-2,2), $viapm);<br \/>\n       }<br \/>\n   } else if (preg_match('\/([0-9]{1})\\-([0-9]{1})\/i', $viapm)) {<br \/>\n       $dnums=explode('-', $viapm);<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[1]=explode(' ', $dnums[1])[0];<br \/>\n       $dnums[1]=explode(',', $dnums[1])[0];<br \/>\n       if (substr(('0' . $dnums[0]),-2,2) &gt; '12') {<br \/>\n       $viapm=str_replace($dnums[0] . '-' . $dnums[1], '([0-9]{4})' . substr(('0' . $dnums[1]),-2,2) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n       } else {<br \/>\n       $viapm=str_replace($dnums[0] . '-' . $dnums[1], '([0-9]{4})' . substr(('0' . $dnums[0]),-2,2) . substr(('0' . $dnums[1]),-2,2), $viapm);<br \/>\n       }<br \/>\n   } else if (preg_match('\/([0-9]{1})\\ ([0-9]{1})\/i', $viapm)) {<br \/>\n       $thiszero=-1;<br \/>\n       for ($ik=0; $ik&lt;strlen($viapm); $ik++) {<br \/>\n         if ($thiszero &lt; 0) {<br \/>\n           if (substr(substr($viapm, $ik),0,1) &gt;= '0' && substr(substr($viapm, $ik),0,1) &lt;= '9') {<br \/>\n             $thiszero=$ik;<br \/>\n           }<br \/>\n         }<br \/>\n       }<br \/>\n       $dnums=explode(' ', substr($viapm, max($thiszero,0)));<br \/>\n       $dnums[0]=explode(',', $dnums[0])[-1 + sizeof(explode(',', $dnums[0]))];<br \/>\n       $dnums[0]=explode(' ', $dnums[0])[-1 + sizeof(explode(' ', $dnums[0]))];<br \/>\n       $dnums[1]=explode(' ', $dnums[1])[0];<br \/>\n       $dnums[1]=explode(',', $dnums[1])[0];<br \/>\n       if (substr(('0' . $dnums[0]),-2,2) &gt; '12') {<br \/>\n       $viapm=str_replace($dnums[0] . ' ' . $dnums[1], '([0-9]{4})' . substr(('0' . $dnums[1]),-2,2) . substr(('0' . $dnums[0]),-2,2), $viapm);<br \/>\n       } else {<br \/>\n       $viapm=str_replace($dnums[0] . ' ' . $dnums[1], '([0-9]{4})' . substr(('0' . $dnums[0]),-2,2) . substr(('0' . $dnums[1]),-2,2), $viapm);<br \/>\n       }<br \/>\n   }<\/font><br \/>\n   for ($j=1; $j&lt;sizeof($zobits); $j++) {<br \/>\n     $title=explode(\"&gt;\",$zobits[$j])[-1 + sizeof(explode(\"&gt;\",$zobits[$j]))];<br \/>\n     \/\/if (eregi($viapm, $title)) {<br \/>\n     if (preg_match('\/' . <font color=blue>$previa . <\/font>$viapm . '\/i', $title)) {<br \/>\n       $onclick=\" onchange=\";<br \/>\n       $obits.=str_replace('65.254.93.32','www.rjmprogramming.com.au',str_replace('65.254.95.247','www.rjmprogramming.com.au',\"\\n&lt;option \" . str_replace(\"_blank\",\"myi\",str_replace(\"windowopen\",\"window.open\",explode(\"&lt;option \", $zobits[$j])[-1 + sizeof(explode(\"&lt;option \", $zobits[$j]))]))) . \"&lt;\/option&gt;\");<br \/>\n     }<br \/>\n   }<br \/>\n   }<br \/>\n }<br \/>\n return $obits;<br \/>\n}<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=\"_blank\" href='\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-blog-search-title-and-posting-date-checkbox-tutorial\/' rel=\"noopener\">WordPress Blog Search Title and Posting Date Checkbox Tutorial<\/a>.<\/p-->\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d71894' onclick='var dv=document.getElementById(\"d71894\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/date\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d71894' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re back at this WordPress Blog&#8217;s Search textbox inhouse checkbox tailoring functionality today. All the user will initially see is that one checkbox that used to be labelled &#8220;Title RE&#8221; is now labelled &#8220;Post RE&#8221; because &#8230; as well as &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/wordpress-blog-search-title-and-posting-date-checkbox-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[202,301,367,431,432,932,997,1761,5409,1110,1866,1268,2167,1319,1324,1325,3276],"class_list":["post-71894","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-checkbox","tag-date","tag-dropdown","tag-filter","tag-filtering","tag-php","tag-programming","tag-prompt","tag-publication-date","tag-search","tag-select","tag-theme","tag-title","tag-tutorial","tag-twentyten","tag-twentyten-theme","tag-wordpress-blog"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71894"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=71894"}],"version-history":[{"count":6,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71894\/revisions"}],"predecessor-version":[{"id":71901,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/71894\/revisions\/71901"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=71894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=71894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=71894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}