The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
470 views

create drop down menu in theme customizer from custom db

what i am trying to do is create drop down menu in theme customizer from custom db i have created. db name "students". in the db i have only the id and the name. i want to show all students names in ...
0
votes
1answer
1k views

How to make a drop down menu with categories

I'm building a website in which there is a navigation menu with various links; in this menu there is the link to the blog section. My goal is to create a drop down menu that appears when the cursor ...
0
votes
1answer
299 views

wp_dropdown_categories - remove  

I need to remove the auto adding of &nbsp; in the wp_dropdown_categories, it causes a problem in the jQuery multi select dropdown plugin I'm using. Example value: <option class="level-1" ...
1
vote
1answer
710 views

Filter Select results based on selection

I am trying to filter which job results are rendered to the page whenever the user changes the select item on my form. The select items are dynamically populated by the code below which assigns them a ...
0
votes
1answer
105 views

Custom Query for searching through custom fields

Just wondered if someone could spare 5 mins to help me understand where I might be going wrong. I have a set of custom fields for jobs - I would like to create two drop down menus as a quick search: ...
0
votes
2answers
310 views

Custom menu - different submenu for first menu item

I created a custom menu with dropdowns. (just CSS no JavaScript). I also added a custom CSS class for the first menu item. So far so good. The point were I get stuck is adding a custom dropdown only ...
1
vote
1answer
4k views

Customize the Sorting Dropdown in WooCommerce

It would be great if there was a way to change the default sort by dropdown in WooCommerce on the shop page. Right now the sorting drop down looks like this: http://cld.wthms.co/OBgj And I would ...
0
votes
0answers
492 views

Woocommerce Sorting does not sort the results after page reload

I have code in index.php that shows the Woocommerce products and also provides the dropdown for sorting. Regardless of the option that I choose from the dropdown, the page reloads and yet, it shows ...
0
votes
2answers
156 views

Wp Dropdown Category Not Show Current As Title

Im using wp_dropdown_categories for a page. Issue im having is i dont want it to show the current category that the page is on as the title, i want it always to display the "Select A Category" text i ...
0
votes
0answers
1k views

Displaying list of cities according to the selected state. Using the WordPress hook

I come to ask the community a help of a simple hook on WordPress. I'm trying to display a list of states and cities in two dropdows to select a single option in the a form. The list of cities will be ...
0
votes
1answer
256 views

Display posts order by custom post in a dropdown menu

In my WordPress backend I have some custom posts and, in one of them, I want to display in a dropdown field some posts related with but ordered by post type. Iwant to display something like this. ...
0
votes
0answers
84 views

Calling Custom Taxonomy Dropdown in Form

I'm writing a plugin to allow users to submit fragments of lyrics to my site. I have the plugin working minus one aspect. When entering the lyrics I would like users to be able to select the artist ...
1
vote
1answer
1k views

Custom widget using get_categories select menu dropdown

I have created a custom widget that is supposed to display a select menu with all the categories the blog has. I have used get_categories to compile the list. This works fine and all categories appear ...
1
vote
1answer
1k views

Save selected item from dropdown menu in a meta box as a metadata value for a custom post type

I have been beating my brains on this one for days now and my Google-fu is failing me. I have created a custom meta box with a dropdown menu that lists all of the terms from a custom taxonomy. What I ...
0
votes
1answer
423 views

Three level taxonomy dropdown frontend

I have a code in my functions.php to display 3-level taxonomy dropdown: $brand_taxonomy = 'county'; $taxonomy_name = 'Vietovės pasirinkimas'; ...
0
votes
1answer
252 views

Widget Development - Displaying dropdown content

I'm using the following code to create a widget to select a post from a dropdown - which works fine in the backend, but I can't figure out how to display this on the frontend... <?php class ...
-2
votes
1answer
59 views

How to solve dropdown menu problem [closed]

Please look and help me how to solve this I want look like: Here But my code show: On Chrome On mozilla Website link Here
0
votes
1answer
96 views

Link to subpages on the same page

I'm using a dropdown menu on my Wordpress page which shows all the pages. If you hover over it, the subpages of that particular page are shown. Say I have five pages that each have a couple of ...
0
votes
1answer
264 views

wp_dropdown_categories initial value

I am currently pulling in an option drop-down of a specific category using: <?php wp_dropdown_categories('child_of=20'); ?> I would like the initial value of the drop-down to say 'Bedrooms' ...
-1
votes
1answer
930 views

Output dropdown results into Woocommerce Order details

How do I correctly get the data from a drop down (select) output into the Woocommerce Order Details section of the admin? When I do this, I get an output for all my text box questions, but nothing ...
0
votes
1answer
118 views

go to home page when i select default in select-box

I'm new for WordPress. I'm using following code, <div id="cat_list"> <?php wp_dropdown_categories(array('show_option_all' => 'Categories') ); ?> </div> And my JavaScript ...
0
votes
1answer
262 views

Custom fields: dropdown values depending on other custom field value

i have custom fields like this: "country" - values: "USA", "Russia", "China" "city" - values: "Chicago", "Moscow", "Beijing" I want when user in custom field "country" choose value "USA" after ...
0
votes
1answer
619 views

Separate categories parents, childs and grandchilds in dropdowns

I'm new to wordpress and PHP Im trying to build a site that the user can select a destination so I did this by creating categories (country) subcategories (state) sub sub category (city) and I want to ...
2
votes
1answer
4k views

Bootstrap drop down menu with wp_nav_menu

I am trying to build a Wordpress theme with boostrap, but the nav menu is giving me some trouble. I would like the dropdown to work like boostraps dropdown, but I do not know how to do this. This is ...
1
vote
2answers
1k views

shortcode to create dynamic dropdown box form shortcode attributes

I am trying to make a shortcode that will create a dynamic dropdown list of downloadable file links, that once selected, html will show a download link below the dropdown. Here is the end result of ...
1
vote
1answer
3k views

Filter results with custom field values and dropdown

I need to filter posts by a custom field value. My specific example: User browse to products > category 1 > subcategory A. ALL "subcategory A" items (products custom post type) are displayed as ...
2
votes
1answer
177 views

Archive dropdown styling not applied

I am trying to add a custom dropdown for archives but struggling with couple of mistakes that might be the reason why it doesn’t work. The CSS only gives my dropdown the width, not the other styles ...
0
votes
1answer
2k views

Contact Form 7 “non-selectable” options in a drop down

I'm using CF7 and I need to have a dropdown with a non selectable category "header" such as US States AL AK AR...etc. Countries Afganistan Albania etc.... With "US States" and "Countries" not ...
0
votes
1answer
66 views

Trying to get variables in hacked category dropdown

I've discovered a workaround to get wp_category_dropdown to display as a multiple select field. My code is as follows: <?php $sponsors = wp_dropdown_categories( array( 'child_of' => 0, ...
1
vote
1answer
1k views

Wordpress 3.5 dropdown menu

I'm pretty new with wordpress and I want to create my own dropdown menu without the use of any plugins. I have a few questions about this. I already did some research but there are some things i do ...
0
votes
1answer
538 views

Using and saving custom dropdown boxes on user profiles

Okay, so I'm creating a website and am in need of help for some custom meta fields for user profiles. Currently I have the following in my functions.php file: //hooks add_action( ...
1
vote
1answer
386 views

How to determine the depth of a term in a custom taxonomy?

I'm building a <select> dropdown to display a list of terms for a custom hierarchical taxonomy. How do I know the depth of each term? I'd like to add some indentation for child-terms (the more ...
0
votes
2answers
513 views

Dropdown Menu for Query_Posts

I can successfully query post results using query posts like so... <?php // The Query query_posts("gdsr_sort=rating"); // The Loop while ( have_posts() ) : the_post(); ?> <?php ...
0
votes
2answers
1k views

How to use wp_category_checklist()?

I've recently discovered that we can insert a dropdown list of categories like this: <?php define( 'WP_USE_THEMES', false ); require( './wp-load.php' ); ?> <?php ...
0
votes
1answer
2k views

Create custom taxonomy and Display in metabox dropdown

I'm looking to create a dropdown in the post edit screen which contains 3 already existing tags. What's the easiest way of doing this? Basically all I'm looking for is a simple drop down which adds ...
1
vote
1answer
264 views

No authors in change author dropdown

I have added a custom post type "Review", and a custom role "Reviewer". The issue is when logged as admin I take review which current author is admin and I want to change author to a Reviewer I have ...
1
vote
1answer
456 views

Recreating the hierarchy of taxonomies for a dropdown form menu?

I have a form that contains a dropdown menu. This form is on a page form.php and is not part of my theme. It exists outside of my site. This dropdown menu contains my list of values for a custom ...
1
vote
0answers
685 views

Dynamic dependent Dropdown lists for Categories, Sub-Categories and Posts!

I'm using WordPress 3.5 as CMS to develop my personal website. The reason I'm writting, is that I need a way to implement a code or plugin to allow users to navigate through posts using ...
-1
votes
1answer
635 views

Open WordPress Page from selected option dropdown

Code/process to get option dropdown menu selection to open page in WordPress with php? Tried all kinds of plug-ins, widgets, but none will make menu that fits requirements of project so far. ...
0
votes
1answer
585 views

How to create drop down for child categories of current taxonomy being viewed?

I need to know how can I get the child/grandchild terms of the current taxonomy being viewed, and put it into a drop down so that I can add values to the options. I am currently using this code to ...
-1
votes
1answer
1k views

Isotope Drop Down Categories Filter Function

I have a code in my functions file that I am using to generate a list of categories so that I can use isotope to filter the current page. However I need to know how to - How to make it a drop down ...
0
votes
1answer
318 views

Dropdown menu on click change

Im working on a website where I need to create a submenu that shows only the parent pages. When I click on one of the parents it has to show the children from that parent. Here is the menu hierarchy ...
1
vote
1answer
142 views

How to adjust code to refresh a dropdown box with tags that are active on filtered category listing

I have multiple custom tags setup (ptags) and custom posttypes (products) and made it so i can filters posts by multiple tags in a category. Currently the code retrieves tags from posts relating to ...
0
votes
1answer
169 views

Form to post new post with custom taxonomies

I have displayed the custom taxonomies in the drop down as you see in the red box i want to ask that how can i submit them with the post .I can't figure it out.` // Do some minor form validation ...
0
votes
3answers
911 views

Using wp_dropdown_categories in widget options

I have a product search widget when you select certain products a hidden field is shown. I would like to set a custom category in my widget options that is then used for displaying my hidden field. ...
0
votes
3answers
617 views

Search box with field hidden till drop down selection is made

I have a search widget with a drop down populated with my custom taxonomies. I need one of the other input fields to only show when a certain taxonomy or its children are selected. Before you say ...
1
vote
2answers
154 views

How do I sort posts with multiple pages

I am using a drop-down to sort posts by title, meta_value, etc. However, the sorting feature only works on the first page. The second page displays the default order rather than continuing the order ...
2
votes
2answers
524 views

Search results sorted by post types

I am working on a site with several post types - 4 to be exact - and I am trying to setup the search results page to have a filter/sort the results by post types. For example, when a person searches ...
2
votes
2answers
377 views

Dropdown: Display terms from B only if has relationship with a term A selected

I've googling for a solution for this issue and found nothing: I have some posts from a Custom Post Type (Restaurants) and its taxonomies ('city' and 'cuisine'). Whenever I create a restaurant post, I ...
0
votes
1answer
1k views

jQuery drop down not appearing for autocomplete/autosuggest

I have set a field to autocomplete/autosuggest but the drop down isn't appearing as I type. I can see the admin-ajax.php requests and the data returned in the Network tab of Chrome Developer Tools so ...