WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
categories pictures on front page don't change when posting a new article (9 posts)

  1. mika1974
    Member
    Posted 1 year ago #

    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

  2. bradthomas127
    Member
    Theme Author

    Posted 1 year ago #

    Hi Mika1974,

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

  3. mika1974
    Member
    Posted 1 year ago #

    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

  4. bradthomas127
    Member
    Theme Author

    Posted 1 year ago #

    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.

  5. quillian1
    Member
    Posted 1 year ago #

    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?

  6. quillian1
    Member
    Posted 1 year ago #

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

  7. mika1974
    Member
    Posted 1 year ago #

    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

  8. quillian1
    Member
    Posted 1 year ago #

    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.

  9. mika1974
    Member
    Posted 1 year ago #

    @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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic