StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Select ALL Categories on Homepage Widget (http://www.studiopress.com/support/showthread.php?t=19911)

tldagent 01-16-2010 12:30 PM

Select ALL Categories on Homepage Widget
 
On the main page of the Church template, or many of the other templates, you have featured content blocks. Typically you go into the blog theme options and then select which block shows which category.

What I'd like is for one of these featured content blocks to show ALL categories. So that way if I have more categories than blocks, my content still shows up on the front page.

So looking at the church theme in particular, the Homepage Featured Bottom block allows you to select categories but what I'd like to see is the option to select all categories. One way to work around this would be to create a category called 'All Categories" then every blog is also placed into this one category and selecting it, but there's got to be a better way to do this.

If anyone knows of a better way to accomplish this, please do respond.

Thanks!

Debra 01-16-2010 06:52 PM

try this [back up files first]

change this


Code:

                <?php $recent = new WP_Query("cat=".get_theme_mod('featured_top_left')."&showposts=".get_theme_mod('featured_top_left_num')); while($recent->have_posts()) : $recent->the_post();?>
to this

Code:

    <?php $recent = new WP_Query("showposts=3"); while($recent->have_posts()) : $recent->the_post();?>

tldagent 01-18-2010 04:41 PM

Debra, I haven't done this yet but I'm going to give it a shot and post my results. Thank you so kindly for responding.

tldagent 01-21-2010 01:05 PM

Thank you very much Debra. Worked wonderfully!


All times are GMT -5. The time now is 04:22 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.