WordPress.org

Ready to get started?Download WordPress

Forums

News section of band website - Just want blog content &sidebar menu on the right (2 posts)

  1. meeloc
    Member
    Posted 7 years ago #

    I am currently in the process of creating a website for the Nottinghamshire band Captain Dangerous. I want the site to have a menu on the left hand side, with the sections showing their content on the right. However I don’t want to use frames. So on each page I am going to include the menu (with links to news, biography, tour dates, etc). I will probably set this up in a table, and the content will be shown in the right-hand column. Most of what I want to do I can achieve using bog-standard html. However the problem I am having is with the News section of the site. I want to be able to update it easily, as I would do a blog and have my site update it automatically.

    I’d like my news page to appear with the menu (as on all of my pages) on the left hand side, have the latest news article in the middle and on the right have a side menu which lists the titles of previous news articles in chronological order and below it an archive of news from previous months. When I click on the sidebar menu I want it to appear in the main section of the page. One thing I don’t want is to have the comments showing on my page. Another thing, I would like the content to appear in the same style as the rest of the text on my site.

    After reading loads of posts that I think are similar to mine, I guess I need to integrate the loop in to my site. I am using Dreamweaver 8 and I already have wordpress installed on my server (in the following directory http://www.captaindangerous.com/site/blog). Could somebody please give me a step by step guide to setting this news section up on my site because whenever I have tried the above posts I just get error message after error message.

    Thank you so much, I really appreciate your time.

    Miles

  2. Zoutesnor
    Member
    Posted 7 years ago #

    If you want to include the loop in your site, you have to include the wordpress header. This can be done as explained here: http://codex.wordpress.org/The_Loop#WordPress_1.5

    edit:

    Now, the get_header() function probably won't work, so you'll have to work around this. To put it short, before the loop, include this code:
    <?php
    define('WP_USE_THEMES', false);
    require ('http://www.captaindangerous.com/site/blog/wp-blog-header.php'); ?>

    This should probably do the trick, though I have no experience with this kind of thing, so you should just test if this works.

Topic Closed

This topic has been closed to new replies.

About this Topic