Forums

2 Blogs 1 database (9 posts)

  1. jitpal
    Member
    Posted 6 years ago #

    Hello. I've got an interesting question. I'm not sure if this should be in the How To or here. What I want to do is create 2 blogs. Both blogs will have the same content. So basically what I want is when I post somthing on one blog it will show up on the other automatically. Identical in every way. Basically, I want to have a lite version which is just basic code and another which has all of the fancy features that not everyone would have enabled. This is going to be a business blog, so I'd like to have it reach out to as many people as possible, regardless of screen resolution or anything.

    Any ideas on how to do this. I figure it might be simple, and if I get down to playing with it, I might be able to figure it out. However, I am not that good with this kind of stuff, I just get by. I was hoping there was a tutorial or something. Thanks -Jitpal

  2. Chris_K
    Member
    Posted 6 years ago #

    Seems like it would be pretty simple, actually.

    Install one blog. Configure wp-config.php and get it all running.

    Copy the blog directory (/blog1 to /blog2). Now you have two blog installs using the same database tables.

    And... oops. Hrmm.. The URI's would be different and negates the previous paragraphs.

    Ok then, there's an approach to NOT take.

  3. Chris_K
    Member
    Posted 6 years ago #

    Better idea. Look at the syndication plugins. Have one blog feed the other blog via RSS. http://codex.wordpress.org/Plugins/Syndication

    2 installs. 2 databases. Do all your authoring in blog1. Use a syndication plugin in blog2 to pull the content over.

  4. jitpal
    Member
    Posted 6 years ago #

    Hmm, interesting. I kind of had another thought. Is there such a plugin that would check the settings of the browser, as in resoultion, java(mostly this), and the browser itself. Then based upon that, it chose a template for the blog? As in one that is plain and simple, and another which has all the java scripts and such. -Jitpal

  5. Chris_K
    Member
    Posted 6 years ago #

    There are tons of plugins I've never seen... so I won't say that there isn't one that does what you want! If you find it, it could be an ideal solution.

  6. judrosik
    Member
    Posted 5 years ago #

    What about if I want choose destination of my post, in example: I have 3 web sites, I wrote first post for A, second for B, third etc.?

  7. judrosik
    Member
    Posted 5 years ago #

    What about if I want choose destination of my post, in example: I have 3 web sites, I wrote first post for A, second for B, third etc.?

  8. whooami
    Member
    Posted 5 years ago #

    If i can make a suggestion:

    the general options, specifically the blog uri and the home uri are in ONE table, and that table name is defined inside wp-settings.php

    Therefore, you use one almost complete set of tables and have 2 blogs using them together. The ONLY difference needs to be the options table.

    For instance:

    1. Install wordpress in one directory, use normal settings.

    2. Copy that install completely over to the other location

    3. Edit second copy (from step 2) of wp-settings.php and change this line ONLY:

    $wpdb->options = $table_prefix . 'options';

    You would need to remove the prefix and hardcode a second table name.

    4. Go into phpmyadmin, and COPY the current options table (by default wp_options to the hardcoded table name you defined in step 3.

    5. Edit the 2 uri settings in the new copied over table to reflect where the second blog is installed to.

    ----

    You should now have 2 options tables, 1 for one blog, one for the other, and each can have their own uris,themes, plugins, etc..but share everything else.

  9. whooami
    Member
    Posted 5 years ago #

    and for clarification.. since I just re-read your
    thread title.

    >>> 2 Blogs 1 database

    Its not the sharing of one database that presents the challenge. Its the tables within the database. 1000 seperate applications can share the same database, if there is enough room for them all

    Any differences between the applications (or similararities, in your case) lies in the table names, hence my suggestion above.

Topic Closed

This topic has been closed to new replies.

About this Topic