Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

Post appearing in sidebar widget but not front page


  #1  
Old Oct 15, 2009, 06:43 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
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, 07:40 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What widget are you using? It's not the standard 'Recent Posts' one is it?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Oct 15, 2009, 07:53 AM
paulae's Avatar
paulae
 
1,333 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, 08:15 AM
paulae's Avatar
paulae
 
1,333 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, 09:00 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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......???
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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 11:48 AM
Archive page shows post box help, and single post on front page help boberang Atahualpa 3 Wordpress theme 0 Aug 7, 2009 10:26 AM
sidebar on front page only seneque Sidebars & Widgets 4 Apr 8, 2009 05:26 AM
I'd like more than 1 post on the front page cdg Atahualpa 3 Wordpress theme 1 Dec 17, 2008 10:45 AM
right sidebar not displaying on front page cdg Sidebars & Widgets 1 Dec 17, 2008 10:44 AM


All times are GMT -6. The time now is 07:49 AM.


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