hi, thanks a lot for this amazing plugin…but right now it basically searches out my whole site as against the original intent which is to search through specified category.
Pls any help would be appreciated
Installed the plugin and put the shortcode in a text widget in the sidebar. Just shows up on the front-end as [sbc].
]]>Hi, The plugin doesn’t work on WP 3.8
The drop down list does not filter posts in the selected category.
The results should show only the names of doctors.
I do not want to show news post.
You can see the result in this link: https://www.clintegral.cl/clinica/integral/centro-medico/
Please I appreciate your help.
ESPA?OL:
Hola, El plugin no funciona en WP 3.8
La lista desplegable no filtra los post de la categoría seleccionada.
Los resultados deben mostrar sólo los nombres de los médicos.
No quiero que muestre los post de noticias.
The parameter name used in the form for searching by category is incorrect. Fortunately, it is very easy to modify the code to fix this.
1. Edit search-by-category.php (It’s in the “wp-content/plugins/search-by-category” directory)
2. Next, change the phrase ‘cat’ to ‘category’ on the following lines:
237: $cat_id = (int)$_GET['category'];
252: 'name' => 'category',
268: $cat_id = $_GET['category'] ? (int) $_GET['category'] : 0;
303: if ( isset($_REQUEST['s']) && isset($_REQUEST['category']) ){
306: $desired_cat = $_REQUEST['category'];
311: $wp_query->query_vars['category'] = "-{$excluded}";
This restores the search functionality. I haven’t tested it for exclusions because I don’t need it. If someone else wants to test for exclusions, post the results here and I will fix if neccessary.
]]>I love this plugin! Thanks!
I’m invoking SBC by placing a shortcode in a text widget. However, the resulting SBC form is being created OUTSIDE (i.e., BEFORE) the widget div.
Other widgets work fine with the desired content appearing within the widget div. Even the text widget title and text that I put next to the shortcode appear correctly within the widget div.
Is it possible that this is being caused by the plugin, not by the theme I’m using (https://cyberchimps.com/responsive-theme/)
You can see what is happening at: https://www.spanishconjugation.net/beta
]]>I run google custom search in my site . I replaced <?php the_search_query(); ?>” in searchform.php with google shortcode <gcse:searchresults-only></gcse:searchresults-only>
but when i use the search by category plugin i get google custom results not filtered by category. i would use the standard search for this plugin only and let the google custom search for the standard search query.
how can I do? thanks
Thank you for your plugin but it does not seem to work on my WordPress version 3.5.1
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Well, it warned me that it wasn’t supported with the newest WP version but I tried anyway. Unfortunately, while I see the settings area, I’m not seeing any changes on my blog.
However, I’m thinking I might have to disable Relevanssi (my current search plugin)…but I’m still researching if I’ll have to start from scratch (which I don’t want to have to do).
https://www.ads-software.com/extend/plugins/search-by-category/
]]>I have added the category ID’s to the exclude categories field, but upon searching for specific words, results show articles under these categories. Any suggestions?
https://www.ads-software.com/extend/plugins/search-by-category/
]]>hi every one,
can any one help to me to sort out searching problem with search by category. when user leaver search box blank and select no category it showing this msg
Nothing Found
Sorry, but nothing matched your search criteria. Please try again with some different keywords.
but i want that when user left blank search box it should show all the content how it is possible..
Thanks in advance.
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Beacuse the plugin base function bsc() uses
“echo $form;” to display search form; the search form only shows up at page or post begining.
But sometime we need to put search form anywhere in page or post.
I change the code as follow:
function bsc () {
…
return $form;
}
function sbc_shortcode($atts){
…
$form= sbc($focus, $hide_empty, $search_text, $only_cat, $excluded_cats, $exclude_child, $inall_exclude);
return $form;
}
After this change, you can put shortcode [sbc] anywhere in a page or post.
https://www.ads-software.com/extend/plugins/search-by-category/
]]>how can I limit the minimum number of words?
For example, I do not want search words like “the” “for” “a” and other …
https://www.ads-software.com/extend/plugins/search-by-category/
]]>We were just wondering if you would be kind enough to add an option to force a search term before performing a search. This would allow users to stop search requests for the default “Search For…” term.
Any help would be greatly appreciated. Thanks.
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Google page speed is advising to inline small css:
The following external resources have small response bodies. Inlining the response in HTML can reduce blocking of page rendering.
https://www.infolotnicze.pl/ should inline the following small resources:
https://www.infolotnicze.pl/wp-content/plugins/search-by-category/sbc-style.css
Any hints how to do this?
https://www.ads-software.com/extend/plugins/search-by-category/
]]>I’m using the php code instead of the shortcode but I want to be able to use the only_cat argument to eliminate the dropdown list. What’s the PHP code for that?? Thanks
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Is there a way make the plugin take the end-user to a custom result page instead of the default search.php??
I’m trying to use the plugin for a “service availability” widget where the visitors enter their zip code to check if we service their area. I’m creating posts with ZIP codes as titles and additional call-to-actions on the content. I want to have custom search result page for the plugin so I don’t have to edit/affect the search result page for my regular blog posts.
Is it possible to do that??
Thanks. Great plugin by the way
https://www.ads-software.com/extend/plugins/search-by-category/
]]>I’m not a techie so I have a problem. Could I put the search code into a box and make the letters more visible, like bigger font or something?
now on https://www.infolotnicze.pl the search is not visible for users.
Could you please help me with it?
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Hi, it dose not display custom post type category/tag in Search By Category Options. is there any solution or away to fix it.bests, bs
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Hi,
I used the short code method on a page. Without any word in the search field I clicked the search button. This generated a 403 forbidden page with the text:
You don’t have permission to access /?s=Zoeken+naar…&cat=0 on this server.
https://www.ads-software.com/extend/plugins/search-by-category/
]]>this plugin allows them to search for articles or posts within certian categories .. should be certain ??
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Hi,
I am using the following code, but when I attempt a search, all I am taken to is a blank white page. Using the shortcode is just the same.
Any help would be much appreciated.
<?php if(function_exists('sbc')){
sbc();
} else { ?>
<form role='search" method='get' id='searchform' class='searchForm' action='[fn function='get_home_url']'>
<div>
<input type='text' value='' name='s' id='s' style='width:190px;'>
<input type='submit' id='searchsubmit' value='Search' class='btn'>
</div>
</form>
<?php } ?>
https://www.ads-software.com/extend/plugins/search-by-category/
]]>after adding the php I am able to search some categories through the main search, but not all
Can’t use the shortcode as a widget because it overrides the css and takes over the sidebar or widget area and doesn’t display correctly.
I haven’t tested it beyond that because I can’t get it to display well enough to use. This is unfortunate, because it’s exactly what I need.
https://www.ads-software.com/extend/plugins/search-by-category/
]]>I need to be able to place text adn other content above the search interface. Currently everything I place on the page is placed after it. Suggestions?
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Hi,
i cant asign an image to the background.
background:transparent url(images/zoom.png) 0 center no-repeat;
Any idea?
https://www.ads-software.com/extend/plugins/search-by-category/
]]>There is no change to the search widget and the plugin does not constrain the search results in any way.
https://www.ads-software.com/extend/plugins/search-by-category/
]]>The search functionality is needed for the entire website.
Including Pages, Custom post types (like Products in a shopping cart plugin), etc.
Your plugin is only for posts. And it does not show the results by category, only the search form by category, which is rather pointless.
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Hi,
I am designing a wordpress E-commerce website for my Client. I am stuck with the Alignment issues of the plagun. The Client is asking me to get Search Textbox, All Category Dropdown and Search Button in single line. Please help me solve this issue.
Website Link: https://peoplekart.com
https://www.ads-software.com/extend/plugins/search-by-category/
]]>I have a blog with plenty of categories and when I try to exclude categories from ALL CATEGORIES search (like 1,239,240 in the last field of settings)- the search results still show posts from excluded categories.
Hint?
https://www.ads-software.com/extend/plugins/search-by-category/
]]>In the current version 2.0.2 of the plugin, what is the value of $cat_id on about line 246:
if(!$only_cat){
...
$settings = array('show_option_all' => $focus,
...
'selected' => $cat_id,
In version 2.0.1 it looked like:
if(!$only_cat){
$cat_id=$_GET['cat'];
...
$settings = array('show_option_all' => $focus,
...
'selected' => $cat_id,
FYI: version 2.0.1 works great, 2.0.2 does not work, sorry i can’t provide more details yet.
https://www.ads-software.com/extend/plugins/search-by-category/
]]>Hello,
This is a much needed feature to the core WP. Thankfully you have developed this great plugin.
Curious about how I go about running multiple instances of Search by Category?
My goal is to create 3 or 4 of these special search by category scripts. One for the home page (global search with certain cat’s out of the mix) and one for each specific category to help sort through the mountains of articles.
Do I use a custom shortcode to call them such as [sbc=1] and so forth?
Thanks again for the wonderful plugin. Keep up the great work!
https://www.ads-software.com/extend/plugins/search-by-category/
]]>