Feature Stories

Feature Stories

'; foreach (range(date('Y'), $earliest_year) as $x) { if($already_selected_value == $x) echo ''; else echo ''; } echo ''; ?> '; for ($m=1; $m<=12; $m++) { if($sel_mnth == $m) echo ' '; else echo ' '; } echo ''; ?>
get_results($msql); $pagecount = count($pages1); $pages = $wpdb->get_results($sql); $count = count($pages); if($eyear!="select"){ if($pagecount > 0){ for($i = 0; $i < $count; $i++){ $sqlimage = "SELECT meta_value FROM wp_postmeta WHERE meta_key = '_wp_attached_file' AND post_id = (SELECT meta_value FROM wp_postmeta WHERE meta_key = 'main_image' AND post_id = ".$pages[$i]->ID." )"; $image_data = $wpdb->get_results($sqlimage); $sqldate = "(SELECT meta_value FROM wp_postmeta WHERE meta_key = 'date' AND post_id = ".$pages[$i]->ID.")"; $date_data = $wpdb->get_results($sqldate); $sqlauthor = "(SELECT meta_value FROM wp_postmeta WHERE meta_key = 'author' AND post_id = ".$pages[$i]->ID." )"; $author = $wpdb->get_results($sqlauthor); $sqlword="(SELECT post_content FROM wp_posts WHERE ID = ".$pages[$i]->ID.")"; $words = $wpdb->get_results($sqlword); ?>

post_title; ?>

By: meta_value ?>

Date: meta_value; ?>

post_content; if (strlen($string) > 200): $stringCut = substr($string, 0, 200); ?>

... Read More

No records found of feature stories. Please refine your search and try again.
'; } } if($eyear=="select" && $emonth!="select") { echo " "; } else if($eyear=="select" && $emonth=="select") { echo " "; } if(isset($pg)) { $totalPages = ceil($pagecount/$perpage); if($totalPages > 1) { echo "
"; echo "
    "; if((isset($_POST['esubmit']) && $eyear!="select" && $emonth!="select") || (isset($_GET['eyear']) && isset($_GET['emonth']))){ if($pg > 1 ) echo "
  • Previous
  • "; for($i=1; $i <= $totalPages; $i++) { if($i == ($pg-2)) echo "
  • $i
  • "; if($i == ($pg-1)) echo "
  • $i
  • "; if($i == $pg) echo "
  • $i
  • "; if($i == ($pg+1)) echo "
  • $i
  • "; if($i == ($pg+2)) echo "
  • $i
  • "; } if($pg != $totalPages ) echo "
  • Next
  • "; } else if((isset($_POST['esubmit']) && $eyear!="select") || (isset($_GET['eyear']))){ if($pg > 1 ) echo "
  • Previous
  • "; for($i=1; $i <= $totalPages; $i++) { if($i == ($pg-2)) echo "
  • $i
  • "; if($i == ($pg-1)) echo "
  • $i
  • "; if($i == $pg) echo "
  • $i
  • "; if($i == ($pg+1)) echo "
  • $i
  • "; if($i == ($pg+2)) echo "
  • $i
  • "; } if($pg != $totalPages ) echo "
  • Next
  • "; } else { if($pg > 1 ) echo "
  • Previous
  • "; for($i=1; $i <= $totalPages; $i++) { if($i == ($pg-2)) echo "
  • $i
  • "; if($i == ($pg-1)) echo "
  • $i
  • "; if($i == $pg) echo "
  • $i
  • "; if($i == ($pg+1)) echo "
  • $i
  • "; if($i == ($pg+2)) echo "
  • $i
  • "; } if($pg != $totalPages ) echo "
  • Next
  • "; } echo "
"; echo "
"; } } ?>