The Stack Overflow podcast is back! Listen to an interview with our new CEO.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

Including taxonomy in searches

(Fairly new to WordPress, but I'm a React / NodeJS developer) I have a basic search function that search a custom post_type (listings). It makes use of the standard built in get_search_query and ...
1
vote
0answers
80 views

WP Query Args - Title or Taxonomy Value

How do I query by tax_value or title? I have $args = array( '_meta_or_title' => sanitize_text_field(preg_replace('/%20/', '+', $query[1])), 'posts_per_page' => 100, 'post_type' =&...
0
votes
1answer
85 views

how to create custom taxonomy drop downs for parents and child

Can someone help me please, i'm not good with php. i have created a custom post type called "used-car" and a custom taxnomy called "used-car-category" in functions.php Question: I need to create a ...
1
vote
0answers
18 views

Extend & Search Native WordPress Image Galleries With Tags and Taxonomies?

How can I tag, taxonomize and search native media? I believe my obstacle is my failure to think "the WordPress way". Building my own plugin or theme code, I am looking to achieve the following ...
4
votes
1answer
445 views

Exclude custom taxonomy from search results and archive pages

UPDATE: I have the following code working. It excludes the taxonomy from the search results. However, I would like this only to happen if a user is not logged in. The code below is taking effect for ...
0
votes
1answer
67 views

How to show terms from another taxonomy

I have a taxonomy problem that I've been trying to solve for days. I'll try to explain it. I have two taxonomies, 'type of store' and 'state' of a post type called 'store'. I'm building a search that ...
0
votes
1answer
127 views

Search Media by taxonomy

How do I search media, based on taxonomy in frontend? The following query displays what I would like to have returned via search: $args = array( 'post_type' => 'attachment', 'post_status' => '...
1
vote
0answers
61 views

Search Query for multiple categories using 'OR' but having certain categories be 'AND'

I have some checkboxes that relate to categories, and when checked and a search is made, it returns any posts in any of the checked categories. This is my query: $query = new WP_Query([ '...
0
votes
1answer
103 views

Custom dropdown search form that allows users to select option B based from Option 1

I'm trying to create a search form (currently using Search & Filter) that has a dropdown for states and categories, and once a state is selected I want another dropdown to open allowing visitors ...
3
votes
2answers
13k views

Search custom taxonomy term by name

I have a custom taxonomy, called albums. I need to be able to text search the taxonomy term title, obviously this isn't default WP Search. Just wondering how I'd best tackle this? Say there is an ...
0
votes
1answer
850 views

WP_Query Not Recognizing Taxonomy Parameter in Custom Search

I have a search form with one standard text input and a select input to select a taxonomy term. The query uses the inputs to run a WP_Query and display the results. The only issue is that the query ...
3
votes
1answer
161 views

How to find objects by terms

I am struggling with a search filtering. Firstly, my script is searching for users using natural search SQL. The query returns ids of users. Now I would like to filter them by terms which are assigned ...
1
vote
0answers
142 views

Wordpress thinks my custom taxonomy pages are search pages #seo

I have set up a custom taxonomy for regular posts called guide. I have a template file called taxonomy-guide.php which lists out posts with a guide taxonomy. So my URL structure appears like this: ...
1
vote
1answer
27 views

Search Posts / Pages with multiple options?

Here is what I am trying to accomplish. Need to design a website for Alcoholics Anonymous (local Chapter) to search for meetings. Need to search for multiple choices of meetings for example. Men's ...
0
votes
1answer
54 views

Search format not matching taxonomy query

I have inherited some code in this project. This search works. I can click on each individual taxonomy and see the results displayed on my page. However, I would like this to extend the search rather ...
0
votes
0answers
46 views

Custom Search not working

I'm trying to create a custom search that uses two dropdowns only (no text input). The first dropdown lists custom post types, the second lists the "location" taxonomy. This is my code so far (...
-1
votes
1answer
775 views

Custom Search only for my Custom Taxonomy Page - data

First of all, my post is related to : Link 1 and Link 2 I made my custom taxonomy page. My Custom Taxonomy Page link is //localhost/myproject/?motion=aamir-khan This page is custom taxonomy page (...
0
votes
1answer
415 views

Select All not working in a WordPress search filter

I am trying to create a Search Filter within WordPress to filter through all the custom taxonomies within a Custom Post Type. I have created a function that generates the dropdown so I can output ...
0
votes
3answers
5k views

How to perform a search inside a specific taxonomy category

My problem is this: I have 3 custom taxonomies, let's say 'author', 'title' and 'editor', each one applied to regular posts. Let's say I have post_1 that has in the 'author' field 'jorge borges' and ...
1
vote
2answers
877 views

Error sending array of inputs

Hello I am getting a Error of the Wordpress includes, this error appears when I post the multiple values of a taxonomy <form role="search" method="post" id="searchform" action="<?php echo ...
1
vote
1answer
8k views

Filter custom post type using multiple taxonomy dropdowns

I'm trying to create two dropdown boxes on a custom post type page called Activities. One taxonomy category is for Activities Grade Level and the other for Activities Type. With what I have now, if ...
0
votes
1answer
520 views

Building a Data Intensive Website with Wordpress

I am an intemediate website builder and have been working with wordpress for a few years. I am attempting to build a website (for myself) that is data intensive. All I've built to date are sites ...
2
votes
1answer
820 views

Filter taxonomy terms using multiple id in the edit-tags.php

I want to use the edit-tags.php search function with multiple term id's. For example, if i type into the searchbox something like this: #1245&6832, it should display these two terms in the results ...
0
votes
2answers
452 views

multi custom fields and taxonomy search

we have a couple of custom meta boxes for product (custom post type). one custom meta box key is area_required_width, and we have numbers input for it when publishing products, now we want to have a ...
1
vote
2answers
218 views

If search matches taxonomy

Is it possible to redirect the user to the taxonomy page IF the search input matches the taxonomy name exactly? For instance i have a taxonomy called "Actors". If someone put into the search field "...
0
votes
2answers
10k views

How to make tags show up in search results?

Im looking for a way to make tags a searchable object. To clarify, Im NOT trying to make the search engine search posts by looking at its tags, but I want tags to show up in the results just like a ...
1
vote
2answers
3k views

How do I search inside specific taxonomies in Wordpress

I am trying to search for posts in specific taxonomies but any time I search, I get results from all the other pages instead of Wordpress searching within the selected category in the taxonomy. I ...
8
votes
2answers
3k views

How can I create a taxonomy meta-box with search suggestions but no new terms input?

I was wondering how I could setup a taxonomy metabox on a post edit page that would be similar to the "tags" kind (with search field and automatic suggestions), but without the right to add a new term....
3
votes
1answer
770 views

Sort posts by number of matched terms

I have form where I list all terms associated with posts as check boxes, user should pick few of them, hit search and get all posts that match all chosen terms. It works great when there are posts ...
2
votes
1answer
2k views

Search for tags

Is it possible, to search just for tags? Not any other taxonomies or post types, just tag titles.
0
votes
2answers
2k views

WP Search using taxonomy terms

I have been looking for hours for an example on how to do this. I have 2 simple taxonomies, Type, Size. I need to create a custom form with the 2 taxonomies available as Select list/filter. Please ...