Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save propertyhive/dd7ea3603e7b934c397813432b4f2477 to your computer and use it in GitHub Desktop.
Save propertyhive/dd7ea3603e7b934c397813432b4f2477 to your computer and use it in GitHub Desktop.
$my_post = array(
'ID' => $post_id,
'post_title' => wp_strip_all_tags( $unit_display_address ),
'post_excerpt' => ( ( isset($unit['short_description']) && $unit['short_description'] != '' ) ? $unit['short_description'] : '' ),
'post_content' => ( ( isset($unit['description']) && $unit['description'] != '' ) ? $unit['description'] : ( ( isset($unit['short_description']) && $unit['short_description'] != '' ) ? $unit['short_description'] : '' ) ),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment