I know this topic has been covered multiple times before, but I've tried every tutorial I've found online and haven't been able to figure it out.
I'm using the free NewsMojo theme (http://fthemes.com/newsmojo-free-wordpress-theme/) on my blog (http://eldoradofrontier.com/) and would like to have the posts appearing in the "featured" carousel not also appear in the main feed below it. I don't want to use any category filtering, because I expect my site to have too many new posts for it to make sense to have to go back and remove old posts from the featured carousel.
I don't know much about PHP, but I tried the $do_not_duplicate trick mentioned in the codex (it won't let me post the link because I'm new) without any success.
As far as I can tell, these are the two loops on my homepage:
One, in the file template.php in the folders "featuredposts":
<?php
$featuredposts_source = $this->theme->get_option('featuredposts_source');
$featuredposts_moreoptions = $this->theme->get_option('featuredposts_moreoptions');
$featuredposts_query = false;
if($featuredposts_source == 'category') {
if($this->theme->display('featuredposts_source_category')) {
$featuredposts_query = 'posts_per_page=' . $this->theme->get_option('featuredposts_source_category_num') . '&cat=' . $this->theme->get_option('featuredposts_source_category');
}
} elseif($featuredposts_source == 'posts') {
if($this->theme->display('featuredposts_source_posts')) {
$featuredposts_query = array('post__in'=> explode(',', trim($this->theme->get_option('featuredposts_source_posts'))), 'post_type'=>'post');
}
} elseif($featuredposts_source == 'pages') {
if($this->theme->display('featuredposts_source_pages')) {
$featuredposts_query = array('post__in'=> explode(',', trim($this->theme->get_option('featuredposts_source_pages'))), 'post_type'=>'page');
}
}
if($featuredposts_query) {
$featuredposts_excerpt_length = $this->theme->get_option('featuredposts_excerpt_length');
query_posts($featuredposts_query);
if (have_posts()) : while (have_posts()) : the_post();
?>
And the next, in the file loop.php:
<?php
global $theme;
if (have_posts()) : while (have_posts()) : the_post();
?>
I think I need to create an array with the post IDs in the first loop, then tell the second loop to ignore those posts ... right? But how do I do that?
Thanks in advance for the help, and sorry for the noob question! -Cody