graphiccontent
Forum Replies Created
-
Forum: Hacks
In reply to: Search Category based on usernameHi Mark,
The search is embedded in the page and uses JS to display the results in the hidden div under the search box on submit. As I mentioned this is working for when I use the value=’cat id’ but just can’t get this to work dynamically with the username.
I really am a little stuck with this. Anymore help you could give or an example of the code you would use would be much appreciated and I’d be more than happy to donate for a coffee and donut for ya if we can get this working!
Thanks
MattForum: Hacks
In reply to: Search Category based on usernameHi Mark,
Thanks for that, I added it but it still pulls in all posts from everywhere with the keyword used.
Perhaps I have done it wrong…..I added 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" /> <?php $cat_to_search = get_cat_ID( $username.'-meetings' ); ?> <input type="hidden" name="cat" value="<?php echo $cat_to_search; ?>" /> <input type="submit" id="searchsubmit" value="Search" /> </form> </div> <span id="indicator" style="display:none;">Please wait...</span> <div id="searchresults" style="display:none;"></div>
Sorry if this is really dumb, I am not the most php literate person on the planet ??
if you could show me how to combine it into the search form that would be great
Thanks again
MattForum: Hacks
In reply to: page display issueHey Mark,
Yeah good point! I’m getting there with php but still sooooooo much to learn!
Thanks again
MattForum: Hacks
In reply to: page display issueFixed it after some playing!
<ul> <?php global $post; $tmp_post = $post; $myposts = get_posts('category_name='.$username.'-meetings'); foreach($myposts as $post) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <div class="nextStep"><?php $key="next_step"; echo get_post_meta($post->ID, $key, true); ?></div> <?php endforeach; ?> <?php $post = $tmp_post; ?> </ul>
adding <?php $post = $tmp_post; ?> seemed to do the trick!
Forum: Plugins
In reply to: WP CSS Dropdown Menu not displaying over contentHey there HenrieMedia,
Just found I’d post as I was having this issue today and managed to fix it.
Go into your style.css and make sure that your #sidebar is not set to overflow:hidden;
That will fix it!
All the best
Matt