Title: yarray's Replies | WordPress.org

---

# yarray

  [  ](https://wordpress.org/support/users/yarray/)

 *   [Profile](https://wordpress.org/support/users/yarray/)
 *   [Topics Started](https://wordpress.org/support/users/yarray/topics/)
 *   [Replies Created](https://wordpress.org/support/users/yarray/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/yarray/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/yarray/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/yarray/engagements/)
 *   [Favorites](https://wordpress.org/support/users/yarray/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Ordering posts by title problem](https://wordpress.org/support/topic/ordering-posts-by-title-problem/)
 *  Thread Starter [yarray](https://wordpress.org/support/users/yarray/)
 * (@yarray)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/ordering-posts-by-title-problem/#post-1589604)
 * that is a possibility but not an option for my application, i need the numbers
   to stay the same
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Share certain tables of a WP database over 2 domains](https://wordpress.org/support/topic/share-certain-parts-of-a-wp-database-over-2-domains/)
 *  Thread Starter [yarray](https://wordpress.org/support/users/yarray/)
 * (@yarray)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/share-certain-parts-of-a-wp-database-over-2-domains/#post-1234340)
 * yea that code is for sharing a DB across different domains
 * it shares everything except the
    options links users and usermeta tables
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Share certain tables of a WP database over 2 domains](https://wordpress.org/support/topic/share-certain-parts-of-a-wp-database-over-2-domains/)
 *  Thread Starter [yarray](https://wordpress.org/support/users/yarray/)
 * (@yarray)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/share-certain-parts-of-a-wp-database-over-2-domains/#post-1234330)
 * found the solution here
 * QUOTED FROM [http://wordpress.org/support/topic/312547?replies=2](http://wordpress.org/support/topic/312547?replies=2)
 * > Nevermind, I think I found it thanks top this site :
   >  [http://www.wiseontech.com/hack/wordpress-hacking-multiple-blogs-on-one-set-of-tables-2](http://www.wiseontech.com/hack/wordpress-hacking-multiple-blogs-on-one-set-of-tables-2)
   > Down in the comments they refer to more modern installs. I did this:
   > Edit the wp-db.php file in the wp-includes directory.
   >  In the function set_prefix(
   > $prefix) section
   > After :
   > foreach ( $this->tables as $table )
   >  $this->$table = $this->prefix . $table;
   > Added :
   >  $this->options = ‘wp_’ . ‘options’;
   > Or whatever your new prefix is. Testing now, I’ll write again if I experience
   > any issues. This is a case of spending 4 hours a few nights ago, and going 
   > around in circles. Then after only 20 minutes of trying tonight, getting it
   > working. The benefits of rest apparently.
 * Here is the rest of the code you would need in addition to the ‘options’ for 
   all of the tables in wordpress.
 *     ```
       $this->posts = 'wp_' . 'posts';
       $this->categories = 'wp_' . 'categories';
       $this->options = 'wp2_' . 'options';
       $this->links = 'wp2_' . 'links';
       $this->postmeta = 'wp_' . 'postmeta';
       $this->terms = 'wp_' . 'terms';
       $this->term_taxonomy = 'wp_' . 'term_taxonomy';
       $this->term_relationships = 'wp_' . 'term_relationships';
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Assign an id to a link](https://wordpress.org/support/topic/assign-an-id-to-a-link/)
 *  Thread Starter [yarray](https://wordpress.org/support/users/yarray/)
 * (@yarray)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/assign-an-id-to-a-link/#post-506557)
 * nm it works thanks alot
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Assign an id to a link](https://wordpress.org/support/topic/assign-an-id-to-a-link/)
 *  Thread Starter [yarray](https://wordpress.org/support/users/yarray/)
 * (@yarray)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/assign-an-id-to-a-link/#post-506552)
 * that only works in the admin area
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [email function](https://wordpress.org/support/topic/email-function-2/)
 *  Thread Starter [yarray](https://wordpress.org/support/users/yarray/)
 * (@yarray)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/email-function-2/#post-487640)
 * anyone?????????????
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Index.php style question](https://wordpress.org/support/topic/indexphp-style-question/)
 *  Thread Starter [yarray](https://wordpress.org/support/users/yarray/)
 * (@yarray)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/indexphp-style-question/#post-483556)
 * Yes, i guess i better switch to a wp 2.0 template instead of my 1.5.

Viewing 7 replies - 1 through 7 (of 7 total)