Scholar Theme Addition of multiple categories for Slideshow?

Hi tammie,

Was just wondering if it would be possible to integrate more than one blog category into the slideshow on the homepage so that a selection of blogs could be highlighted from across the categories, perhaps organised by date order?

Love the way the homepage works but to be able to publish multiple categories for slideshow and or latest news would be GREAT!

Just a suggestion but let me know what you think!

Cheers

Ross :slight_smile:

  • Tammie
    • WordPress Wizard

    @rossagrant: It can be considered for a future update however currently the only way you’d get that would be for you to add to the code. You could however edit slideshow.php and where you see:

    Line 59:

    <?php query_posts('category_name='. $photo_category . '' . $slideshow_count .''); ?>

    This could be made to say for instance if you want to show categories with numbers 2, 3 and 4:

    <?php query_posts('cat=1,2,3 '' . $slideshow_count .''); ?>

    Please bare in mind I’ve not tested that code just suggesting something along those lines. Here is a bit more of a reference about query_posts if you want to get a little deeper though:

    http://codex.wordpress.org/Template_Tags/query_posts

    You’d also want to edit line 34 where the ‘no javascript’ call is (the other query_posts on the page.

  • dabarnes
    • WPMU DEV Initiate

    hi tammie:

    i have a question along these lines too. i am using the columns and have moved the category name to the top of the column. i would like to have some of these posts appear in the featured slideshow also. when i add that category – use a category called ‘slideshows’ – to the posts i want to appear in both the slideshow and columns, that category name (i.e. “slideshow’:wink: appears at the top of the column, looking very silly. can you suggest a way to get the posts appearing in both the columns and the slideshow without the word ‘slideshow’ appear at the top of the column. i am using the daily theme.

    thanks, tammie. like everyone else on these posts, i am really enjoying using your themes.

    denise

  • dabarnes
    • WPMU DEV Initiate

    hi tammie:

    all set up again. it is here: http://watermarkcommunities.com

    i would like to be able to use the ‘slideshow’ category i created on a few select posts to have them appear in the columns as well as the slideshow but not have the word ‘slideshow’ appear at the top of the column.

    i looked around a bit and wondered if it might be adding something to the call – if that is the correct word – in content-cloumns.php to simply exclude the word ‘slideshow’. no idea how to do that.

    thank you. denise

    div class=”column-content”>

    <?php if ($cat_one != “”:wink::?>

    <div class=”content-block”>

    <?php $my_query = new WP_Query(‘category_name=’. $cat_one . ‘&posts_per_page=1’:wink:;

    while ($my_query->have_posts()) : $my_query->the_post();

    $do_not_duplicate = $post->ID;?>

    <div class=”feature-wrap”>

    <h4><?php the_category() ?></h4>

  • Tammie
    • WordPress Wizard

    @dabarnes: Why can’t you have it as one of the columns… sorry could be me not getting what you are doing but the columns feature an entire category for each block so not sure why you want to have 2 in one. It will show the word slideshow as that is the word of the category otherwise you will have to hard code a category to a block and that is a whole bucket of editing beyond what I think is something that is easier to get around by just having it as a category even call it a proper name – after all slideshow doesn’t have to be called slideshow…

  • dabarnes
    • WPMU DEV Initiate

    tammie:

    i basically want to use one post for two purposes: one in the column and, if it warrants, also in the slideshow sometimes. but i take your point that i should find another way to manage my content.

    thanks, tammie.

  • Tammie
    • WordPress Wizard

    @dabarnes: It’s not about finding a different way of managing I just think the theme can work exactly for what you want as all the slideshow is, is a link to a category (the name never appears anywhere in that apart from the back end) and then the content blocks just link to individual categories so you can then relink in there. Am I missing what you are trying to do though in that?