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 »

Single Post on Front Page


  #1  
Old Dec 22, 2009, 09:35 AM
bplazar
 
39 posts · Oct 2009
I'm really struggling with putting a single "featured post" on my home page. I've tried making a specific category for the post and tried modifying index.php to use query_posts with a category parameter but for some reason Atahualpa doesn't seem to finish the page when I do that.

I saw in another post a recommendation to use cat2page but that plugin is very out of date and doesn't seem to provide the effect that I need.

Is there a reason why we can't use query_posts with Atahualpa? What other option is suggested for this functionality?

Right now I have the look and feel I want because wordpress is set to only show 1 post - the problem with that is the archive pages only show 1 post as well so this isn't the solution.

Please help!

coloradoanimalwelfare.org
  #2  
Old Dec 22, 2009, 10:45 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
You could try Sticky Front Page Categories and Tags
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Dec 22, 2009, 11:28 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
There is a post in the gold forums about ' How to: Create a announcement box at the top of the center column of the landing page' which works by defining a category that will go there and just adding a post to that category and then it is displayed.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #4  
Old Dec 30, 2009, 03:58 PM
bplazar
 
39 posts · Oct 2009
I guess I'm out of luck. Sticky Front Page seems to remove almost everything else from my front page and I'm $15 short of getting into the gold forum. I volunteer my time to update this particular website for a dog rescue that is just starting up. Frustrating that query_posts just won't work on this theme.

Thanks for the suggestions.
Beth
  #5  
Old Dec 30, 2009, 05:25 PM
bplazar
 
39 posts · Oct 2009
Actually, I think I have it figured out. Thanks again everyone for your help!
  #6  
Old Dec 30, 2009, 05:37 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Are you looking to only have one article/post on the front page or if a featured post plus others under it is OK you could just use the sticky post function. Do you have an example of what you are trying to accomplish?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Dec 30, 2009, 06:14 PM
bplazar
 
39 posts · Oct 2009
They were asking for a single story on the home page. I did figure it out though. Thank you!!!
  #8  
Old Dec 30, 2009, 06:24 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Would you mind sharing your "fix"?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #9  
Old Dec 31, 2009, 08:36 AM
bplazar
 
39 posts · Oct 2009
I found this code in an old forum post:

<?php if ( is_front_page() ) { ?>
<div class="ec3ctr">
<div class="announce">
<?php $my_query = new WP_Query('category_name=announcements&showposts=1' );
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<?php bfa_post_headline('<div class="post-headline">','</div>'); ?>
<?php bfa_post_byline('<div class="post-byline">','</div>'); ?>
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
</div>
<?php endwhile; ?>
</div>
</div>
<?php } ?>

I put it in the Content ABOVE the LOOP and added an announcements category. It seemed to do what I wanted it to do.
  #10  
Old Dec 31, 2009, 10:34 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I know you got it figured out but here is a plugin I had forgotten about. Opt-In Front Page. I lets you choose which category of posts will show on the front page and if there are no posts the front page resorts to regular blog function.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Adding 'signature' (image) under each post, but only on single-post page AnneTanne Atahualpa 3 Wordpress theme 4 Aug 24, 2009 11:47 AM
Adding signature under single post, not on frontpage /multiple-post page AnneTanne Post-Kicker, -Byline & -Footer 0 Aug 19, 2009 02:16 PM
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
[SOLVED] Next post and previous post links on top of single post page error susieswe Atahualpa 3 Wordpress theme 2 Jul 15, 2009 02:58 PM
I'd like more than 1 post on the front page cdg Atahualpa 3 Wordpress theme 1 Dec 17, 2008 09:45 AM


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


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