Topic: How to get rid of search by zipcode on the listing page
I know how to get rid of the main search (search=false) but that doesn't get rid of search by zipcode.
here is a link to the page:
http://bcfacilitators.ca/members/facilitator-listings/
You are not logged in. Please login or register.
ternstyle - Forum → Members List Plugin → How to get rid of search by zipcode on the listing page
I know how to get rid of the main search (search=false) but that doesn't get rid of search by zipcode.
here is a link to the page:
http://bcfacilitators.ca/members/facilitator-listings/
radius=false
Thanks so much it worked like a charm!!!
Sorry, I'm trying to work out how you did that as I don't need the postcode or search bits either, where do you turn it off? I'm searching through the plugin now and can't work out where to turn off those functions.
When you added the following shortcode to the page,
[ members-list search=true alpha=true pagination=true pagination2=true sort=true ]
Add radius=false inside the brackets. this will get rid of the search by zipcode.
Thanks winterses!
I am also trying to get rid of the zip code section of the form. I made a members.php file as follows and selected it as the template for the page. But all that shows up is the shortcode. (Note, this is the first template I have made.)
<?php
/*
Template Name: Members
*/
?>
<?php
/*
Page
Establishes the iFeature Pro page tempate.
Version: 3.0
Copyright (C) 2011 CyberChimps
*/
/*
Header call. */
get_header();
/* End header. */
/* Define global variables. */
global $options, $post,
$themeslug;
$size = get_post_meta($post->ID, 'page_slider_size' , true);
$page_section_order = get_post_meta
($post->ID, 'page_section_order' , true);
if(!$page_section_order) {
$page_section_order =
'page_section';
}
/* End define global variables. */
/* Set slider hook based on page option */
if (preg_match
("/page_slider/", $page_section_order ) && $size == "1" ) {
remove_action ('synapse_page_slider',
'synapse_slider_content' );
add_action ('synapse_page_content_slider', 'synapse_slider_content' );
}
/* End set slider
hook*/
?>
<div class="container">
<div class="row">
<?php if (function_exists('synapse_breadcrumbs') &&
($options->get($themeslug.'_disable_breadcrumbs') == "1")) { synapse_breadcrumbs(); }?>
</div>
<div class="row">
<?php
foreach(explode(",", $page_section_order) as $key) {
$fn = 'synapse_' .
$key;
if(function_exists($fn)) {
call_user_func_array($fn,
array());
}
}
?>
</div><!--end row-->
<?php
$members = new tern_members;
$members->members(array('search'=>true,'alpha'=>true,'pagination'=>true,'pagination2'=>true,'sort'=>true));
?>
</div><!--end container-->
<?php get_footer(); ?>Try this:
$members->members(array('search'=>true,'alpha'=>true,'pagination'=>true,'pagination2'=>true,'sort'=>true,'radius'=false));
ternstyle - Forum → Members List Plugin → How to get rid of search by zipcode on the listing page
Powered by PunBB, supported by Informer Technologies, Inc.