Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Get WordPress post content _with_ paragraph tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcdade authored Oct 18, 2018
1 parent 015e240 commit 0e9ffe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private function setPosts($type = 'post')
'order' => date("Y-m-d", strtotime($post->post_date)),
'data' => array(
'title' => $post->post_title,
'content' => $post->post_content,
'content' => wpautop($post->post_content),
'author' => $author,
),
'categories' => array_map(function ($category) {
Expand Down

0 comments on commit 0e9ffe0

Please sign in to comment.