• Hi all,
    I have installed Leaf theme in https://www.bleje.net … Posts that are in the slider don’t show in the categories. Can someone tell me how to show post also in the categories in home.

    Also I don’t want to show “more articles” section.

    Can someone help me how can I do these?

    Sincerely,
    Mejdi.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Mejdi,

    I can help with the “more articles” section: if you add this code to your “custom.css” file inside your theme (appearance/editor)they will not show:

    .leaf-more-articles {
       display:none;
       }

    Thread Starter Mejdiu

    (@mejdiu)

    thanks chris1design, it worked.

    What about posts that are in slider also to be showed in the categories in home? Can anyone help me about it ?

    Hi Mejdi,

    Looking at one of the slider posts, I get this:
    <body class="single single-post postid-12285 single-format-standard custom-background">
    Looking at one of the category posts (culture) I get this:
    <body class="archive category category-kulture category-10 custom-background">
    Maybe they are not the same types. Maybe they do not come from the same place as all posts should show on the Home page. Maybe you must first create them first into posts inside your wordpress and then they would show up. Just an idea! Regards Chris

    Thread Starter Mejdiu

    (@mejdiu)

    I think you haven’t understood me. The posts that are in slider, aren’t on categories in home (slider has 5 newest posts – after I publish new post, the 6th not goes to the category, but others only in slider). So I want slider to have 5 newest posts, but all the posts to be in the categories (means 5 newest posts to be in slider and in categories too).

    Sorry Mejdi this goes beyond my scope. You may want to contact your theme author to solve this as I cannot go inside your dashboard to examine the problem. Regards Chris

    @mejdiu, first you have to download the Leaf child theme. Don’t modify the original theme, even if I don’t think this theme will be updated again – using child theme it’s the first thing to learn.
    Then you can remove more articles section from the copy of home.php file in your child theme.
    For the second thing, you have to modify this line
    <?php $loop = new WP_Query( array( 'cat' => $category, 'posts_per_page' => 4, 'paged' => $paged,'post__not_in' => $no_duplicates ) ); ?>
    in that same file at the “categories section” level.
    Read here for some information about wp_Query.
    Last, remove that “display:none;” rule from CSS because you don’t need it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show all post on home’ is closed to new replies.