Receiving error with Custom Tables plugin

A quick and dirty “fix” would be to change line 378 in that file and cast the $qry variable to an array. It should make the error go away, however, to fix the actual cause of the problem some refactoring may need to be done. You could drop the plugin author a note. foreach ($qry … Read more

How can I make my blog private? [closed]

I finally found something (I think): Network Privacy is currently in version 0.1.4 but looks just about right. When installed, there’s a new Privacy setting screen where I can choose, e.g. I would like my site to be visible only to Site contributors. Given that new users automatically get the permission level Subscribers when they … Read more

Display sub menus as separate lists

I’ve decided to not change anything in walker class and “parse” the menu with jQuery, clone each children and append to “menu” container which gives me the result I was looking for. The only thing missing is how to pass ID of menu element which has childrens to start_lvl function. Thanks

Is there a full explanation on how to share a database with two WordPress sites on same server?

It is possible to add custom queries to the 2nd site, and pull posts from the first site: <?php $mydb = new wpdb(‘root’,’root’,’dev1′,’localhost’); $query_result = $mydb->get_results(“SELECT * FROM $wpdb->posts WHERE post_status=”publish””); if ($query_result) { foreach ($query_result as $result) { setup_postdata($result); get_template_part( ‘content’, get_post_format() ); } } else { echo “<p>Not found</p>” ; } ?> See … Read more