$container_class = apply_filters( 'neve_container_class_filter', 'container', 'blog-archive' );
get_header();
$wrapper_classes = [ 'posts-wrapper' ];
if ( ! neve_is_new_skin() ) {
$wrapper_classes[] = 'row';
}
$load_before_after_hooks = get_theme_mod( 'neve_blog_archive_layout', 'grid' ) === 'default';
// chpater register function
function regUsertoChapter()
{
global $wpdb;
$currentuser=get_current_user_id();
$regchapter=$_POST['chapterID'];
$wpdb->get_results( "INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '$currentuser', 'user_chapter', '$regchapter');");
}
if(array_key_exists('regchapter', $_POST)) {
regUsertoChapter();
$_POST = array();
// unset($_POST);
}
//end chapter reg
?>
Join Your Local Chapter
$getcountry=$_GET['country'];
$getstate=$_GET['state'];
$getcity=$_GET['city'];
if(!empty($getcountry) && !empty($getstate) && !empty($getcity))
{
// $sql_search="SELECT * FROM `wp_posts` p, wp_postmeta pm where pm.meta_value='Los angelis' AND p.id=pm.post_id;";
$results = $wpdb->get_results( "SELECT * FROM `wp_posts` p, wp_postmeta pm where pm.meta_value='$getcity' AND p.id=pm.post_id;");
// echo "SELECT * FROM `wp_posts` p, wp_postmeta pm where pm.meta_value='$getcity' AND p.id=pm.post_id;";
}
elseif(!empty($getcountry) && !empty($getstate))
{
// $sql_search="SELECT * FROM `wp_posts` p, wp_postmeta pm where pm.meta_value='Los angelis' AND p.id=pm.post_id;";
$results = $wpdb->get_results( "SELECT * FROM `wp_posts` p, wp_postmeta pm where pm.meta_value='$getstate' AND p.id=pm.post_id;");
}
elseif(!empty($getcountry))
{
// $sql_search="SELECT * FROM `wp_posts` p, wp_postmeta pm where pm.meta_value='Los angelis' AND p.id=pm.post_id;";
$results = $wpdb->get_results( "SELECT * FROM `wp_posts` p, wp_postmeta pm where pm.meta_value='$getcountry' and pm.meta_key='wpsl_country' AND p.id=pm.post_id;");
}
else
{
}
?>