Jump to content

need help with syntax


scx316

Recommended Posts

I'm trying to code a featured panel in the category section of wordpress. I'm trying to pull articles that are in both the category for the page and the featured category. I got it to pull from the current category but no the featured.

<?php $myPosts .= "0"; add_filter('posts_where', 'post_strip'); ?>

<?php $category_id = get_cat_ID(single_cat_title("", false)); ?>

<?php $features = new WP_query(); $features->query('showposts='.$options['featured_n'].'&cat='.$category_id.'&'.$options['featured']); ?>
<?php global $wp_query; $wp_query->in_the_loop = true; ?>

 

This is the line with the problem.

 

    <?php $features = new WP_query(); $features->query('showposts='.$options['featured_n'].'&cat='.$category_id.'&'.$options['featured']); ?>

 

and here is a link to the live page

 

http://www.frontsidebus.net/category/gadgets/

 

Any help is appreciated

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.