Forum has moved to another host, some things may be broken or shaky for a little while
Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

Post appearing in sidebar widget but not front page


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Oct 15, 2009, 05:43 AM
paulae's Avatar
paulae
 
1,332 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Post appearing in sidebar widget but not front page

http://www.larchmontgazette.com
ATA 3.4.3 WP 2.8.4

This just started happening. Notice the Pine Brook Residents Call for Safety Study headline at the top of the left sidebar under Recent Articles. Now look under the Featured Content Gallery in the center column. The story doesn't show up there, but it does if you click on the News category link in the cat menu. What could cause this?

To experiment, I edited the post, which was created on Oct. 8, to give it a newer publish date. That didn't do a thing.

We'll be publishing a new edition tonight (Thurs. Oct. 15), so these placements may not survive that, but just thought I'd ask if you see something obviously going on.
  #2  
Old Oct 15, 2009, 06:40 AM
juggledad's Avatar
juggledad
 
22,151 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
What widget are you using? It's not the standard 'Recent Posts' one is it?
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #3  
Old Oct 15, 2009, 06:53 AM
paulae's Avatar
paulae
 
1,332 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Actually, it's a piece of custom PHP code:
Code:
<div class="widget widget_recent_posts">
<div class="widget-title"><h3>Recent Articles</h3>
</div>
<div class="widget-content"><ul>
<?php
    $recentPosts = new WP_Query();
    $recentPosts->query('showposts=20');
?>
<?php while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>
<?php if (in_category(array('15','80'))) continue; ?>
    <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
</div>
</div>
Flynn helped me with this because I wanted to display recent headlines in the sidebar but exclude recent obituaries and letters to the editor (cats 15 and 80) from the list. He gave me similar code to exclude those cats from the center column of the front page, in index.php:
Code:
<?php /* If there are any posts: */

// Added by Flynn, BFA, April 21 - 2009: Excluding categories 15 and 80 from being displayed an Homepage
if (is_front_page() AND !is_paged()) {
     // $posts = query_posts($query_string . '&cat=-15,-80');
	 $posts = query_posts(array('category__not_in' => array(15,80), 'showposts' => 19));
}
I use Enhanced Recent Posts plugin to create the chunks of recent headlines below the main one, for obits and letters, in the left sidebar.
  #4  
Old Oct 15, 2009, 07:15 AM
paulae's Avatar
paulae
 
1,332 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
OK, I tried something. My partner had made the post sticky, but it wasn't making it show up in the center column, front page. I unstuck it, and now it's there. Go figure!
  #5  
Old Oct 15, 2009, 08:00 AM
juggledad's Avatar
juggledad
 
22,151 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Make sure to follow up this with Flynn when he gets back, I'm confused why he used query(..) in the sidebar code and not query_posts(...) as he did in the second part

as for it not showing as a sticky......???
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to keep image as top post on front page paulae Excerpts, Read more, Pagination 9 Nov 20, 2009 10:48 AM
Archive page shows post box help, and single post on front page help boberang Atahualpa 3 Wordpress theme 0 Aug 7, 2009 09:26 AM
sidebar on front page only seneque Sidebars & Widgets 4 Apr 8, 2009 04:26 AM
I'd like more than 1 post on the front page cdg Atahualpa 3 Wordpress theme 1 Dec 17, 2008 09:45 AM
right sidebar not displaying on front page cdg Sidebars & Widgets 1 Dec 17, 2008 09:44 AM


All times are GMT -6. The time now is 03:26 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.