Title: Blocks output in the wrong order when using blockquotes in posts
Last modified: November 22, 2016

---

# Blocks output in the wrong order when using blockquotes in posts

 *  [Peter M.](https://wordpress.org/support/users/inveress/)
 * (@inveress)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/blocks-output-in-the-wrong-order-when-using-blockquotes-in-posts/)
 * Not really a question as I figured it out… But may be useful to others.
 * If I used blockquotes in a post, some code blocks would not be output in the 
   expected positions.
 * Using the debug output I could see that the code blocks were being output in 
   the wrong places — “After paragraph 1” was followed by “After paragraph 10”, 
   for example, and the debug output was incorrectly formatted, as if there was 
   a code issue.
 * Screenshot:
 * > [Ad Inserter output problem when using blockquotes in post.](https://imgur.com/a/p7MWO)
 * The HTML in my post checked out OK however.
 * And then I found that if I ticked the “Count also inside blockquote elements”
   option, everything started working fine. The debug output was formatted correctly
   again and blocks were counted in the correct order.
 * Hope that helps…!
    -  This topic was modified 9 years, 4 months ago by [Peter M.](https://wordpress.org/support/users/inveress/).
      Reason: Simplified problem description

Viewing 1 replies (of 1 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/blocks-output-in-the-wrong-order-when-using-blockquotes-in-posts/#post-8469345)
 * Thanks for the info!
    -  This reply was modified 9 years, 4 months ago by [Spacetime](https://wordpress.org/support/users/spacetime/).

Viewing 1 replies (of 1 total)

The topic ‘Blocks output in the wrong order when using blockquotes in posts’ is 
closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/blocks-output-in-the-wrong-order-when-using-blockquotes-in-posts/#post-8469345)
 * Status: not a support question