Skip to content

Instantly share code, notes, and snippets.

@dhrobbins
Created May 20, 2015 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dhrobbins/12e28031861eaff64df7 to your computer and use it in GitHub Desktop.
Save dhrobbins/12e28031861eaff64df7 to your computer and use it in GitHub Desktop.
[2015-20-05 6:30:11][notice][555cc4a378e56]
[2015-20-05 6:30:11][notice][555cc4a378e56] ========== INIT 555cc4a378e56 2.5.4 ==========
[2015-20-05 6:30:11][notice][555cc4a378e56]
[2015-20-05 6:30:11][notice][555cc4a378e56] checkForMainQuery(): It is the main query
[2015-20-05 6:30:11][notice][555cc4a378e56]
[2015-20-05 6:30:11][notice][555cc4a378e56] ========== END 555cc4a378e56 ==========
[2015-20-05 6:30:11][notice][555cc4a378e56]
[2015-20-05 6:30:12][notice][555cc4a482e1d]
[2015-20-05 6:30:12][notice][555cc4a482e1d] ========== INIT 555cc4a482e1d 2.5.4 ==========
[2015-20-05 6:30:12][notice][555cc4a482e1d]
[2015-20-05 6:30:12][notice][555cc4a482e1d] checkForMainQuery(): It is the main query
[2015-20-05 6:30:13][notice][555cc4a482e1d]
[2015-20-05 6:30:13][notice][555cc4a482e1d] ========== END 555cc4a482e1d ==========
[2015-20-05 6:30:13][notice][555cc4a482e1d]
[2015-20-05 6:30:13][notice][555cc4a5186a8]
[2015-20-05 6:30:13][notice][555cc4a5186a8] ========== INIT 555cc4a5186a8 2.5.4 ==========
[2015-20-05 6:30:13][notice][555cc4a5186a8]
[2015-20-05 13:30:13][notice][555cc4a5186a8]
[2015-20-05 13:30:13][notice][555cc4a5186a8] ========== END 555cc4a5186a8 ==========
[2015-20-05 13:30:13][notice][555cc4a5186a8]
[2015-20-05 6:30:15][notice][555cc4a724367]
[2015-20-05 6:30:15][notice][555cc4a724367] ========== INIT 555cc4a724367 2.5.4 ==========
[2015-20-05 6:30:15][notice][555cc4a724367]
[2015-20-05 6:30:15][notice][555cc4a724367] checkForMainQuery(): It is the main query
[2015-20-05 6:30:15][notice][555cc4a724367]
[2015-20-05 6:30:15][notice][555cc4a724367] ========== END 555cc4a724367 ==========
[2015-20-05 6:30:15][notice][555cc4a724367]
[2015-20-05 6:30:24][notice][555cc4b0356c5]
[2015-20-05 6:30:24][notice][555cc4b0356c5] ========== INIT 555cc4b0356c5 2.5.4 ==========
[2015-20-05 6:30:24][notice][555cc4b0356c5]
[2015-20-05 6:30:24][notice][555cc4b0356c5] checkForMainQuery(): It is the main query
[2015-20-05 6:30:24][notice][555cc4b0356c5] It is a search
[2015-20-05 6:30:24][notice][555cc4b0356c5] maybeCancelWpQuery() canceled the query
[2015-20-05 6:30:24][notice][555cc4b0356c5] wpSearch()
[2015-20-05 6:30:24][notice][555cc4b0356c5] $wpPaged = 1
[2015-20-05 6:30:24][notice][555cc4b0356c5] $terms = 'mi frp'
[2015-20-05 6:30:24][notice][555cc4b0356c5] $terms after searchwp_terms = 'mi frp'
[2015-20-05 6:30:24][notice][555cc4b0356c5] $terms after sanitization = array ( 0 => 'mi', 1 => 'frp', )
[2015-20-05 6:30:24][notice][555cc4b0356c5] $order = DESC
[2015-20-05 6:30:24][notice][555cc4b0356c5] $maxSearchTerms = 6
[2015-20-05 6:30:24][notice][555cc4b0356c5] SearchWPSearch __construct()
[2015-20-05 6:30:24][notice][555cc4b0356c5] $args = array ( 'terms' => array ( 0 => 'mi', 1 => 'frp', ), 'engine' => 'default', 'page' => 1, 'posts_per_page' => 999999, 'order' => 'DESC', 'load_posts' => true, 'offset' => 0, )
[2015-20-05 6:30:24][notice][555cc4b0356c5] isValidEngine( default ) = true
[2015-20-05 6:30:24][notice][555cc4b0356c5] $terms = array ( 0 => 'mi', 1 => 'frp', )
[2015-20-05 6:30:24][notice][555cc4b0356c5] searchwp_pre_search_terms $terms = array ( 0 => 'mi', 1 => 'frp', )
[2015-20-05 6:30:24][notice][555cc4b0356c5] query()
[2015-20-05 6:30:24][notice][555cc4b0356c5] queryForPostIDs()
[2015-20-05 6:30:24][notice][555cc4b0356c5] $excludeIDs = array ( )
[2015-20-05 6:30:24][notice][555cc4b0356c5] After taxonomy exclusion $excludeIDs = array ( )
[2015-20-05 6:30:24][notice][555cc4b0356c5] $doAnd = true
[2015-20-05 6:30:24][notice][555cc4b0356c5] $andFields = array ( 0 => 'title', 1 => 'content', 2 => 'slug', 3 => 'excerpt', 4 => 'comment', 5 => 'tax', 6 => 'meta', )
[2015-20-05 6:30:24][notice][555cc4b0356c5] $postsWithTermPresent = array ( 0 => 585, 1 => 4132, 2 => 4135, 3 => 4139, 4 => 4141, 5 => 4146, 6 => 4151, 7 => 4153, 8 => 4155, 9 => 4486, 10 => 6551, 11 => 6868, 12 => 6876, 13 => 6878, 14 => 7698, 15 => 7700, 16 => 9680, 17 => 9998, 18 => 10002, 19 => 11075, 20 => 11086, 21 => 11091, 22 => 11094, 23 => 11097, 24 => 11538, 25 => 12149, 26 => 12155, 27 => 12955, 28 => 14658, 29 => 15601, 30 => 15608, 31 => 15612, 32 => 16016, 33 => 16022, 34 => 17149, 35 => 5965, 36 => 6019, 37 => 6687, 38 => 9313, 39 => 423, 40 => 692, 42 => 861, 44 => 865, 46 => 867, 48 => 2569, 65 => 7702, 69 => 10239, 78 => 13161, 80 => 13242, 82 => 13395, 84 => 13446, 92 => 16117, 94 => 17282, )
[2015-20-05 6:30:24][notice][555cc4b0356c5] $postsWithTermPresent = array ( 0 => 6313, )
[2015-20-05 6:30:24][notice][555cc4b0356c5] Search results: array ( 0 => 16117, 1 => 13446, 2 => 13395, 3 => 13242, 4 => 13161, 5 => 10239, 6 => 2569, 7 => 867, 8 => 865, 9 => 861, 10 => 692, 11 => 423, 12 => 17282, 13 => 17149, 14 => 16022, 15 => 16016, 16 => 15601, 17 => 15608, 18 => 15612, 19 => 14658, 20 => 12955, 21 => 12155, 22 => 12149, 23 => 11097, 24 => 11094, 25 => 11091, 26 => 11086, 27 => 11075, 28 => 9998, 29 => 10002, 30 => 9680, 31 => 7698, 32 => 7700, 33 => 7702, 34 => 6878, 35 => 6868, 36 => 6876, 37 => 6551, 38 => 4135, 39 => 4486, 40 => 4132, 41 => 4139, 42 => 4141, 43 => 4146, 44 => 4151, 45 => 4153, 46 => 4155, )
[2015-20-05 6:30:24][notice][555cc4b0356c5] found_posts = 47
[2015-20-05 6:30:24][notice][555cc4b0356c5] max_num_pages = 1
[2015-20-05 6:30:25][notice][555cc4b0356c5]
[2015-20-05 6:30:25][notice][555cc4b0356c5] ========== END 555cc4b0356c5 ==========
[2015-20-05 6:30:25][notice][555cc4b0356c5]
[2015-20-05 6:30:31][notice][555cc4b727b22]
[2015-20-05 6:30:31][notice][555cc4b727b22] ========== INIT 555cc4b727b22 2.5.4 ==========
[2015-20-05 6:30:31][notice][555cc4b727b22]
[2015-20-05 6:30:31][notice][555cc4b727b22] checkForMainQuery(): It is the main query
[2015-20-05 6:30:31][notice][555cc4b727b22] It is a search
[2015-20-05 6:30:31][notice][555cc4b727b22] maybeCancelWpQuery() canceled the query
[2015-20-05 6:30:31][notice][555cc4b727b22] wpSearch()
[2015-20-05 6:30:31][notice][555cc4b727b22] $wpPaged = 1
[2015-20-05 6:30:31][notice][555cc4b727b22] $terms = 'mi rfp'
[2015-20-05 6:30:31][notice][555cc4b727b22] $terms after searchwp_terms = 'mi rfp'
[2015-20-05 6:30:31][notice][555cc4b727b22] $terms after sanitization = array ( 0 => 'mi', 1 => 'rfp', )
[2015-20-05 6:30:31][notice][555cc4b727b22] $order = DESC
[2015-20-05 6:30:31][notice][555cc4b727b22] $maxSearchTerms = 6
[2015-20-05 6:30:31][notice][555cc4b727b22] SearchWPSearch __construct()
[2015-20-05 6:30:31][notice][555cc4b727b22] $args = array ( 'terms' => array ( 0 => 'mi', 1 => 'rfp', ), 'engine' => 'default', 'page' => 1, 'posts_per_page' => 999999, 'order' => 'DESC', 'load_posts' => true, 'offset' => 0, )
[2015-20-05 6:30:31][notice][555cc4b727b22] isValidEngine( default ) = true
[2015-20-05 6:30:31][notice][555cc4b727b22] $terms = array ( 0 => 'mi', 1 => 'rfp', )
[2015-20-05 6:30:31][notice][555cc4b727b22] searchwp_pre_search_terms $terms = array ( 0 => 'mi', 1 => 'rfp', )
[2015-20-05 6:30:31][notice][555cc4b727b22] query()
[2015-20-05 6:30:31][notice][555cc4b727b22] queryForPostIDs()
[2015-20-05 6:30:31][notice][555cc4b727b22] $excludeIDs = array ( )
[2015-20-05 6:30:31][notice][555cc4b727b22] After taxonomy exclusion $excludeIDs = array ( )
[2015-20-05 6:30:31][notice][555cc4b727b22] $doAnd = true
[2015-20-05 6:30:31][notice][555cc4b727b22] $andFields = array ( 0 => 'title', 1 => 'content', 2 => 'slug', 3 => 'excerpt', 4 => 'comment', 5 => 'tax', 6 => 'meta', )
[2015-20-05 6:30:31][notice][555cc4b727b22] $postsWithTermPresent = array ( 0 => 585, 1 => 4132, 2 => 4135, 3 => 4139, 4 => 4141, 5 => 4146, 6 => 4151, 7 => 4153, 8 => 4155, 9 => 4486, 10 => 6551, 11 => 6868, 12 => 6876, 13 => 6878, 14 => 7698, 15 => 7700, 16 => 9680, 17 => 9998, 18 => 10002, 19 => 11075, 20 => 11086, 21 => 11091, 22 => 11094, 23 => 11097, 24 => 11538, 25 => 12149, 26 => 12155, 27 => 12955, 28 => 14658, 29 => 15601, 30 => 15608, 31 => 15612, 32 => 16016, 33 => 16022, 34 => 17149, 35 => 5965, 36 => 6019, 37 => 6687, 38 => 9313, 39 => 423, 40 => 692, 42 => 861, 44 => 865, 46 => 867, 48 => 2569, 65 => 7702, 69 => 10239, 78 => 13161, 80 => 13242, 82 => 13395, 84 => 13446, 92 => 16117, 94 => 17282, )
[2015-20-05 6:30:31][notice][555cc4b727b22] $postsWithTermPresent = array ( 0 => 300, 1 => 354, 2 => 358, 3 => 867, 4 => 423, 5 => 887, 7 => 892, 9 => 900, 11 => 908, 13 => 916, 15 => 924, 17 => 932, 19 => 940, 21 => 964, 23 => 972, 25 => 980, 27 => 988, 29 => 996, 31 => 1004, 33 => 1012, 35 => 1020, 37 => 1024, 39 => 1036, 41 => 1040, 43 => 1052, 45 => 1060, 47 => 1064, 49 => 1076, 51 => 1080, 53 => 1092, 55 => 1105, 57 => 1110, 59 => 1114, 61 => 1126, 63 => 1130, 65 => 1142, 67 => 1146, 69 => 1158, 71 => 1162, 73 => 1182, 75 => 1190, 77 => 1194, 79 => 1206, 81 => 1210, 83 => 1222, 85 => 1226, 87 => 1238, 89 => 1242, 91 => 1254, 93 => 1258, 95 => 1270, 97 => 1274, 99 => 1286, 101 => 1294, 103 => 1298, 105 => 2559, 107 => 3056, 108 => 3387, 109 => 3491, 110 => 3846, 111 => 3924, 112 => 3961, 113 => 4017, 114 => 4443, 115 => 4563, 116 => 4581, 117 => 4606, 118 => 4626, 119 => 5371, 120 => 5932, 121 => 6014, 122 => 6019, 123 => 6058, 124 => 6083, 125 => 6089, 126 => 6327, 127 => 6377, 128 => 6392, 129 => 6426, 130 => 6444, 131 => 6451, 132 => 6460, 133 => 6469, 134 => 6482, 135 => 6685, 136 => 6687, 137 => 6755, 138 => 6766, 139 => 6809, 140 => 6847, 141 => 6878, 142 => 7220, 143 => 7358, 144 => 7558, 145 => 8048, 146 => 9269, 148 => 9298, 149 => 9318, 150 => 9393, 151 => 9436, 152 => 9470, 153 => 9495, 154 => 9501, 155 => 9509, 156 => 9526, 157 => 9542, 158 => 9545, 159 => 9548, 160 => 9578, 161 => 9593, 162 => 9609, 163 => 9612, 164 => 9842, 165 => 9880, 166 => 10030, 167 => 10172, 168 => 10373, 169 => 10461, 170 => 10465, 171 => 10486, 172 => 10554, 173 => 10587, 174 => 10635, 175 => 10640, 176 => 10646, 177 => 10662, 178 => 10686, 179 => 10692, 180 => 10732, 181 => 10740, 182 => 10776, 183 => 10793, 184 => 10903, 185 => 10916, 186 => 10929, 187 => 10956, 188 => 10985, 189 => 10993, 190 => 11019, 191 => 11047, 192 => 11062, 193 => 11075, 194 => 11103, 195 => 11139, 196 => 11156, 197 => 11185, 198 => 11194, 199 => 11200, 200 => 11238, 201 => 11300, 202 => 11314, 203 => 11321, 204 => 11363, 205 => 11376, 206 => 11411, 207 => 11427, 208 => 11456, 209 => 11484, 210 => 11550, 211 => 11556, 212 => 11564, 213 => 11739, 214 => 11914, 215 => 11927, 216 => 11933, 217 => 11936, 218 => 12077, 219 => 12481, 220 => 12486, 221 => 12545, 222 => 12549, 223 => 12559, 224 => 12589, 225 => 12593, 226 => 12613, 227 => 12641, 228 => 12652, 229 => 12689, 230 => 12697, 231 => 12722, 232 => 12770, 233 => 12883, 234 => 13051, 235 => 13076, 236 => 10239, 237 => 13080, 239 => 13082, 241 => 13118, 243 => 13120, 245 => 13122, 247 => 13124, 249 => 13126, 251 => 13128, 253 => 13130, 255 => 13132, 257 => 13137, 259 => 13139, 261 => 13141, 263 => 13143, 265 => 13145, 267 => 13147, 269 => 13149, 271 => 13151, 273 => 13153, 275 => 13155, 277 => 13157, 279 => 13159, 281 => 13161, 283 => 13163, 285 => 13165, 287 => 13167, 289 => 13169, 291 => 13171, 293 => 13173, 295 => 13175, 297 => 13177, 299 => 13179, 301 => 13181, 303 => 13183, 305 => 13185, 307 => 13187, 309 => 13189, 311 => 13191, 313 => 13193, 315 => 13195, 317 => 13197, 319 => 13199, 321 => 13201, 323 => 13203, 325 => 13205, 327 => 13207, 329 => 13209, 331 => 13211, 333 => 13213, 335 => 13215, 337 => 13217, 339 => 13627, 340 => 13711, 341 => 13759, 342 => 13830, 343 => 13885, 344 => 13888, 345 => 13908, 346 => 13933, 347 => 13937, 348 => 13983, 349 => 14003, 350 => 14107, 352 => 14130, 353 => 14364, 354 => 14381, 355 => 14441, 356 => 14445, 357 => 14592, 358 => 14599, 359 => 14603, 360 => 14608, 361 => 14629, 362 => 14639, 363 => 14773, 364 => 15452, 365 => 15459, 366 => 15515, 367 => 16066, 368 => 16427, 369 => 16477, 370 => 16525, 371 => 16536, 372 => 16561, 373 => 16968, 374 => 17301, 375 => 17303, 378 => 5914, 379 => 5925, 381 => 5936, 382 => 5939, 383 => 5942, 384 => 5948, 385 => 5956, 386 => 5965, 387 => 5968, 388 => 5971, 389 => 5977, 390 => 5980, 391 => 6001, 392 => 6005, 394 => 6028, 395 => 6031, 396 => 6040, 397 => 6043, 398 => 6046, 399 => 6052, 401 => 6061, 402 => 6285, 403 => 6294, 404 => 6316, 405 => 6321, 406 => 6333, 407 => 6336, 408 => 6342, 409 => 6345, 410 => 6351, 412 => 6395, 413 => 6401, 414 => 6404, 415 => 6677, 416 => 6680, 417 => 6683, 418 => 6772, 419 => 6788, 420 => 6794, 421 => 6797, 422 => 7208, 423 => 7211, 424 => 7217, 426 => 7224, 427 => 9313, 429 => 9321, 430 => 9366, 431 => 9371, 432 => 9374, 433 => 9399, 434 => 9445, 435 => 9448, 436 => 9451, 437 => 9454, 438 => 9463, 439 => 9467, 441 => 9539, 442 => 9569, 443 => 9575, 444 => 9581, 445 => 9587, 446 => 9590, 447 => 9600, 448 => 9603, 449 => 10092, 450 => 10330, 451 => 12379, 452 => 14415, 453 => 15485, 454 => 3034, 456 => 3125, 460 => 4350, 462 => 4526, 463 => 4601, 464 => 5195, 467 => 6632, 471 => 7095, 472 => 7098, 473 => 7504, 474 => 7577, 475 => 7627, 476 => 7639, 477 => 8024, 479 => 8059, 481 => 9348, 482 => 9398, 485 => 9913, 487 => 10130, 489 => 10229, 490 => 10256, 495 => 10498, 496 => 10530, 497 => 10561, 510 => 10944, 524 => 11226, 525 => 11234, 526 => 11295, 528 => 11308, 530 => 11317, 532 => 11357, 537 => 11449, 539 => 11481, 541 => 11538, 542 => 11547, 544 => 11553, 547 => 11611, 549 => 11775, 550 => 11814, 552 => 11924, 556 => 12474, 559 => 12502, 560 => 12536, 564 => 12567, 565 => 12570, 566 => 12575, 567 => 12584, 570 => 12636, 573 => 12657, 574 => 12669, 578 => 12731, 579 => 12865, 586 => 13524, 587 => 13561, 588 => 13755, 590 => 13821, 591 => 13827, 597 => 14019, 598 => 14088, 601 => 14408, 602 => 14410, 609 => 14611, 610 => 14614, 611 => 14617, 612 => 14625, 614 => 14632, 615 => 14636, 617 => 14770, 619 => 14776, 620 => 14840, 624 => 15668, 625 => 15919, 626 => 15976, 629 => 16515, 632 => 16791, 633 => 17282, )
[2015-20-05 6:30:31][notice][555cc4b727b22] Search results: array ( 0 => 13161, 1 => 10239, 2 => 867, 3 => 423, 4 => 17282, 5 => 11075, 6 => 6878, )
[2015-20-05 6:30:31][notice][555cc4b727b22] found_posts = 7
[2015-20-05 6:30:31][notice][555cc4b727b22] max_num_pages = 1
[2015-20-05 6:30:31][notice][555cc4b727b22]
[2015-20-05 6:30:31][notice][555cc4b727b22] ========== END 555cc4b727b22 ==========
[2015-20-05 6:30:31][notice][555cc4b727b22]
[2015-20-05 6:32:13][notice][555cc51ce887d]
[2015-20-05 6:32:13][notice][555cc51ce887d] ========== INIT 555cc51ce887d 2.5.4 ==========
[2015-20-05 6:32:13][notice][555cc51ce887d]
[2015-20-05 13:32:13][notice][555cc51ce887d]
[2015-20-05 13:32:13][notice][555cc51ce887d] ========== END 555cc51ce887d ==========
[2015-20-05 13:32:13][notice][555cc51ce887d]
[2015-20-05 6:34:04][notice][555cc58c698e2]
[2015-20-05 6:34:04][notice][555cc58c698e2] ========== INIT 555cc58c698e2 2.5.4 ==========
[2015-20-05 6:34:04][notice][555cc58c698e2]
[2015-20-05 6:34:04][notice][555cc58c698e2] checkForMainQuery(): It is the main query
[2015-20-05 6:34:04][notice][555cc58c698e2] It is a search
[2015-20-05 6:34:04][notice][555cc58c698e2] maybeCancelWpQuery() canceled the query
[2015-20-05 6:34:04][notice][555cc58c698e2] wpSearch()
[2015-20-05 6:34:04][notice][555cc58c698e2] $wpPaged = 1
[2015-20-05 6:34:04][notice][555cc58c698e2] $terms = 'michigan'
[2015-20-05 6:34:04][notice][555cc58c698e2] $terms after searchwp_terms = 'michigan'
[2015-20-05 6:34:04][notice][555cc58c698e2] $terms after sanitization = array ( 0 => 'michigan', )
[2015-20-05 6:34:04][notice][555cc58c698e2] $order = DESC
[2015-20-05 6:34:04][notice][555cc58c698e2] $maxSearchTerms = 6
[2015-20-05 6:34:04][notice][555cc58c698e2] SearchWPSearch __construct()
[2015-20-05 6:34:04][notice][555cc58c698e2] $args = array ( 'terms' => array ( 0 => 'michigan', ), 'engine' => 'default', 'page' => 1, 'posts_per_page' => 999999, 'order' => 'DESC', 'load_posts' => true, 'offset' => 0, )
[2015-20-05 6:34:04][notice][555cc58c698e2] isValidEngine( default ) = true
[2015-20-05 6:34:04][notice][555cc58c698e2] $terms = array ( 0 => 'michigan', )
[2015-20-05 6:34:04][notice][555cc58c698e2] searchwp_pre_search_terms $terms = array ( 0 => 'michigan', )
[2015-20-05 6:34:04][notice][555cc58c698e2] query()
[2015-20-05 6:34:04][notice][555cc58c698e2] queryForPostIDs()
[2015-20-05 6:34:04][notice][555cc58c698e2] $excludeIDs = array ( )
[2015-20-05 6:34:04][notice][555cc58c698e2] After taxonomy exclusion $excludeIDs = array ( )
[2015-20-05 6:34:04][notice][555cc58c698e2] $doAnd = false
[2015-20-05 6:34:04][notice][555cc58c698e2] $andFields = array ( 0 => 'title', 1 => 'content', 2 => 'slug', 3 => 'excerpt', 4 => 'comment', 5 => 'tax', 6 => 'meta', )
[2015-20-05 6:34:04][notice][555cc58c698e2] Search results: array ( 0 => 16117, 1 => 13446, 2 => 13395, 3 => 13242, 4 => 13161, 5 => 10239, 6 => 2569, 7 => 867, 8 => 865, 9 => 861, 10 => 692, 11 => 423, 12 => 17282, 13 => 17149, 14 => 16022, 15 => 16016, 16 => 15601, 17 => 15608, 18 => 15612, 19 => 14658, 20 => 12955, 21 => 12155, 22 => 12149, 23 => 11097, 24 => 11094, 25 => 11091, 26 => 11086, 27 => 11075, 28 => 9998, 29 => 10002, 30 => 9680, 31 => 7698, 32 => 7700, 33 => 7702, 34 => 6878, 35 => 6868, 36 => 6876, 37 => 6551, 38 => 4135, 39 => 4486, 40 => 4132, 41 => 4139, 42 => 4141, 43 => 4146, 44 => 4151, 45 => 4153, 46 => 4155, )
[2015-20-05 6:34:04][notice][555cc58c698e2] found_posts = 47
[2015-20-05 6:34:04][notice][555cc58c698e2] max_num_pages = 1
[2015-20-05 6:34:05][notice][555cc58c698e2]
[2015-20-05 6:34:05][notice][555cc58c698e2] ========== END 555cc58c698e2 ==========
[2015-20-05 6:34:05][notice][555cc58c698e2]
[2015-20-05 6:34:13][notice][555cc594f2522]
[2015-20-05 6:34:13][notice][555cc594f2522] ========== INIT 555cc594f2522 2.5.4 ==========
[2015-20-05 6:34:13][notice][555cc594f2522]
[2015-20-05 13:34:13][notice][555cc594f2522]
[2015-20-05 13:34:13][notice][555cc594f2522] ========== END 555cc594f2522 ==========
[2015-20-05 13:34:13][notice][555cc594f2522]
<?php
get_header();
global $query_string;
$query_args = explode("&", $query_string);
$search_query = array("posts_per_page"=>3);
$overviewTitleIssued = false;
$datapackagesTitleIssued = false;
$filesTitleIssued = false;
foreach($query_args as $key => $string) {
$query_split = explode("=", $string);
$search_query[$query_split[0]] = urldecode($query_split[1]);
} // foreach
//$my_query = new WP_Query($search_query);
?>
<div id="container" class="searchresults">
<div id="content">
<?php if ( have_posts() ) : ?>
<h1 class="page-title"><?php _e( 'Search Results for: ', 'hbd-theme' ); ?><span><?php the_search_query(); ?></span></h1>
<?php //global $wp_query; $total_pages = $wp_query->max_num_pages;
$total_pages = $wp_query->max_num_pages;
if ( $total_pages > 1 ) : ?>
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&laquo;</span> Older posts', 'hbd-theme' )) ?></div>
<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&raquo;</span>', 'hbd-theme' )) ?></div>
</div><!-- #nav-above -->
<?php endif; ?>
<div>Total Found: <?php echo $wp_query->found_posts ?></div>
<?php while ( have_posts() ) : the_post() ?>
<?php
if (is_user_logged_in()) {
$permalink = get_permalink();
if( 'attachment' == get_post_type() ) {
// if the result is a PDF, link directly to the file not the attachment page
$permalink = wp_get_attachment_url( $post->ID );
}
?>
<!-- RESULT START -->
<?php
if('page' == get_post_type() && $overviewTitleIssued == false){
$overviewTitleIssued = true;
?>
<div class="search-header">
<h2>Overviews</h2>
</div>
<?php }?>
<?php
if('post' == get_post_type() && $datapackageTitleIssued == false && $overviewTitleIssued == true){
$datapackageTitleIssued = true;
?>
<div class="search-header">
<h2 >Data Packages</h2>
</div>
<?php }?>
<div class="search-item" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php echo $permalink ?>" title="<?php printf( __('Permalink to %s', 'hbd-theme'), the_title_attribute('echo=0') ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php if ( $post->post_type == 'post' ) : ?>
<div class="entry-meta">
<span class="meta-prep meta-prep-author"><?php _e('By ', 'hbd-theme'); ?></span>
<span class="author vcard"><a class="url fn n" href="<?php echo get_author_link( false, $authordata->ID, $authordata->user_nicename ); ?>" title="<?php printf( __( 'View all posts by %s', 'hbd-theme' ), $authordata->display_name ); ?>"><?php the_author(); ?></a></span>
<span class="meta-sep"> | </span>
<span class="meta-prep meta-prep-entry-date"><?php _e('', 'hbd-theme'); ?></span>
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
</div><!-- .entry-meta -->
<?php endif; ?>
<?php if ( $post->post_type == 'post' ) : ?>
<div class="entry-summary">
<?php the_excerpt( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'hbd-theme' ) ); ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'hbd-theme' ) . '&after=</div>') ?>
</div><!-- .entry-summary -->
<?php endif; ?>
<?php if ( $post->post_type == 'post' || $post->post_type == 'page') : ?>
<div class="entry-utility">
<span class="cat-links"><span class="entry-utility-prep entry-utility-prep-cat-links"><?php _e( 'Posted in ', 'hbd-theme' ); ?></span><?php echo get_the_category_list(', '); ?></span>
</div><!-- #entry-utility -->
<?php endif; ?>
<span class="search-diags">[Debug Type: <?php echo $post->post_type ?> <?php the_tags( '<span class="tag-links"><span class="entry-utility-prep entry-utility-prep-tag-links">' . __('Tagged: ', 'hbd-theme' ) . '</span>', ", ", "</span>\n\t\t\t\t\t\t<span class=\"meta-sep\">|</span>\n" ) ?>]</span>
</div><!-- #post-<?php the_ID(); ?> -->
<?php } ?>
<?php endwhile; ?>
<?php the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'HMA' ),
'next_text' => __( 'Next page', 'HMA' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'HMA' ) . ' </span>',
) ); ?>
<?php else : ?>
<div id="post-0" class="post no-results not-found">
<h2 class="entry-title"><?php _e( 'Nothing Found', 'hbd-theme' ) ?></h2>
<div class="entry-content">
<p><?php _e( 'Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'hbd-theme' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
</div>
<?php endif; ?>
</div><!-- #content -->
<?php //get_sidebar(); ?>
</div><!-- #container -->
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment