Tagged Questions
0
votes
1answer
49 views
Search form as list item in menu?
What is the best way to do this:
<?php wp_nav_menu( array('menu'=>'Primary',
'container'=>'',
'items_wrap'=>'<ul id="%1$s" ...
1
vote
1answer
496 views
Custom search filter causes menu and query_posts problems
I'm using a custom search filter (using my custom query var type), like so:
function fteh_pre_get_posts( $query ){
if( isset( $query->query_vars['type'] ) )
$types = explode( ',', ...
1
vote
1answer
140 views
get_search_form() doesn't appear to take parameter into account
I am creating a menu manually and trying to include the search form.
this is taken from the Wordpress Docs "Building a simple menu list" at ...
12
votes
2answers
9k views
Customizing Only a Specific Menu using the “wp_nav_menu_items” Hook?
Thanks to some help on here, I've managed to add a custom search box to my main menu... by adding this to my theme's functions.php
add_filter('wp_nav_menu_items','search_box_function');
function ...
2
votes
1answer
292 views
Where do custom menus get constructed?
I've created a simple menu in wp-admin>appearance>menus called main-nav. Works fine.
However, I'd like to add a custom element to the end of the menu... a search box like the search box in the ...