Default sub-pages on WordPress Multisite

wp_insert_post() returns a post ID for the fresh post. You can use that ID to set a parent post. Example $about_id = wp_insert_post( array ( ‘post_title’ => ‘About’, ‘post_status’ => ‘publish’, ‘post_type’ => ‘page’, ) ); wp_insert_post( array ( ‘post_title’ => ‘Information’, ‘post_status’ => ‘publish’, ‘post_type’ => ‘page’, ‘post_parent’ => $about_id, ) ); In your … Read more

Functions.php in Child Theme – load JS

I also working on ait theme template, If you want to add new css & js file into child theme so u first create function.php file in child theme directory & after that u can write following code… <?php define(‘CHILD_THEME_DIR’, get_bloginfo(stylesheet_directory)); /* this is my child theme css folder */ define(‘CHILD_THEME_CSS_DIR’, CHILD_THEME_DIR . ‘/assets/css’); /* … Read more

How to link two news page multilingual press

I am the author of Multilingual Press. Currently, there is no user interface to connect existing posts. This will be possible in one of the next versions. You can either connect both in the table $wpdb->base_prefix . ‘multilingual_linked’ or create a new post as the translation for the other.

Comments from mobile apps & Disqus

There’s a pre-release Windows Phone SDK right now for Disqus, and you might want to sign up and try that out: http://help.disqus.com/customer/portal/articles/1222036 Generally speaking it’s not difficult to sync up discussion threads between a mobile app and a WordPress site.