• Resolved scrstudios

    (@scrstudios)


    I am trying to setup a site where the main blog would be on multiple topics but have links in the sidebar to link to topic specific blogs. How can I do this? Do I need to install the multi-user wordpress version instead of the single-user version?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You can create pages that only include posts for a specific category. There is also a way to exclude certain categories from your main blog page. Your sidebar links would become links to these special pages.

    If you can work with code at all, look at these:
    http://codex.wordpress.org/Template_Tags/query_posts

    http://codex.wordpress.org/Stepping_Into_Templates
    http://codex.wordpress.org/Pages#Page_Templates

    Thread Starter scrstudios

    (@scrstudios)

    This is great. My only problem is trying to determine the ID of a post or category since it is not displayed in the interface. I have to keep guessing until I get it right. Is there a way to turn on the id in the admin interface?

    Thread Starter scrstudios

    (@scrstudios)

    I also have another problem of creating the special pages. Do I

    1) create these outside of the admin interface with a text editor and saved as regular php files? OR

    2) create pages inside of the admin interface?

    If I do #1, the browser can’t seem to find the page properly with either sitename.com/blog/specialpage.php. Preferably I would like to put this in a subdirectory inside the blog directory as ….blog/travelogue/specialpage.pho

    If I do #2, I can’t seem to add the code <?php query_posts(‘category_name=2006Asia Travelogue”); ?> as it just shows up as regular text with the page is displayed in the browser with no posts.

    My only problem is trying to determine the ID of a post or category since it is not displayed in the interface.

    This changed with WP 2.5 What you have to do now is on the page that is the list of pages, point at the name of the page you want the ID for. Then look at your browser’s status bar, at the extreme left. You will see a URL of that page, and the last item in that URL is the ID #.

    I know, its not very intuitive

    I also have another problem of creating the special pages. Do I

    1) create these outside of the admin interface with a text editor and saved as regular php files? OR

    2) create pages inside of the admin interface?

    If I do #1, the browser can’t seem to find the page properly with either sitename.com/blog/specialpage.php. Preferably I would like to put this in a subdirectory inside the blog directory as ….blog/travelogue/specialpage.pho

    If I do #2, I can’t seem to add the code <?php query_posts(‘category_name=2006Asia Travelogue”); ?> as it just shows up as regular text with the page is displayed in the browser with no posts.

    Create them with a text editor. But they have to go in the folder with your theme, which is http://domainname.com/WP_folder/wp_content/themes/{my_theme_name}

    If these are special page templates, make sure the first lines in the file are the required page template comments

    <?php
    /*
    Template Name: Whatever Page
    */
    ?>

    Replace Whatever Page with whatever you want that template to be called.

    Thread Starter scrstudios

    (@scrstudios)

    OK, thanks for the info about the status bar showing the id.

    But, what URL do I link to for these special pages. I put the file named ‘2008AsiaTravelogue.php’ in the theme folder as suggested and tried linking to it in the sidebar page with but the browser displays a 404 error.

    Can I put this file in a subfolder of the theme directory such as ‘/travelogues/’?

    Thread Starter scrstudios

    (@scrstudios)

    OOps – the reference is href=”http://www.scrstudios.com/blog/2008AsiaTravelogue.php&#8221;

    I accidently put it in an anchor tag in the above post.

    Thread Starter scrstudios

    (@scrstudios)

    Another question is if I handle this using a category such as ‘2008 Asia Travelogue’ it will show up under the categories section in the sidebar so I don’t need to create a special section for ‘Travelogues’ in the sidebar. In addition, the system will create the page http://www.scrstudios.com/blog/index.php/category/travelogue/2006asiatravelogue/
    with the appropriate posts.

    If instead I create a separate section in the sidebar for ‘Travelogues’, then I need to figure out the proper URL to link to the files. It would also mean that everytime I add a new travelogue I would have to not only create the special page, but also update the sidebar page.

    But if I use method one, I would never be createing code and instead making blog entries with the appropriate categories, except for updating the index page to eliminate another index.

    Which method do you think is best?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to have main multiple-topic blog with separate topic blogs’ is closed to new replies.