How to make most recent posts appear in both slider AND more articles (6 posts)

  1. mtnrox
    Posted 1 year ago #

    Is there a way to allow the newest posts to appear in both the slider and in the more articles section at the same time? Some of my readers are completely befuddled by the slider and don't realize those ARE the most recent posts.


  2. Mike
    Posted 1 year ago #

    Same question here. This is really needed. In case people don't sit and wait for the slider to go through all the latest articles, it'd be great to be able to show them static in a section below the slider too.

  3. Mike
    Posted 1 year ago #

    I thought I would try creating an extra category called 'slider' then I designated all the posts I wanted to feature in the slider as two categories: 'slider' and 'featured'.

    Then in Leaf options I set the Slider Category to 'slider', and the Home Page Categories to include 'featured', and it still shows the posts ONLY in the slider but NOT in the area below. That seems pretty absurd.

    Maybe there's a way to modify the PHP in one of the theme files, but that really shouldn't be necessary.

  4. Vallekano
    Posted 1 year ago #

    Hi, I had the same problem. Do this:

    Go to dashboard>appearance>editor

    Edit the file "home.php" and change this line (line 32 +-):
    <?php $no_duplicates[] = get_the_ID(); ?>


    <?php //$no_duplicates[] = get_the_ID(); ?>


  5. esmi
    Forum Moderator
    Posted 1 year ago #

    Do not edit the theme itself. First create a child theme for your changes.

  6. Vallekano
    Posted 1 year ago #

    Sorry, you are right. I just chose the fastest option :)

    This is the result:

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic