Questions tagged [dropdown]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Why wordpress doesn't allow to add author filter to media library page in grid mode

It appears that Wordpress doesn't allow to apply new author filter to upload page (upload.php) in "grid" mode. If it's right, why? If not, does it exist a specific hook/function to allow ...
imagIne's user avatar
  • 41
0 votes
0 answers
13 views

Dropdown mobile don't work after WP update

I've updated my WP site and the drop down menu don't work in mobile device. After the update also on the desktop device I've problems but I've fixed. Now remains only the mobile. The site is ...
Joe Taras's user avatar
  • 113
0 votes
0 answers
17 views

Add options to WordPress Blocks form dropdown field

How can I add additional options to the WordPress Blocks form dropdown field? I only see the one option field and can't figure out how to add more.
zackfett's user avatar
0 votes
1 answer
92 views

Display post by select it from a dropdown menu

this my code function form_creation(){ ?> <select name="page_id" id="page_id"> <?php global $post; $args = array('cat'=>19); $posts = get_posts($args); ...
rosy's user avatar
  • 3
0 votes
1 answer
12 views

Icon not shown in Dropdown menus in Twenty Seventeen Theme

I guess I removed the image used for the dropdown menu while cleaning up my site that uses the Twenty Seventeen theme.Now it shows nothing (or a box) next to a dropdown menu which is not ...
Tutul Ahmed's user avatar
0 votes
0 answers
238 views

Get all users from role and add to dropdown (select) - wordpress, javascript

I have a shortcode from functions, which retrieves a list of all users from active role. I have managed to get the list into the dropdown list with a little trickery if I wrap a div around the users ...
Masterior's user avatar
0 votes
0 answers
346 views

Contact form with dynamic dropdown and filter

A client wants to create a contact form for a moto parts store that allows users to choose their moto make-model-year. They want this information to provide better assistance after the contact. They ...
franjapaez's user avatar
0 votes
0 answers
39 views

What is the best way to incorporate responsive dropdown navigation menu into custom theme?

I am very new to developing and just started with building a custom theme. I already registered a menu using the wp functions (register_nav_menus etc.) and am now trying to get my sub-menu to work. ...
georg1402's user avatar
1 vote
1 answer
359 views

How to force the Author Dropdown to display in Quick/Bulk edit?

I believe this issue is a bug with the latest version of WP on multisite (I've reported it) but until they fix it I really need a simple solution. I have multiple authors (Administrator and Editor ...
user3593214's user avatar
0 votes
1 answer
89 views

HTML dropdown setting not showing last saved value in the database

I want a select-dropdown field to display the last saved option in the database; I started with this video from YT, https://www.youtube.com/watch?v=hbJiwm5YL5Q&t=3969s and got as far as 1:05:00 ...
710dev_null's user avatar
0 votes
1 answer
71 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 ...
Alan Loh's user avatar
0 votes
1 answer
1k 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 ...
adriano tanaka's user avatar
0 votes
0 answers
26 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 ...
Anea's user avatar
  • 1
-1 votes
2 answers
80 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
1 answer
534 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 ...
Juninho10's user avatar
0 votes
1 answer
44 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 ...
mtm's user avatar
  • 41
1 vote
0 answers
244 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 ...
Sarah Lim's user avatar
0 votes
1 answer
670 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 ...
Mohamed Amine Landolsi's user avatar
0 votes
1 answer
1k 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=...
ddd's user avatar
  • 7
1 vote
0 answers
31 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 ...
Jelo's user avatar
  • 11
0 votes
1 answer
64 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....
Mathieu Préaud's user avatar
1 vote
0 answers
91 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....
Oona's user avatar
  • 11
0 votes
1 answer
994 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 ...
ShaunA's user avatar
  • 1
1 vote
2 answers
2k 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, ...
Nikson's user avatar
  • 15
1 vote
0 answers
127 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 ...
Kai's user avatar
  • 21
1 vote
0 answers
76 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 ...
Hasan Mofor's user avatar
0 votes
1 answer
171 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 ...
Sumit Jangir's user avatar
1 vote
0 answers
83 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 ...
lunian's user avatar
  • 11
1 vote
0 answers
214 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 ...
alicjap's user avatar
  • 11
0 votes
2 answers
154 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. ...
marissalianam's user avatar
0 votes
0 answers
134 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 ...
Greg's user avatar
  • 1
0 votes
1 answer
530 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-...
EdA's user avatar
  • 103
0 votes
0 answers
558 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 ...
Albert Hairson's user avatar
0 votes
0 answers
32 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 ...
GoonerBruh's user avatar
0 votes
0 answers
206 views

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

How can I hide the "Change role to" dropdown?
Rijal Islami's user avatar
0 votes
1 answer
507 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, ...
Mikebb's user avatar
  • 3
0 votes
1 answer
245 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 ...
wp_dev99's user avatar
0 votes
2 answers
699 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(){ ...
user190935's user avatar
0 votes
1 answer
139 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 ...
Marcel Vreuls's user avatar
0 votes
1 answer
370 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 ...
GreatDayDan's user avatar
0 votes
1 answer
149 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 ...
Daniel's user avatar
  • 11
0 votes
0 answers
38 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 ...
captainM's user avatar
2 votes
1 answer
262 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 ...
user185556's user avatar
1 vote
1 answer
767 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">...
Foysal's user avatar
  • 417
1 vote
1 answer
1k 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 ...
Daniel Florian's user avatar
0 votes
0 answers
451 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 ...
JJL's user avatar
  • 11
1 vote
1 answer
1k 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 ...
Greg's user avatar
  • 31
0 votes
1 answer
867 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-...
OctaviaLo's user avatar
  • 139
1 vote
2 answers
1k views

How to pick the default selected value in wordpress dropdown?

First of I am pretty new to this so sorry if this has been asked before but I could not find the right answer for me. I have this dropdown on my website from compare-tech(.)fr I am trying to remove ...
Antoine's user avatar
  • 11
0 votes
0 answers
171 views

Get_term_meta() always returns false

I added an extra field (dropdown list with select options), when the user creates or edits a category from the WordPress dashboard. I am also able to store the selected value in the wp_termmeta table. ...
Badan's user avatar
  • 225

1
2 3 4 5
7