Forums

[resolved] AstickyPostOrder + featured categories = failure (4 posts)

  1. do77
    Member
    Posted 10 months ago #

    Hey,
    I am using the revolution lifestyle theme and I also want to use the AstickyPostorder plugin. But when I activate the plugin, the sections on the homepage don't show the featured posts anymore.

    Does anyone has an idea why that could be?

    Thanks!

  2. do77
    Member
    Posted 10 months ago #

    Ok, I figured it out. I had to define the featured posts by ID to make the plugin work with the theme.

  3. Riavon
    Member
    Posted 7 months ago #

    Can you explain? I don't understand what you mean by 'define the featured posts by ID' ? I am having this same issue with this plugin and the Streamlined theme. Any insight or more detailed help to get this plugin to work with this theme I'd be most grateful!

  4. pou7777
    Member
    Posted 2 months ago #

    Instead of having this in your header.php :
    <?php $my_query = new WP_Query('category_name=featured&showposts=10');?>

    you must build a query with the ID instead of category_name and it should look like this:

    <?php
    $args = array(
          	'showposts' => 10,
          	'post__in'  => array(1,3,66,321)
          );
    $my_query = new WP_Query($args); ?>

    where 1,3,66,321 are posts ID.

Reply

You must log in to post.

About this Topic