Showing content from another wordpress installation database in the page template loop?

On your edit2: If it’s exactly the same, could you add echo apply_filters(‘the_content’, {$mypost->post_content}); to apply the_content filter to parse the shortcodes? Also, why not use the multi-site feature of WordPress? If so much is identical, it seems more straightforward to update if your code is not duplicated. And for shared content you could then … Read more

Why does dbDelta() not catch MysqlErrors?

As @Charleston Software Associates mentioned, the DESCRIBE query should not be executed if the table doesn’t exist. The best solution, as he pointed out, is to prevent the error from occurring in the first place. To do so, patch wp-admin/includes/upgrade.php as follows: Change the following line from dbDelta(): $tablefields = $wpdb->get_results(“DESCRIBE {$table};”); to: //Begin core … Read more

WP_list_table bulk_action get edit and delete

So, I found the problem. First of all, I was not selecting the right ID’s on my checkbox or buttons, so I changed to code to do so: function column_name($item){ $item_json = json_decode(json_encode($item), true); $actions = array( ‘edit’ => sprintf(‘<a href=”https://wordpress.stackexchange.com/questions/265648/?page=%s&action=%s&id=%s”>Edit</a>’, $_REQUEST[‘page’], ‘edit’, $item_json[‘id’]), ‘delete’ => sprintf(‘<a href=”https://wordpress.stackexchange.com/questions/265648/?page=%s&action=%s&id=%s”>Delete</a>’, $_REQUEST[‘page’], ‘delete’, $item_json[‘id’]), ); return ‘<em>’ . … Read more

Why is Woocommerce writing in my wp_comment table?

Oh, that is double offtopic, but for the sake of helping other people which might wonder the same about EDD and maybe other plugins, the reason is because wordpress core to not have any easy support for hierarchy between CPTs except for comments being under posts. As orders are “belonging” to specific products it makes … Read more

Have multiple local wordpress installs share a wp-content folder and database

For wp-content folder you need to add WP_CONTENT_DIR with path to this folder to each wp-config.php file of each your sites. All of these WP_CONTENT_DIR constants should have the same path to one folder. Read more about it here: http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content To share the same database, you just need to setup the same database settings in … Read more