Support » Themes and Templates » POST_TYPE split

  • Good day, im using wordpress with real estate template and i want to sync my properties. I did an install the same wordpress to the 2 different domains. Then I used this code in settings.php :

    // Table names
    $wpdb->posts = $table_prefix . ‘posts’;
    $wpdb->users = $table_prefix . ‘users’;
    $wpdb->categories = $table_prefix . ‘categories’;
    $wpdb->post2cat = $table_prefix . ‘post2cat’;
    $wpdb->comments = $table_prefix . ‘comments’;
    $wpdb->links = $table_prefix . ‘links’;
    $wpdb->linkcategories = $table_prefix . ‘linkcategories’;
    $wpdb->options = ‘test1_options’;
    $wpdb->postmeta = $table_prefix . ‘postmeta’;
    $wpdb->usermeta = $table_prefix . ‘usermeta’;

    $wpdb->prefix = $table_prefix;

    All work good. Properties are synced, but pages too. I just want to sync properties. Properties in database are together with pages in POST and POST_META tables. Is there a way to split them up? Or some code to have only properties table synced ? Thanks for your replies.

  • The topic ‘POST_TYPE split’ is closed to new replies.