Questions tagged [dropdown]

The tag has no usage guidance.

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

Dropdown list that loads Product Comment Form

I am trying to create a dropdown of all product in my WooCommerce store and based on the selected product I want to display that products comment form. I want to create a page with this code in it. ...
0
votes
1answer
33 views

Convert UL to dropdown list not working

I am running a plugin called Divi Staff to show the staff on the website. I don't like how the specialisms are displayed and wanted to convert them to a dropdown list. I have tried to get this to work ...
0
votes
1answer
19 views

Bootstrap drop down Navigation Menu in WordPress

I am trying to build a Wordpress theme with boostrap.almost every part is complete but the nav menu is giving me some trouble for days. I would like the dropdown to work like boostraps dropdown, but I ...
0
votes
0answers
13 views

dropdown Nav item issue

Hello guys I am working on a wordpress project And i am searching for a sticky dropdown menu that holds lists of city. -> set the selected city to the menu label -> and filter the appointments for ...
-2
votes
0answers
15 views

How to Display only value and exclude index from loop jquery?

In jquery how to remove index from value. I have doing following code var $values = $.map(domelts, function(elt, i) { return $(elt).val();}); var option = ''; for (var i=0;i<$values.length;i++){ ...
0
votes
0answers
32 views

Cannot save with wp_dropdown_pages() in page options

I don't understand why, the custom select option works, but even when wp_dropdown_pages() is outputting the same exact HTML, it doesn't save as the select option does! I'm out of ideas :( Here's my ...
0
votes
1answer
62 views

Dropdown Select Post Filter

I would like to display the posts when I click on an item with the dropdown select Currently, my select is OK, all my terms are displayed and all posts too. I just want to know of it's possible to ...
0
votes
1answer
50 views

Get the selected option from drop down list

I created a dropdown list using data from the db to fill the options. This is working fine. Now I want to get the chosen value to select all posts with that value from the db. I have been searching ...
1
vote
1answer
68 views

Using a shortcode to create a dropdown menu from wp_nav_menu list items

I'm using the following function that I found online to render each page's individual nav items to the page: function print_menu_shortcode($atts, $content = null) { extract( ...
0
votes
0answers
20 views

Drodown list return issue

I made a function that doesn't work properly: it correctly returns the slug of the selected tags except the first one in the list. Someone can help me understand why please? The code is below ... ...
1
vote
0answers
23 views

Options page - dropdown of users

I want to create an options page in WPAdmin that will let me select among registered post type "Members" and anoint them as "captains". Here is my code so far but the dropdown is not functioning ...
0
votes
1answer
35 views

How to elect position of new item output in a dropdown when using add_filter

Hello I am using the suggested snippet here to add a new term to a dropdown menu: https://wpjobmanager.com/document/applications-customising-application-statuses/ which is: add_filter( '...
0
votes
1answer
15 views

Dropdown Value from DB Entry

I am capturing a month in my database and the value (integer) is being recorded but when I try to add the selected to the drop down so when the user comes back it reflects the month I can't figure out ...
0
votes
1answer
35 views

Navigation dropdown issue, need it to work on hover

I have created my own theme from Bootstrap 3, everything went ok except for the navigation. After many hours trying ot figure out why my navigation didn’t drop down, I finally fixed and thought that ...
1
vote
1answer
100 views

Filter dropdown in users.php “delete user” bulk edit screen

I recently attempted to delete an administrator user. Using the bulk editor, I selected "delete" and was presented with the option to assign their content to another user. However, the dropdown ...
0
votes
0answers
14 views

How to create a custom linked drop down in wordpress?

I want a to add a linked drop down by populating data from database custom tables. The drop down basically will be selecting Country when selected the next drop down must display the corresponding ...
1
vote
1answer
404 views

WooCommerce Country Drop Down colours CSS [closed]

I have been trying to change the colours for the selected and hovered country in the country dropdown on the checkout page on a web site I am developing which is http://chi-medics.com/ No matter what ...
0
votes
0answers
284 views

Contact form 7: Dropdown with options with additional input elements(text)?

I have a problem and don't know how to do it. Probably with JS. I am using Contact form 7 plugin in my wordpress page. I need to do a dropdown(right), placeholder text (right). So UX needs to be ...
1
vote
0answers
50 views

Make Categories a Dropdown Menu in Media Library

I would like the categories menu to appear as a drop-down in both the list mode and grid mode view of the Wordpress media library. As of now, it only appears as a drop-down in list mode. List Mode - ...
0
votes
0answers
106 views

Dynamic Dropdown Select Filter with Custom Taxonomy in Custom Posts

I want to create a Dynamic Dropdown Select Filter in my homepage to filter custom posts by parent and sub-categories. The maximum depth for filtering is 4 levels. My Custom taxonomies structure is ...
0
votes
1answer
53 views

Dropdown select filter and categories list

I have recently visited this website and came to know that it is running on wordpress. I have been looking for dropdown select filter (Banks Filter) and categories list as same as on that website. ...
0
votes
0answers
146 views

update value in database on button click, using a dropdown menu

I am getting the users via $wpdb, then I display the values id,name and mg_nobility in a table that has a dropdown menu to select the nobility and a submit button. how can I get the id of the row that ...
0
votes
2answers
1k views

Remove “Choose An Option” on Product Variation & Auto Select Instead

I have a specific dropdown field on variable products on my WooCommerce site that only ever has one option available. Example: the customer chooses the item “type”, then “color”, and finally “part ...
0
votes
2answers
214 views

Woocommerce Category Sort Dropdown

In Woocommerce Category page default sort dropdown has like below options. My question is what/how products sort by Popularity ? Not a code What is the measurement ? like if sort Price: Low to High,...
0
votes
1answer
31 views

Show all authors in drop down panel while choosing author for a post

I would like to see all authors when i am choosing author for a specific post, yet i can only see around 25 of them. We have around 230 authors, how can i see them all? Thank you.
0
votes
1answer
316 views

How to add close button to dropdown menu that also reverts to menu button on another click

I am creating a custom dropdown menu for my WordPress blog header. I did everything correctly but could not add close button that opens on first click and revert to default on another click. I mean ...
0
votes
2answers
467 views

Change The Woocommerce Product Categories Dropdown Widget Placeholder Text

I've searched everywhere on the internet and tried to code it myself I want to change the default "Select A Category" placeholder text to "Select A Sub Category" so far I have tried this but it's not ...
0
votes
1answer
12 views

Unregistered taxonomy apears still as emtpy filter list

I unregistered a custom taxonomy form the theme I'm using: function wpse314876_unregister_taxonomy() { unregister_taxonomy_for_object_type( 'page_category', 'page' ); } add_action( 'init', '...
1
vote
0answers
78 views

How to create a dropdown select of all items in an ACF field group

I have a series of Field Groups, each attached to a specific product category (woocommerce) and I need to be able to access ALL the data regarding each field group on the product category page. This ...
0
votes
1answer
940 views

Sorting dynamic select/dropdown for Contact Form 7 of Modern Tribe Events posts

What I have is a dynamic dropdown/select box in Contact Form 7 I believe to be based on this: https://gist.github.com/morgyface/56474f0a37abb7d622880daf6eff6e40 It's been a while since I worked on ...
1
vote
2answers
2k views

Display custom taxonomy as dropdown list

I want to display list of custom taxonomies as a dropdown list. I've found the solution here, @alexufo 's answer Display a custom taxonomy as a dropdown on the edit posts page But the problem with ...
-1
votes
1answer
35 views

css .active dropdown selects all links

I'm using bootstrap navwalker to show my menu. But when i use the .active tag to on a dropdown link all the elements get te the tag. (as show in the picture) (only "Jeugd bestuur" and "Bestuur" sould ...
0
votes
0answers
17 views

Show archives as a drop-down in the main navigation menu

I am using the Independent Publisher: 2 theme. It looks like this in action. I would like to be able to access my blog archives by clicking on the navigation menu, as a drop-down. In other words, I ...
1
vote
0answers
523 views

Ultimate Member callback function issue

I am trying to filter child drop-down inputs based on parent dropdown. For example, if I select a state I need to show the cities only in the selected state. What I have done so far is added this ...
0
votes
0answers
77 views

wp_dropdown_users array for param selected

The wp_dropdown_users has the param: 'multi' (bool|int) Whether to skip the ID attribute on the 'select' element. Accepts 1|true or 0|false. Default 0|false. But the param selected only allow a ...
0
votes
1answer
115 views

wp_get_archives doesn't take effect from css or html

I'll try to keep it short. So basically I'm trying to add custom item to my menu which in this case is the archive dropdown list with months desc. Everything looks nice and clean but the output of ....
0
votes
1answer
206 views

How to add custom option to wp_dropdown_categories?

I need to add a custom option to wp_dropdown_categories. Now, the whole wide web world haven't gotten a solution for that ... therefore I ask for a solution here … as I can't really imagine that the ...
0
votes
0answers
480 views

semantic ui dropdown for custom metabox

I'd like use Semantic UI Dropdown (https://semantic-ui.com/modules/dropdown.html) in my custom metabox for the plugin I making. I added the codes like that: // Styles wp_enqueue_style( 'semantic-ui', ...
2
votes
1answer
1k views

How do I give class to the dropdown sub-menu in the wp_nav_menu?

This is my html code <div class="section__main-nav" id="section__main-nav-id"> <div class="container"> <nav class="navbar navbar-toggleable-md navbar-light"&...
0
votes
2answers
62 views

Drop down list code for sidebar

For starters, I'm not a programmer but I'm good at cut and paste. :) I want to create a drop down list that displays each post and I've done that by putting this in my functions.php child theme file ...
1
vote
0answers
76 views

I want to auto populate data in three fields if one drop down is selected

I just want to add auto populate in my WordPress plugin. If i select a value in drop down menu then on that drop down value based i want my three fields are auto filled. This is my js file code. ...
1
vote
0answers
34 views

Get parent and children taxonomy in different dropbox

I would like some help, I have this situation Taxonomy = Location where Brasil = Parent - Acre = as first child -- Rio Branco = another child -- another city = another child -Santa Catarina = as ...
0
votes
1answer
180 views

Use output of wp_dropdown_categories($args)

Please be gentle, I'm new to all this coding! I have finally worked out how to get a frontend dropdown field allowing me to select from EDD categories (I got this from the Codex): <div class="...
0
votes
0answers
107 views

filter post by date selected in a dropdown in realtime

How to filter custom post type by selected month and year in a dropdown, do i have to make rewrite rules? or javascipt function? $data_args = array( 'post_type'=>'news-list', 'order'=>'...
0
votes
1answer
462 views

wp_dropdown_categories - how to save in widget?

I'm trying to use wp_dropdown_categories in a custom widget. Everything is displaying nicely but for some reason it's not saving properly. Here are the form() and update() functions from my widget - ...
0
votes
1answer
49 views

wp_dropdown_pages : choose post status to list in dropdown

I would like to create a dropdown of all schedule and publish CPT posts. I seems function wp_dropdown_pages only displays list of publish posts, is it possible to choose which post states to display ?...
1
vote
0answers
33 views

Where to start learning more about wordpress templates [closed]

i made a website for a sport club, since it had to be a wordpress i converted my html/css into a wordpress template following this guide: the layout and functions work, but i have no idea how or ...
0
votes
1answer
494 views

Add role selector to custom registration page

I have sucessfully integrated this code in functions.php //1. Add a new form element... add_action( 'register_form', 'myplugin_register_form' ); function myplugin_register_form() { global $wp_roles; ...
0
votes
1answer
903 views

Multiple quantities with options

I have a medical lens website and I tried to make custom order product in woocommerce. I want 2 options. When the first one is chosen, it hides 2 dropdown lists and shows only 1 drop down list, and ...
0
votes
0answers
121 views

How to display selected option from dropdown list in a metabox

I have this question that I have been looking for the answer to for over two weeks now and I finally decided to come here and ask. I have looked here as well and did not find an answer that helped. ...