WordPress.org

Ready to get started?Download WordPress

Forums

same site, same db, 2 copies of WP but one set of users and permissions (7 posts)

  1. Robert Simpson
    Member
    Posted 7 years ago #

    Hi folks,

    I've just installed WP 2.0.4 in my public_html root folder with the table prefix wp_. I'm looking to install another instance of WP 2.0.4 in the folder /articles/ (I'm using the root instance for normal news etc) and with the table prefix of wpa_.

    What I'd really like to do is have them share the same users and user permissions, having them share themes would be great too but it's not essential.

    There's probably a couple of ways to do this so I would be really grateful if someone could help me out and point me in the right direction, even if it's not even a case of using mulitple instances but doing something with .htacess and manipulating the folders.

    Many thanks in advance :)

    Cheers,
    Robert

  2. moshu
    Member
    Posted 7 years ago #

    I don't think there are "a couple of ways" to do it... Be happy if there is one :)
    Browse these topics: http://wordpress.org/search/two+blogs+same+users?forums=1

  3. Robert Simpson
    Member
    Posted 7 years ago #

    Hi Moshu,

    There were no topics with those search terms...

    Cheers,
    Robert

  4. Robert Simpson
    Member
    Posted 7 years ago #

    Ummm, can anyone else help?

    Cheers,
    Robert

  5. Bryan Davis
    Member
    Posted 7 years ago #

    I'm not sure whether that's possible or not. However, it strikes me that it may not be necessary.

    It seems that you're trying to have a main site managed by WP along with a separate "Articles" section, also WP-powered. On a single install, and with careful inclusion/exclusion of Post Categories within templates, it should be possible to keep different sections of your site separate in this way.

    Thus, you only have one set of users and one set of templates. Does this sound like it could work for you, or am I over-simplifying your requirements?

  6. Robert Simpson
    Member
    Posted 7 years ago #

    Hi tptboy,

    That sounds like it would do the trick, it only needs to appear to be a 2 seperate installations in that the category listing would be different.

    I would probably keep the categories seperate by keeping them in different parent categories. Any idea how I'd go about setting conditions to only show certain categories under different folders utilizing .htacess?

    Cheers,
    Robert

  7. Bryan Davis
    Member
    Posted 7 years ago #

    Hi Robert

    You can add pages for each of your parent categories and set your Permalinks accordingly. Then, in the template for each page, set The Loop to display only the required parent category. Examples of how to do that can be found here.

    You can then set your Archive root to something different (e.g. /archive/) and, by using Category Archive links you can maintain an archive structure for your different Parent Categories. It's a bit of a hack but it works; it's a technique I've used on several sites.

    Hope that helps. Please feel free to bother me about it further; either here or via my site (includes links to sites that do this) which you'll find on my profile. When I have time, I'll also sit down and write a clearer explanation of this on my blog, just in case anyone else needs to do similar.

    Cheers...

Topic Closed

This topic has been closed to new replies.

About this Topic