Title: Loop Formatting
Last modified: August 22, 2016

---

# Loop Formatting

 *  [rmkahler](https://wordpress.org/support/users/rmkahler/)
 * (@rmkahler)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loop-formatting/)
 * Hello,
 * I am having difficluty formatting the loop output content of my recipe page (
   here: [http://mycaliforniaroots.com/recipes/recipes-by-title/](http://mycaliforniaroots.com/recipes/recipes-by-title/)).
   I have the loop working great, it displays everything it is supposed to. However,
   I want the items to display right on top of each other, but instead they get 
   a space in between. For example, it looks like this:
 * Recipe 1
 * Recipe 2
 * Recipe 3
 * And I want it to look like:
 * Recipe 1
    Recipe 2 Recipe 3
 * When I use the clean code it just puts it in paragraph form: Recipe 1 Recipe 
   2 Recipe 3. How can I fix this? Any help is super appreciated!
 * [https://wordpress.org/plugins/custom-content-shortcode/](https://wordpress.org/plugins/custom-content-shortcode/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loop-formatting/#post-5627386)
 * Hello, sorry for the late reply. There are a few solutions:
 * 1) Put all the code in one line
 * 2) Protect the code from default post formatting, by wrapping with the `[raw]`
   shortcode (it should be enabled under Settings). For example:
 *     ```
       [raw]
         [loop type="recipes"]
           [field title]<br>
         [/loop]
       [/raw]
       ```
   
 * 3) Use the _clean_ parameter, and add `<br>` after the title.
 *  Thread Starter [rmkahler](https://wordpress.org/support/users/rmkahler/)
 * (@rmkahler)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loop-formatting/#post-5627416)
 * Putting it all on one line, then adding a `<br>` worked! Thanks!
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/loop-formatting/#post-5627418)
 * I’m glad you found a solution.
 * For multi-line shortcodes, the post editor’s auto-formatting can be a pain to
   get around. Another issue you may run into is the Visual editor – it will also
   try to auto-format the post content, which can rewrite your break lines. I have
   a few more notes about it in the FAQ section of this plugin page.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Loop Formatting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

## Tags

 * [formatting](https://wordpress.org/support/topic-tag/formatting/)

 * 3 replies
 * 2 participants
 * Last reply from: [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/loop-formatting/#post-5627418)
 * Status: not resolved