Support » Theme: Leaf » How to make most recent posts appear in both slider AND more articles

  • 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.

    Thanks!
    Roxanne

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    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.

    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(); ?>

    by:

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

    😉

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

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

    This is the result:
    http://www.locoaventura.com/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to make most recent posts appear in both slider AND more articles’ is closed to new replies.