0
votes
0answers
32 views

select to search in category AND custom post type

I try to do something but which I block. What I need is simple: a search textbox and a select which allows the user to search either in whole or in custom post types, or in category. Separately, I can ...
0
votes
0answers
107 views

How to search by category in Woocommerce?

The website I am building has a search form, which searches products by keyword <form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <div> ...
0
votes
2answers
53 views

Several loop in search result

I would like use two loops in the results after a search. First of all, I begin the loop if there is result <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> ...
0
votes
1answer
58 views

Search form options group categories

Hello i use this code to allow my readers to filter the search results by targeting a specific category. How can edit it to make 2 options of categories groups? I have 20 categories. I want the ...
0
votes
0answers
115 views

Category Ajax Chain Selects - search results

Hello, I have a problem with my custom taxonomy and plugin Category Ajax Chain Selects... When I select a region, country, appeals etc. and push the submit button I got "page not found" and that takes ...
0
votes
1answer
38 views

If searched in a category show different 404 page

Is this possible? I have a searchform that searches for certain categories. If there is no post, it will show me a 404 page... Can I change this page to something else? If so, how do I do that?
0
votes
1answer
71 views

Searchform for searching specific categories

<form id="searchform" method="get" action="<?php echo home_url(); ?>"> <input type="text" name="s" id="s" size="15" /> <?php wp_dropdown_categories( 'show_option_none=Select' ); ...
0
votes
1answer
24 views

Hide parts of the post content after typing it's name or searching it by category

Code "nohome" worked for displaying wanted (hided'n'waiting) content on home page (just postname and image) How it could be adjusted or modified to make the same after name of post has been typed ...
0
votes
0answers
32 views

How can i do a search for tags in a certain category?

I'm trying to search for a certain category with a tag, how can I do this via url? For example: www.example.com/?cat=1&tag=tag1 how can i achieve this using parameters in the url?
1
vote
2answers
126 views

Trying to find a way to query post like normal search would do. within search.php page

I have a costume search in a site i am making. When a user search a certain term, i want to display category list with a count of how many posts are found with in that category. I thought of a way ...
0
votes
1answer
164 views

Get URL Category Name By ID

I have this URL: http://example.com/?s=&cp_state=0&scat=16&sa=search&refine_search=yes and this code on search.php: <?php $searchTxt = trim( strip_tags( ...
1
vote
0answers
344 views

Refine/Filter the Search Results by Category

I am currently creating the process of a function which allows one to refine results, Namely by category. Similar to themeforest.net refine the search results. When i gave as search term "Hello" and ...
0
votes
2answers
474 views

Including categories in search results

I am trying to include categories in search results. I've been searching for hours now with no solution. By "including categories" I don't mean search in a certain category, I mean let's say I have a ...
2
votes
1answer
582 views

Help with multiple dropdown tags search

I'm trying to build a search form that allows the user to choose certain post tags and filter through real estate listings. So far I have the form built but when I click the search button it brings me ...
0
votes
1answer
548 views

Search functionality with multiple categories

Good day fine wordpress gurus, I'm having a tough time writing a function that handles the search in a couple of user-selected categories. The way I'm presenting the categories is through the old ...
2
votes
2answers
2k views

Search by word, category, tag, author

I want to make a search page, offering search functionalities by: 1) word 2) tag 3) category 4) author Can you recommend any technique, any guideline as per how to tackle this?
1
vote
1answer
756 views

Multiple Category Search

I'm trying to create a search feature that will allow users to enter a search term and select a couple of categories. The script searches a single category just fine, but when I add more than one I ...
-1
votes
1answer
348 views

Display category tree of a post in search results

Do anyone know how to display a category tree of a post in the search result. Foe example: If a post is in level 3 category level 1-> level 2 -> level 3 where the level one is the parent one.
4
votes
3answers
3k views

Wordpress Multiple Category Search

From few months I am digging into wordpress for multiple category search options, and finally came up with this. I just found that wordpress allows multiple tags, which means that if in your URL you ...
1
vote
2answers
3k views

How to search for categories and/or tags?

I have a search function on my blog. If I enter a value, say 'fruits' in the search box and it doesn't match in any of the posts but it is the name of a category in the blog then I want the posts that ...
0
votes
2answers
666 views

get_the_category and echo out link to child-most/deepest category

I have this code which is located on the search.php page and retrieves all the categories for each post and echo's out a link to the first category: $category = get_the_category(); ...