Add customization to the slider

  1. Hi Patrick

    I'm just firing away, hope it's ok.

    I think it would be cool for a future update on buxpulse to add the feature that Hybrid News has on the slider from the backend.

    I'm aiming at the ability to choose a category for the stuff that goes into the slider. If nothing is selected then it could default to the latest entries.

  2. I think its a great idea. I can't promise anything, but I'd like to implement this.

  3. Is it possible to just hardcode a category to choose from until then?

  4. Yeah, in slider.php you can the following right before the loop (probably on line 17):

    <?php query_posts($query_string.'&cat=1');?>

    Replace the category ID with whatever category you want.

  5. Works like a charm, thanks a bunch.

    And for others with the same inquiry, the code goes right before this:

    <?php if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>

    in the slider.php


Reply

You must log in to post.

Topic Info

  • 5 posts
  • Started 10 months ago by Thomas
  • Latest reply from Thomas
  • This topic is resolved

Tags