Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($city){
- $args = array(
- 'post_title' => $city . " Electrician",
- 'post_name' => $city . "-electrician",
- 'post_date' => $_SESSION['cal_startdate'],
- 'post_content' => $citycontent,
- 'post_status' => 'publish',
- 'post_type' => 'page',
- 'post_parent' => 11192
- );
- $city_id = wp_insert_post($args);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement