Search Category based on username
-
Hi guys,
I am need of some help. I have built a client dashboard site. it requires that clients can search for a list of their meetings. I have a search function already in use on the site that brings up only the results from 1 cateogry however I need it to pull up results from a category based on the clients username.
I have it setup so that all the clients meetings go into a category called – ‘username’-meetings
I am using the function
get_posts('category_name='.$username.'-meetings');
to pull in a list of meetings and it works fine. How can I incorporate that into this
<div id="clientSearch"> <form method="get" id="search" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" value="enter keywords here" name="s" id="search_input" /> <input type="hidden" name="cat" value="8" /> <input type="submit" id="searchsubmit" value="Search" /> </form> </div>
I figure it has to go into the value but can’t workout how to do it
thanks in advance
Matt
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Search Category based on username’ is closed to new replies.