Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

Random posts on home page


  #1  
Old Apr 5, 2011, 06:30 PM
bogdanvelea
 
17 posts · Oct 2010
Send a message via Yahoo to bogdanvelea
Hello!

I'm looking for a way to set up home page to display random posts.

I founded something but i don't know if it is ok:
- to replace < ?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
with: < ?php query_posts(array('orderby' => 'rand', 'category_name' => SomeCategoryName, 'showposts' => 1)); if (have_posts()) : while (have_posts()) : the_post(); ?>

But i can't apply this because atahualpa theme is different.

Can you tell me what may i write instead

<?php while (have_posts()) : the_post(); $bfa_ata['postcount']++; ?>

<?php include 'bfa://content_inside_loop'; ?>

<?php endwhile; ?>

Thanks in advance
  #2  
Old Apr 5, 2011, 06:54 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Why not just use a plugin like this one? All it requires is to had a piece of shortcode to a post or page.
__________________
~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 Apr 6, 2011, 07:23 AM
bogdanvelea
 
17 posts · Oct 2010
Send a message via Yahoo to bogdanvelea
This plugin is loading just one post. I want to load 10 posts but in random mode. I do not necessarily to reload with an interval and fade effect...
  #4  
Old Apr 6, 2011, 07:47 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
To give you more control you might want to try the List Category Posts plugin. You can set to the number of posts you want to show and randomly sort. You can also show excerpts or not. There are many configuration options.
__________________
~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.
  #5  
Old Apr 10, 2011, 03:33 PM
bogdanvelea
 
17 posts · Oct 2010
Send a message via Yahoo to bogdanvelea
Hello!

It is a great plugin, but, i can not set it to show only featured images...
Now, you can see on my website (wowallpapers.com) that i have only featured images (without title, text etc.)

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
BUGFIX 351/352-01: EXCERPTS - Show first X posts on HOME page as full posts juggledad Old Version fixes and change logs 1 Jul 13, 2010 05:42 AM
[SOLVED] Home Page Linking to Random page?? twomomsdesigns Page & Category Menu Bars 3 Jun 21, 2010 05:53 PM
[SOLVED] 3.5.1 Bug? Show the first X posts on HOME page as full posts - not working Fux Excerpts, Read more, Pagination 6 May 30, 2010 01:59 AM
Use random image code to display random flash banner? blueprairie Header configuration & styling 0 Mar 18, 2010 01:30 PM
[SOLVED] random order of posts truthbrother Atahualpa 3 Wordpress theme 2 Feb 11, 2010 03:41 PM


All times are GMT -6. The time now is 12:27 PM.


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