Forums › Forums › Search & Filter Pro › Alphabetical Search and Filter Pro
Tagged: alphabetical, results, search and filter pro
- This topic has 7 replies, 2 voices, and was last updated 9 years, 10 months ago by Ross.
-
Anonymous(Private) January 16, 2015 at 9:44 pm #10377
I’m looking to make the results alphabetical. Am I missing something here?
Thanks!
Tim Brown – Freelance Web Design Minneapolis
Ross Moderator(Private) January 19, 2015 at 2:35 pm #10481Hey Tim
I’m not sure which version of the plugin you’re on – can you update to 1.4?
In this version, there is a section where you can set the default sort order.
Thanks
Ross Moderator(Private) January 19, 2015 at 4:24 pm #10510Hey Tim, the product page has a link to the docs 😉 Should put that info here in the forums too I guess – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-automatic-updates
Anonymous(Private) January 20, 2015 at 5:08 pm #10617Thanks Ross… I love this pugin and am using it for this bad-ass site http://deneenpottery.com .. For whatever reason using the Alphabetical option is not working when I search for retailers here deneenpottery.com/retailers .
Ton a lot on the search template code is changed in this case <?php
while ($query->have_posts())
{
$query->the_post();?>
<div class=”individual-result”>
<span><?php the_title(); ?></span>
<span class=”city-state”><?php the_field(“a_city”); ?>, <?php the_field(“a_state”); ?></span>
” target=”_blank”>Website
<?php the_field(“city”); ?>, <?php the_field(“a_state”); ?>”><i class=”fa fa-map-marker”></i>
<span class=”map-it”>Map It</span>
</div><?php
}
?><br>Page <?php echo $query->query[‘paged’]; ?> of <?php echo $query->max_num_pages; ?><br />
[edit] you can place code in back ticks
`
Ross Moderator(Private) January 20, 2015 at 10:50 pm #10653Hey Tim, the site looks cool!
So to confirm your settings look like:
?
If so, them it might be another plugin or some custom code. The WordPress action pre_get_posts can modify the search query and add its own sorting.
Well, this is the intended idea of the hook but when people don’t implement that hook carefully it can affect all sorts of things throughout the site.
I would start by disabling other plugins to see if there is interference, and as a last resort I would try one of the default WP themes.
Thanks
-
AuthorPosts