Questions tagged [select]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
21
votes
3answers
44k views

How to use wp_nav_menu to create a select menu dropdown?

I'm using the following inside the wp_nav_menu function to create a select dropdown menu where each menu item is an option in the select dropdown... 'items_wrap' => '<select>%3$s</select&...
2
votes
2answers
9k views

Populating meta box with select-list of existing posts, and assigning it to custom post types

My question is partly based on this answer: https://wordpress.stackexchange.com/a/5778/27135 Mike's answer is really great, and the solution worked fine until I needed to include my meta box in a ...
0
votes
3answers
2k views

How to select one major category (or custom taxonomy) for a custom post type?

I've created a hierarchical custom taxonomy (genre) and want to use it for a custom post type (radio station). But I don't only want to assign some genres to a radio station. I also want to be able to ...
7
votes
1answer
817 views

Assign a Class to the Current “Tag” for Formatting

Essentially what I am hoping to replicate is something like the "current-menu-item" class that is applied to WP Menus. My client is wanting to use Tags as a sub-nav, and I've managed to get the tags ...
2
votes
1answer
770 views

How do I properly format the user_role array?

I used a role editor recently and needed to delete a role. After deleting it I noticed that it began to appear as blank in the edit user role drop-down. After a bit of investigating and deleting ...
1
vote
3answers
7k views

Make Selected Mutiselect Items “selected”

I'm developing a theme settings panel for a new wordpress theme that have an option to exclude categories from being shown in the loop. I managed to get the main functionality to work, using a ...
0
votes
1answer
10k views

Custom contact form 7 select with custom values [closed]

I have been searching for a way to add a select field to the Contact form with custom data. The goal is to have a form where someone can ask for information on an article by selecting the article ...