Skip to main content

All Questions

Tagged with
0 votes
0 answers
24 views

Get a custom post type's taxonomy type term names displayed as checkboxes and filter

I using this code to get all the taxonomies associated with a custom post type "newsroom" $post_type = 'newsroom'; // Get taxonomies associated with the custom post type $taxonomies = ...
Justin's user avatar
  • 101
0 votes
0 answers
140 views

ajax select parent show child in another select and show posts in another select-ajax filter search

I'm on wordpress and I created a search filter shortcode which user can select province and show towns on another html select base on province and when user select town, in another html select it must ...
Alipvd's user avatar
  • 3
0 votes
0 answers
40 views

Display taxonomy terms when adding a link in the admin

When you add a link in the admin and make a research, all post types are displayed, but I wondered if there is an easy way to display also taxonomy terms. It would be very useful. Thanks!
Etienne Delcambre's user avatar
0 votes
1 answer
240 views

Amend taxonomy to search in wordpress admin

I am trying to amend a custom taxonomy to a search in the editor area. The taxonomy slug is 'help_cat' and is attached to 'help-center' post types. What I am trying to achieve is very similar with OP ...
tearswep's user avatar
0 votes
0 answers
40 views

Include get_term_link inside search

I am trying to include custom taxonomy links inside the search. This is my code that gets the links of my 'help_cat' taxonomy, but I am struggling on how to add/include this inside the search. ...
tearswep's user avatar
0 votes
0 answers
56 views

WordPress how to prevent URL encoding in URL of taxonomy terms

Is it possible to prevent WordPress from encoding URL with terms? I have a sample taxonomy term "iPhone5~iPhone7" and when I use it for the search function, it turns to "iphone5%ef%bd%...
jn_lance's user avatar
0 votes
0 answers
21 views

Change searching from world level to first letter

Iwant to change the search filter from word level to first letter in terms when creating custom post. How can change it ?
dalia zarzour's user avatar
0 votes
1 answer
246 views

WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array

I have Three Fields in the form, first is Default WordPress Category and two custom taxonomies. When I try to Search a Single field "Selected Attribute" Works Correct but on category, ...
stepiadm's user avatar
-1 votes
2 answers
91 views

What is the 'selected' parameter in wp_dropdown_categories() for?

I'm studying someone else's code (a custom search widget based on Elementor) and there's one thing I just don't understand. $type_term = get_term_by('slug', get_query_var($taxonomy), $taxonomy); $type ...
iamconfusion's user avatar
0 votes
0 answers
82 views

Rewrite Search URL Permalink For CPT Custom Taxonomies

My site uses a CPT with custom taxonomies and shows this URL for searches : https://example.com/?s=&post_type=listing&location=bridgeport&sale_type=for-sale&property_type=office But ...
Brad Dalton's user avatar
  • 6,936
1 vote
0 answers
230 views

Check for taxonomy archive on search results page

I'm looking for a conditional tag to check if a taxonomy archive page(link) is displayed on my search results page. is_tax(); only seems to check if the current page is a taxonomy archive page and ...
NielsPilon's user avatar
0 votes
1 answer
356 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 ...
Ronald Langeveld's user avatar
1 vote
0 answers
180 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' =&...
Jeff's user avatar
  • 359
0 votes
1 answer
707 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 ...
immz's user avatar
  • 1
1 vote
0 answers
39 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 ...
fusion27's user avatar
  • 111

15 30 50 per page