Questions tagged [dropdown]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
8 views

How to set country search bar dropdown in the way that when I will select the country the information about this country will appear on the same page [closed]

I need to add country drop down in the way that when I will select country and press search, on the same page will appear the information about this certain country. Example: List of distributors, ...
user avatar
  • 1
0 votes
0 answers
6 views

How to set value selected using select2 jquery plugin

In my file, i have small html bellow: <div class="dropdown-mul-2"> <select style="display:none;" name="dom767_options[all_posts][]" id="mul-2" ...
user avatar
0 votes
1 answer
12 views

Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?

I'm trying to create a dropdown selector on my CPT and CT archive page for a custom taxonomy called "location". I've managed to get the form to submit, however, it does not direct me to the ...
user avatar
0 votes
0 answers
18 views

I want a simple dropdown for locations in woocommerce

I want to have multi locations for pickup. I want it no where in site, only in checkout when someone click pickup at local pickup, then this dropdown appear. And also it go in emails etc and so on. I ...
user avatar
  • 1
0 votes
0 answers
9 views

Dropdown list control in a post

I don't know if I'm missing something, but I've really tried searching and I cannot find a drop-down list control that can be inserted into a WordPress page or post. I run a sports website and what I'...
user avatar
  • 111
0 votes
1 answer
91 views

Is possible hide hierarchical select dropdown created by jetsmartfilters? (only visual issue)

Is possible to hide child ("City") hierarchical select fields before parent ("State") choice? only visual issue. I did hide function in "JavaScript" but I couldn't join ...
user avatar
0 votes
0 answers
61 views

Change WooCommerce Payment Options From Radio Buttons to Dropdown Menu

I would like to have my WooCommerce payment options displayed as a drop-down menu rather than radio buttons within Checkout, but can't figure out how to do this and can't find any plugins to do ...
user avatar
0 votes
0 answers
25 views

How to edit a custom theme?

I am new to WordPress and I started working on a project. I have found a customized theme which I have to change. I have to create a dropdown menu in the navigation bar that shows some subcategories ...
user avatar
  • 1
-1 votes
2 answers
35 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 ...
user avatar
0 votes
0 answers
19 views

How to show only the last two categories in a menu?

I am working with many categories and their sub-categories (sub items). I felt the need for a customization, but I could not achieve exactly what I wanted. Normally, categories and sub-categories are ...
user avatar
0 votes
0 answers
80 views

Elementor: How to design Dropdown Select Box Navigation page like Chegg

I would like to design Drop-down Select Box Navigation page like Chegg.com. Is there any way to get this style page design with Elementor?
user avatar
  • 101
0 votes
0 answers
25 views

Admin user name not showing up in author dropdown

I recently moved my Wordpress site from GoDaddy to Hostinger. Now, my Wordpress user account (which is the admin) doesn't show up in the dropdown list of authors when I create a new page. My admin ...
user avatar
0 votes
0 answers
54 views

Customize the Sorting Dropdown in WooCommerce use another list or more page

it would be great if there was a way to change the default sort by dropdown in WooCommerce on the shop page. but I want to use list page or other page for default sort by dropdown in wp-query.
user avatar
0 votes
0 answers
24 views

Dropdown category field inside repeatable metabox

I'm building a repeatable metabox with different fields in the Page editor: Name, Email, Tag, Categories. To display the dropdown category field inside the metabox I use wp_dropdown_categories(); The ...
user avatar
0 votes
1 answer
191 views

echo selected value from dropdown

This is for a custom type post, I have a custom field (a drop-down list) when I select an option in the dropdown let's say "DesignApplication" and save the post. Then when I try to update ...
user avatar
0 votes
1 answer
27 views

Multiple Custom Taxonomy Dropdowns Lists

I have 3 hierarchical (category-like) custom taxonomies in a WP site, books, characters and writers. I want to create a dynamically populated dropdown menu of terms for each of these in the site's ...
user avatar
  • 29
1 vote
0 answers
86 views

Filter table with dropdown

I'm making two dropdowns of location and category to filter a table by internship location and category. I want to make it so that a user can select one or the other and it will still filter it. I ...
user avatar
0 votes
0 answers
15 views

Bootstrap Dropdown Menus not displaying the items within the dropdown in Wordpress

I am working on a child theme and have added Bootstrap just before the generic wp_enqueue_style of my theme to the functions.php as it follows: if ( ! function_exists( 'ghostpool_enqueue_child_styles' ...
user avatar
  • 1
0 votes
0 answers
26 views

Sidebar Drop-down list Not Listing Posts from Subfolder Installed WordPress Site

There are 2 WordPress sites, the main one and the cloned version installed into a subfolder (sub-directory) of the main one like this: "https://mainsite.com/mainclone-testing-site/" After ...
user avatar
0 votes
1 answer
249 views

Change dynamically the dropdown list value

I have a form where i list a related custom post type by ID of the parent custom post type on a checkbox list like the picture. so when i check an option to 4 options i want to have a list of the ...
user avatar
0 votes
1 answer
367 views

Filter posts by month (dropdown)

Good day! I am building this Blog Archive page and it requires filtering of posts by months, using dropdown. Any idea how to do this? <?php // what goes here printf('<option value=...
user avatar
  • 7
1 vote
0 answers
28 views

Easiest way to add dropdown to a page

I am trying to add a dropdown menu to my page (not menu or widget section) and once the user selects an item from that menu, it redirects to a specific page. I have tried using the block editor, but ...
user avatar
  • 11
0 votes
1 answer
38 views

Unable to display selected post title in frontend from metabox wp_dropdown_pages()

I created a metabox in admin using wp_dropdown_pages() to display the list of posts from my custom post type workshop. The metabox dropdown works fine in admin, I can select the post title and save it....
user avatar
1 vote
0 answers
41 views

Add css class to dropdown

This is a dropdown with two items. I want to visually give these two items a css style. Is this possible? This is the code I used: (function($) { "use strict"; tinymce....
user avatar
  • 11
0 votes
1 answer
313 views

Menu items do not “open” when mouse hover over them?

My site is very old now and has worked fine up until the most recent WP update. My menu items do not “open” when mouse over them? I can see that the theme uses Superfish but can't find anything that ...
user avatar
  • 1
1 vote
1 answer
779 views

wp_dropdown_categories and custom taxonomy + custom post type

I have created custom post type called "case study"(with slug case-study), with support of custom taxonomy which is called "theme". What i am trying to achieve? Simple dropdown, ...
user avatar
  • 13
1 vote
0 answers
78 views

Dynamic dropdown from database table

I need a little help: I want to create a drop-down populated by mysql database table with two options: Select option 1 (regions) Select option 2 (schools) Where in option 2 appears populated according ...
user avatar
  • 11
1 vote
0 answers
35 views

Multiple level category drop-down from the WordPress dashboard

Working with thousands of Categories in WordPress; parent categories, child categories, grand child categories. It is cumbersome trying to scroll through to select the desired category. It is either ...
user avatar
0 votes
1 answer
69 views

How to add a dynamic dropdown derived from custom taxonomy

I have created a custom taxonomy state and city. I want to fetch all the city for a given state using a drop down list. suppose first i need to select a state and then drop down automatically ...
user avatar
1 vote
0 answers
32 views

Add clickable arrows to parent menu items with children elements e.g. with <em>

I am currently working on a website with a custom theme where the following behaviour should be possible for the mobile version: The navigation can be opened via a hamburger button. Then all parent ...
user avatar
  • 11
1 vote
0 answers
146 views

page_attributes_dropdown_pages_args filter does not work

Tried to add filter hook page_attributes_dropdown_pages_args to my website together with quick_edit_dropdown_pages_args like below to my functions.php theme file. function ...
user avatar
  • 11
0 votes
2 answers
97 views

Custom field with terms from another taxonomy programmatically

I have a custom taxonomy A with some terms (A1, A2,A3, etc) and a second custom taxonomy B. I want to create a custom field in taxnomony B which will be a dropdown menu with the terms from taxonomy A. ...
user avatar
0 votes
0 answers
23 views

Hide 'add to cart' when certain value in dropdown is selected

Need help here please. I am trying to hide the 'add to cart' woocommerce button when a user selects a specific item in a dropdown list. I have tried multiple JQuery snippets in both functions.php and ...
user avatar
  • 1
0 votes
1 answer
324 views

wp_list_categories walker without links on categories that have subcategories (to make a nested dropdown menu)

I'd like to make a custom walker that works with wp_list_categories to generate a menu of nested uls using my category, sub-category, and sub-sub-category(?) structure. Any category that has sub-...
user avatar
  • 103
0 votes
0 answers
356 views

How to make a pagination with dropdown selection?

This is the code for the dropdown pagination. It uses a js controller too, but it works fine, so, I’m not adding it. $total = $wp_query->max_num_pages; // only bother with the rest if we have more ...
user avatar
0 votes
0 answers
29 views

Trying to get categories and sub-category listing

I am trying to implement this: The problem is I am not getting the expected output after selecting categories/sub-categories from the dropdown list. I know I have messed up and I don't know what I ...
user avatar
0 votes
0 answers
145 views

How to hide "Change role to" dropdown on Users admin menu

How can I hide the "Change role to" dropdown?
user avatar
0 votes
1 answer
423 views

Show products per page drop down

So i have a wordpress woocommerce site and I would like to add a button under the pagenumbers (do you call this pagination?) so the user can select himself how many products to view per page, ie 20, ...
user avatar
  • 3
0 votes
1 answer
63 views

Saving multiple fields (dropdown and text) in custom metabox

I have seen this question asked a bunch but nothing seems to work. I have a simple metabox within a CPT that needs to save two values. It needs to save a dropdown of pages and a url text field. I can ...
user avatar
0 votes
2 answers
454 views

$wpdb not working wordpress plugin ajax call

i am trying to make a dependend picklist set in a wordpress plugin. Within the plugin i have a javascript with the following method $('#am_organisation').change(function(){ ...
user avatar
0 votes
1 answer
114 views

Plugin use of ajax/jquery depending dropdown

i am looking for an example on which implements two depending dropdowns. There are a zillion examples on the internet but they are not working within wordpress plugin. So this is what if have In the ...
user avatar
0 votes
1 answer
231 views

How do I find out which <select ><option </option> was clicked on?

I am trying to build a widget that has a dropdown (<select), a Text input, a textarea and a submit input. When the widget function builds the components & populates the dropdown from the ...
user avatar
0 votes
1 answer
103 views

Save meta box data from selected dropdown list in bbpress reply form

I hope to customize bbpress reply form area with dropdown selection list. I could not find any previous post reporting similar case in bbpress. Referring to post "Save meta box data from selected ...
user avatar
  • 11
0 votes
0 answers
26 views

Load google font script based on optgroup label selected

Ive searched and can't find an answer. I have two groups of fonts - one regular fonts and one google fonts. Im using a select dropdown list with two optgroups, one for each group of fonts. What Im ...
user avatar
2 votes
1 answer
140 views

Drop-down menu with wp_dropdown_pages

trying to create a drop-down menu where the items are the children pages of a given parent page. The list has an autosubmit script. I'd like to add some css rule but unable to do so. Moreover, I ...
user avatar
1 vote
1 answer
513 views

Selected attribute of Drop down list

I am working in a Drop Down List of WordPress. "Selected" attribute is not working. My code is like below <select class="form-control" name="division"> <option value="Select">...
user avatar
  • 377
1 vote
1 answer
647 views

Populate dropdown from database

I am creating a custom plugin for our martial arts school and have come up against a problem that is doing my head in. No doubt I am missing something obvious but have never really dealt with ...
user avatar
0 votes
0 answers
413 views

Theme: dropdown hover menu not showing up in IE/Edge

I'm using the theme Illdy, and the hoverable dropdown menus on the top navbar are not dropping down in IE or Edge. Firefox and Chrome appear to work. I've tried adding a variety of these to the ...
user avatar
  • 11
0 votes
1 answer
678 views

Modify output of wp_dropdown_categories to add term IDs to each option

I've been searching for documentation or examples on how to modify the output of wp_dropdown_categories so I can add the term ID to each option. Is this possible? If not, my only thought would be to ...
user avatar
  • 11
0 votes
1 answer
478 views

Use a filter on menu items that have children

I have a nested dropdown. On elements that have children, I would like to add a chevron beside the link text. The current HTML looks like this: <ul class="primary-menu"> <li class="menu-...
user avatar
  • 139

1
2 3 4 5
7