Support » Theme: Leaf » categories pictures on front page don't change when posting a new article

  • When i am posting a new article on my blog it shows up in the categories like apparal,footwear,etc etc but it doesn’t show up in the categories on my front page. The pictures are still the same. I would think that if I post a new article on my blog ,the front page also changes…
    Can anyone help me with this… I really think that when i post something the front page also has to change.. I like the theme very much but this would be for sure an addition to the theme

    Please let me know
    kind regards mischa

    http://www.25happythings.nl

Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author bradthomas127

    (@bradthomas127)

    Hi Mika1974,

    The 5 most recent post should go into your slider, the post on the home page do not duplicate.

    Hi Bradthomas127,

    Thanks for answering.. is there a possibility that the post on the home page also duplicates. because i think that will give the theme a big BOOST… Would be great if that is possible.. let me know if this would be possible to make..

    regards mischa

    Theme Author bradthomas127

    (@bradthomas127)

    You could make a child theme to do this but i am not putting it in the theme unless i get a bunch of request for it. It was made not to duplicate by design.

    I’m going to give this a go as it would be a useful feature for me.
    I’m new to WordPress so just a quick question before I get started – I’ve downloaded the child theme – is it now simply a matter of copying home.php to the child theme and amending the code there to show duplicate posts on the home page?

    Well that was straightforward. Made changes to home.php, removing reference to no_duplicates … job done.

    so now if i use the theme, the last post will also show up in the front page categories..
    Or do i have to change something in the CSS.
    So yes,can you show me what to do? because that would be very helpfull.

    thanks in advance

    kind regards mischa

    You need to follow the instructions on this page and install the child theme.

    Then open the file “home.php” which will be stored wherever your wordpress installation is, in the sub-folder wp-content/themes/leaf-child-master/

    Then look for the following code and remove it from the Featured and Categories sections:

    'post__not_in' => $no_duplicates

    Save the file and you should be good to go.

    I chose to leave the above code in the “More Articles” section so that I did not have duplicates between Categories and More Articles.

    @Guillian1:
    Thanks so much,this is working. not al the time,sometimes I have to remove the lines again,but in general it works. But know something else came up. My recent posts don’t show up in my slider anymore. It just shows old posts.
    Can you tell me how this is possible?
    thanks in advance

    kind regards Mischa

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘categories pictures on front page don't change when posting a new article’ is closed to new replies.