Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #3063

    Hi there,

    I initially didn’t want to include a blog on my website and I deleted all the dummy content, but I’ve changed my mind and I would like to use a blog page as part of my navigation but not on my main page. How can I add a blog page?

    Thanks!

    Celia

    #40490

    Hey,

    you have two possibilities:

    1) Just link to a category (Appearance > Menu). Create a “category link” and name it “Blog”. All posts of this category will be displayed on your “blog page” afterwards.

    2) Make a copy of index.php and rename the duplicate to template_blog.php. Then replace

    <?php get_header(); ?>

    with:

    <?php
    /*
    Template Name: Blog
    */
    ?>

    <?php get_header(); ?>

    At least go to your “Blog page” (page you link to in your main menu) click on “edit” and select the “Blog” template.

    #40491

    I made a copy of the index.php and it worked! Thank you! But now I have another issue. I want to start blogging but my posts are not appearing under my “blog page”. How do I link those two together? My posts and my blog page.

    I also tried to add one of my categories as one of my navigation pages (appearance>menu, like you told me), I’m able to see all of my posts BUT I get a headline saying “Archive for blog”.

    Ideally I would like to keep the URL: http://celiasdesign.com/blog

    instead of: http://celiasdesign.com/category/blogs

    If it’s not possible to keep the URL: http://celiasdesign.com/blog How do I get rid off the :Archive for blog”?

    I hope you understand me.

    Celia

    #40492

    Hey,

    As you’ve setup the Blog link as a category (rather than using a custom page template) it looks for posts added to the “Blog” category.

    You can adjust the page in a couple of ways:

    1.) Change it to a Custom Page Template in a page called Blog. Basically, duplicate the index.php file, naming it template_blog.php and add this code to the very top:

    <?php
    /*
    Template Name: Blog
    */
    ?>

    2.) Keep it as a category bearing in mind only posts added to the Blog category will show up here. You can also use a plugin such as WP No Category Base to remove the category part of the URL of adjust the category base under Permalink settings (WP Admin > Settings > Permalinks) to acheive this.

    Let me know if this needs further clarification.

    James

    #40493

    Great! Thank you!

    #40494

    Glad that we could help you :)

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘How to add a "blog page" as part of my navigation’ is closed to new replies.