• Resolved tellthemsol

    (@tellthemsol)


    Hi, i realy like this theme but there is a probleme im dealing with right now.

    Why the last blog post entrie does not appear in Blog featured slider, is there a way to make appear the last post entrie in the Blog featured slider?

    Regards and thank you very much for your help

    (sorry for my english im french native speaker)

Viewing 14 replies - 1 through 14 (of 14 total)
  • Theme Author José Leonardo

    (@joseleonardo)

    Hi tellthemsol,

    not sure why you slider is not being shown.

    Did you check the Theme Option theme (Appearence > Theme Option) to see if you didn’t hide this slider?

    Can you provide me your website link, please?

    Thread Starter tellthemsol

    (@tellthemsol)

    Hi

    The slide is being shown, the problem is that the slide show all the post but not the last one, you see ?

    Regards

    Theme Author José Leonardo

    (@joseleonardo)

    Ok, you have to look if you didn’t enable the random mode or picked a specific category.

    Thread Starter tellthemsol

    (@tellthemsol)

    I also noticed that also in the official demo:

    https://wp-themes.com/lupercalia?TB_iframe=true&width=1239&height=501

    The last post does not appear in the Blog featured slider only the 2nd ,3rd, ect.

    Thread Starter tellthemsol

    (@tellthemsol)

    Yes i checked random and specific category, but it is not resolved

    Thread Starter tellthemsol

    (@tellthemsol)

    I also checked “Post(s) offset”, it is set on 0

    Theme Author José Leonardo

    (@joseleonardo)

    Ah ok, now I understood what you are saying and I think you are right.

    Front page slider shows the last post, but on blog it is skipping one post, the last one… I am going to take a look and see what is happening… thank you for reporting this.

    It will be fixed on the next update.

    Thread Starter tellthemsol

    (@tellthemsol)

    Ok thank you, if you fixe this , can you post here the solution? before the update?

    Theme Author José Leonardo

    (@joseleonardo)

    Sure, no problem.

    Theme Author José Leonardo

    (@joseleonardo)

    tellthemsol,

    I found the source of the problem, but I am not sure if I can help you right now. I made a couple of changes, I’ve removed and added some code on my function.php to make it works as it should.

    Also, my original files are a bit different of yours now because I am thinking about change the jQuery Slider to another one.

    Thread Starter tellthemsol

    (@tellthemsol)

    Hi
    Ok is it possible to give me what you did the code ill try

    Theme Author José Leonardo

    (@joseleonardo)

    Sure,

    All changes were made on function.php.

    at lupercalia_slider() add this (around line 572):

    $defaults = array (
    “category_id” => 0,
    “visible_items” => 1,
    “num_posts” => 4,
    “post_offset” => 0,
    “auto_play” => true,
    “mobile_items” => 1,
    “orderby” => ‘ASC’,
    “post__not_in” => null,
    );

    and this (around line 587):

    $the_query = new WP_Query( array( ‘category__in’ => $category_id, ‘offset’ => $post_offset, ‘showposts’ => $num_posts, ‘post__not_in’ => $post__not_in, ‘orderby’ => $orderby, ) );

    after this, you have to change lupercalia_relatedpost() function to make it skip the post which is being displayed (around line 672 ):

    $args = array (

    ‘category_id’ => lupercalia_post_category(),
    ‘num_posts’ => $option[‘relatedposts_slider_field’][‘relatedposts_slider_numposts_field’],
    ‘visible_items’ => $option[‘relatedposts_slider_field’][‘relatedposts_slider_visibleitems_field’],
    ‘mobile_items’ => $option[‘relatedposts_slider_field’][‘relatedposts_slider_mobileitems_field’],
    ‘auto_play’ => $option[‘relatedposts_slider_field’][‘relatedposts_slider_autoplay_field’],
    ‘orderby’ => $option[‘relatedposts_slider_field’][‘relatedposts_slider_random_field’],
    ‘post__not_in’ => array($post->ID),

    );

    and this (around line 686):

    $args = array ( ‘num_posts’ => 5, ‘visible_items’ => 3, ‘category_id’ => lupercalia_post_category(), ‘mobile_items’ => 2, “auto_play” => ‘false’, ‘orderby’ => ‘rand’, ‘post__not_in’ => array($post->ID) );

    Thread Starter tellthemsol

    (@tellthemsol)

    Thank you very much, i have applied what you told me and now its work very well.
    thank you again for you help
    Regards

    Theme Author José Leonardo

    (@joseleonardo)

    Cool,

    I’m that it works!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Blog featured slider and last blog post’ is closed to new replies.