[Plugin: WP Custom Fields Search] Custom fields search results issue.
-
Hi,
I’m using WP Custom Fields search plugin on a specific page to search by custom fields. Currently, I have this set up on a specific page to display 2 drop-downs of specific custom field values. you can see this here: https://ncs.lodjixmedia.net/venues/
The problem I’m having is that when displaying the search results (which works fine for the most part), my sidebar no longer works. Using the regular search has no adverse effects on my sidebar.
My sidebar code is:
<div id="content-right"> <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=4&paged=$page&posts_per_page=1&orderby=rand"); while(have_posts()) : the_post(); ?> <div id="homebox" class="promo" onclick="location.href='<? echo get('promo_url'); ?>';" style="margin:0 0 15px 0; background:url('<? echo get('promo_image'); ?>') no-repeat scroll 0 0 transparent;"> <div id="promo-title"><h4 class="promo"><?php the_title(); ?></h4></div> </div><!-- end homebox--> <?php endwhile; ?> <div id="homebox" class="side"> <h4 class="title">Recent News</h4> <ul class="widget"> <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=3&paged=$page&orderby=date&order=DESC&posts_per_page=4'); while(have_posts()) : the_post(); ?> <li style="margin-bottom:-5px;"><p class="widget" style="margin:10px 0 0 0;"><a href="<?php bloginfo('url'); ?>/news#<?php the_ID(); ?>"><?php the_title(); ?></a></p> <p style="margin:0 0 0 0;"><?php the_excerpt(); ?></p></li> <?php endwhile; ?> </ul> <p class="more"><a style="margin:0 5px 15px 0;float:right;" href="<?php bloginfo('url'); ?>/news">show me all</a></p> <div class="clear"></div> </div><!-- end homebox--> </div><!-- end content-right -->
For some reason, my queries for the sidebar doesn’t work when using this so I was wondering if anyone could shed light on this… maybe let me know how I can modify my query to work with this or what I’ve done wrong.
Thanks for all your assistance.
- The topic ‘[Plugin: WP Custom Fields Search] Custom fields search results issue.’ is closed to new replies.