WordPress.org

Forums

Is it possible to have 2 different post pages on wordpress site. (6 posts)

  1. mrseowarlock
    Member
    Posted 4 years ago #

    Hi,

    I am currently using the ibusiness template and I am trying to move the blog off the frontpage and put it on an inner page so that I can have the front page be a static page but whenever I do this the heading section disappears from the frontpage and goes to the blog page.

    I have tried a couple of things to fix this but because we are limited to one database with our hosting creating another copy of the site and putting on the same server won't work.

    What I would like to know is there are way of having posts load into a page and secondly is it possible to create two different posts or to set it up so that when I write a new post it only adds to the inner page and not the front page(so the front page remains static)?

    Cheers,
    George

  2. AdrianApan
    Member
    Posted 4 years ago #

    The easiest method would be to use categories. Create 2 main categories (for example "Homepage" and "Blog"), setup the homepage to show the latest posts from the category titled "Homepage", add a menu link (via custom menus) with the category "Blog" to your navigation menu and your done.

    If you having troubles with the custom menus you can add this plugin, and after that create a page called "Blog" for example and at the bottom of the from (at the "page links to" field) complete it with the absolute url to your category listing (for example: http://www.mysite.com/category/category-name)

    Good luck!

  3. mrseowarlock
    Member
    Posted 4 years ago #

    Hi Adrian,

    Thanks very much I appreciate the help. I have created the 2 categories and it's almost working but now all the posts are still appearing on the front page even the ones that I have put into the Blog category.

    How do I setup the homepage to only show posts in the "Homepage" category?

    Cheers,
    George

  4. AdrianApan
    Member
    Posted 4 years ago #

    Add this code before the loop in your homepage template.

    <?php query_posts('cat=1&showposts='.get_option('posts_per_page')); ?>

    Also, don't forget to change the category ID to your desired cat (cat=x).

    If you somehow have some problems you can find more about post query in the WP Codex http://codex.wordpress.org/Function_Reference/query_posts.

    Good luck!

  5. mrseowarlock
    Member
    Posted 4 years ago #

    Hi Adrian,

    Thanks very much, It's fixed. The info you sent me worked a charm. I had a look at your profile and I noticed that your a web designer and developer and I had a look at your site.

    You really seem to know your stuff. We have been looking for a good developer that we can outsource customisation of joomla and possibly wordpress jobs to sometime in the next 6 months so do you have something such as a generalized pricing information for the services you offer?

    Cheers,
    George Stamoulis

  6. AdrianApan
    Member
    Posted 4 years ago #

    Hey George I`m glad it worked.

    Regarding your question please contact me via my website (you`ll find there a contact form) and we shall discuss this in private.

    Thanks,
    Adrian

Topic Closed

This topic has been closed to new replies.

About this Topic