Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dropdown]

The tag has no usage guidance.

0
votes
0answers
10 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
20 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
33 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
27 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
18 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
21 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
28 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
1answer
245 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
76 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
22 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
52 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
1answer
218 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
0answers
11 views

Trying to make a dropdown menu with closebtn. please help

I am new to coding in WordPress. I am actually making a custom theme where I want a dropdown menu in header. I like Moz.com and Neilpatel.com's drop down menu so much. I tried to code one like that ...
0
votes
1answer
10 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', '...
0
votes
0answers
251 views

Retrieve data from MySQL into dropdown using AJAX

I'm trying to retrieve data from MySQL into dropdown using AJAX, but the results of the dropdown are not displayed. Here's the snippet: Form: <?php global $wpdb; $aName = $wpdb->get_results("...
1
vote
0answers
40 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
276 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
553 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
13 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
16 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
286 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
58 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
70 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
102 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
20 views

How to make specific menu dropdown to the left?

Hello I'm trying to do login from dropdown menu, but it goes too far to the right. I want only login dropdown to be to the left. Here you can see how it looks: https://gaminguniverse.pl/ (Logowanie in ...
0
votes
0answers
27 views

How to change wordpress query_posts by clicking a link with ajax inside post

i want to changes query_posts by clicking a link witch ajax and load new result in to my div i use this code in single.php By using the $_GET function at the top if( !empty($_GET['key']) ) ...
0
votes
0answers
424 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', ...
0
votes
0answers
47 views

Change Wordpress Author by PHP (Frontend)

I want to change the Post Author using a dropdown field, on front-end, when have logged is as admin (or some other rule). I actually have this code: <form action="" method="post"> <?php if (...
2
votes
1answer
468 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
42 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
45 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
28 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
0answers
16 views

Selected to category dorpdown menu

I have this code that shows me a selected option menu. It is a part of a search form. How can i had the selected item in search results. <?php echo '<select name="categories" id="search_field"...
0
votes
1answer
99 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
49 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
0answers
28 views

Dropdown set session or cookie variable

I'm using a Wordpress theme that I built with some pages where there are some dropdowns (select) to choose a State of interest, then with ajax it loads some information related to the selected State. ...
0
votes
1answer
264 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
28 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 ?...
0
votes
0answers
112 views

Select dropdown choose vendors on checkout page update post_author

I need make product with possibility at user to choose vendors, in cart only one product can be added. I need add on checkout page a dropdown select vendors and update product post_author id, but ...
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
237 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
0answers
54 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. ...
0
votes
0answers
58 views

Dropdown menu to display most recent / popular post - Archive page

Everyone, first time posting on StackExchange. I am sorry my english isn't fluent. I would like to request your help, I wanted to create a menu on archive page with dropdowns allowing the user to ...
0
votes
1answer
434 views

Filter posts by categories ajax is showing nothing

I have used the following code, but nothing is showing when I select category from dropdown, page is this https://eakdigital.com/blog/ Template file <div id="ajax-cases"> <?php // WP Query $...
0
votes
1answer
16 views

top primary menu drop down categories not showing

recently my drop down categories have started to not show on mobile devices once clicked. they seem to go straight to the actual page titled and not show my drop down categories. (mikesnature.com) ...
1
vote
0answers
306 views

Add buttons to the new TinyMCE WP Editor. Javascript API

I've added more buttons to a TinyMCE instance using the new Javascript API available since WordPress version 4.8. As you can see in the following code block, I could add more buttons but I'm not ...
0
votes
1answer
313 views

How to hide/show meta box using jQuery,if click on Drop-Down Menu

I'm newbie with jQuery and try to add a text field dynamically to the admin(New post) using jQuery. For example,only if I click on 'Other' from the Drop-Down selection menu - the text field is ...
0
votes
1answer
561 views

Twenty seventeen theme dropdown menu issue

I am using Twenty seventeen to build my own design dropdown menu not working for me when I hover on the parent no thing shown here is mu own HTML output <div class="headermenu"> <div ...
0
votes
1answer
11 views

How to save dropdown slection by a user in the DB

I'm having a blog system about cars. I have two main types of articles/posts there. One type is depends on the car manufacturer. 1/Parent category-Car Manufacturer/ Sub categories- Toyota,Honda, ...
0
votes
1answer
64 views

create drop down menu

I need to add a dropdown menu like the entries in Wordpress, I am adding this code I have managed to add the parent item to the left side menu, but I need the user to do a Mousehover appear more menu ...