I've designed a custom category template using category-[id].php and it is fine now. All i'm attempting to do would be to give a Jquery Publish slider with featured images on custom category page. Presently, my theme enables me to include this by page. Presently, i've defined a category during my theme admin panel with this slider.

My home page includes a slider for category "Featured" . How do i have this particular slider on my small Custom Category Template page showing recent four to five posts from that category [not the same as the house the first page] with "Featured Images" ? Can one make use of the same Featured slider purpose of my theme to possess a new slider when i referred to on my small custom category template page ?

** My Wordpress theme is LondonLive by Skyli.

index.php code:

<?php get_header(); ?>

<?php if( get_option('skyali_londonlive_featured_style') != 'slider_long' AND  get_option('skyali_londonlive_featured_style') != ''){ ?>

<?php  if($video_ != 'true'){  ?>

<?php include_once('includes/'.display_featured().'.php'); // include featured ?>

<?php } else { ?>

<?php include_once('includes/featured_2.php'); } ?>

<?php } ?>

<?php if(get_option('skyali_londonlive_slider') != '' && get_option('skyali_londonlive_slider') != 'disable'){ ?>

<?php include_once('includes/slider.php'); ?>

Featured Slider Code:

<div id="featured" <?php featured_option(); ?>>
<?php  $featured_cat = get_option('skyali_londonlive_featured_cats'); //get featured category ?>
<ul class="ui-tabs-nav">
<?php $i = 1; ?>
//list featured slide previews
$featured = new WP_Query('showposts=4&cat='.$featured_cat.''); while($featured->have_posts()) : $featured->the_post(); ?>
<?php if($i == 1){$select_element = 'ui-tabs-selected';} else { $select_element = ''; } ?>
//list featured slide show div's 
$featured = new WP_Query('showposts=4&cat='.$featured_cat.''); while($featured->have_posts()) : $featured->the_post(); ?>
<!-- <?php echo $i; ?> Content -->

You need to have the ability to copy/paste the majority of the code you require from the index.php apply for your theme. It is not a freely available theme and so i can't see that code myself, but when you search for <div id="featured"> it will enable you to get pretty close.

Then you will simply need to customize the query being carried out for the reason that code to limit it to simply the course that you would like. Whether it's using get_posts, your query would look something similar to this:

$current_category = single_cat_title("", false);
$args = array(
    'numberposts'     => 5,
    'offset'          => 0,
    'category_name'   => $current_category,
    'orderby'         => 'post_date',
    'order'           => 'DESC',
    'post_type'       => 'post',
    'post_status'     => 'publish' );

$recent_posts = get_posts( $args );

Whether it's using Wordpress_Query, your query need to look something similar to this:

$current_category = single_cat_title("", false);
$cat_posts = new WP_Query('showposts=5&category_name='.$current_category);

while ($cat_posts->have_posts())