WordPress.org

Ready to get started?Download WordPress

Forums

How do I make a blog page in Customizr without making my homepage a blogpage? (7 posts)

  1. temshalom
    Member
    Posted 3 months ago #

    I have my homepage looking exactly as I want it to look. The URL is upon3thing.templeshalom.org. I really like my slideshow at the top and the three links/pics at the bottom. I want the blog to be a totally separate page. Please can someone tell me how to do this?

    I tried to make the front page a static page but it wiped out all of my stuff on the homepage and I'm not sure if I am doing it wrong or missing a step.

    Thanks, in advance for your help!

  2. Andy McIlwain
    Member
    Posted 3 months ago #

    upon3thing.templeshalom.org is giving me a 404 error. Is that the right URL?

  3. acub
    Member
    Posted 3 months ago #

    Here's a couple of functions with their respective hooks that achieve what you need. Don't forget to replace your-page-slug-or-id with the actual slug or id of the page that you want your blog posts displayed on. Replace it in both functions.

    This code should go in functions.php of your child theme:

    add_action('__before_loop', 'replace_page_query_with_blog');
    function replace_page_query_with_blog() {
    	if (is_page('your-page-slug-or-id') && is_main_query() && !is_admin()) {
    		query_posts('post_type=post&paged='. get_query_var('paged'));
    	}
    }
    add_action('__after_loop', 'reset_my_custom_query');
    function reset_my_custom_query() {
    	if (is_page('your-page-slug-or-id') && is_main_query() && !is_admin()) {
    		wp_reset_query();
    	}
    }
  4. Cathy
    Member
    Posted 3 months ago #

    You can add the "Category" blog to your menu...see You Tube video by Katrina on using the Customizr theme (77webstudio.com)

  5. temshalom
    Member
    Posted 3 months ago #

    Andy, no, it is upon3things.templeshalom.org. thank you!!!

  6. temshalom
    Member
    Posted 3 months ago #

    Acub, Im sorry but I don't know what a child theme is. Please can you help some more. Im so confused!

  7. esmi
    Forum Moderator
    Posted 3 months ago #

Reply

You must log in to post.

About this Topic