• Resolved happysunbird

    (@happysunbird)


    Hi esmi/Mel,

    Thank you for developing the Zenlite theme. I looked through hundreds of wordpress themes, and Zenlite stood out head and shoulders above the rest.

    I am a new wordpress user, and I have no experience in coding. However I am willing to learn, and I am hoping you will point me in the right direction.

    My website is: rae.co.sz

    I have Zenlite 4.10, and I am using the Basic Child childtheme.

    “Home” is my main blog page. But in addition to this, I write a regular newspaper column. I want a page where I can republish these columns on the website, on their own page, which has its own archive. The columns, which I will upload weekly, must not appear on the home blog.

    How do I go about this? I understand that you will probably give me an answer above my current level of skill, but I will appreciate what you have to say because at least I’ll know what I’m aiming towards being able to do.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author esmi

    (@esmi)

    I want a page where I can republish these columns on the website, on their own page, which has its own archive.

    If you are using a category like “News” for your newspaper column posts, you can simply use the default News category listing for these posts. It would probably work best if you also made use of a custom menu so that you can add the category page as a menu item to your site’s navigation menu.

    The columns, which I will upload weekly, must not appear on the home blog.

    That is going to require some coding work. Assuming that your News category has the id 8, try adding:

    function exclude_category( $query ) {
        if ( $query->is_home() && $query->is_main_query() ) {
            $query->set( 'cat', '-8' );
        }
    }
    add_action( 'pre_get_posts', 'exclude_category' );

    to your child theme’s functions.php file.

    Thread Starter happysunbird

    (@happysunbird)

    Fantastic, thank you very much for the clear instruction, it was easy to do and now everything is working as I want it to.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Second archive’ is closed to new replies.