Title: [Plugin: CataBlog] wpautop table bug
Last modified: August 20, 2016

---

# [Plugin: CataBlog] wpautop table bug

 *  [th3rion](https://wordpress.org/support/users/th3rion/)
 * (@th3rion)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-catablog-wpautop-table-bug/)
 * Hi
 * For my product catalog i need to put table into description but wordpress creates
   blank space before table. You can see it here – last item on the bottom [http://th3rion.unixstorm.org/jarex/?page_id=162](http://th3rion.unixstorm.org/jarex/?page_id=162)
 * On rest of entries tables are made with divs (with divs table everything is ok)
   but in catalog would be around 300 products and someone else without html knowledge
   would be adding them so i need tables.
 * After google search i found its common problem with wpautop and it can be disabled
   in formatting.php file just by changing it from true to false but it doesnt work
   for catablog.
 * I think that maybe somewhere in catablog this function is still turned on but
   i dont know where to look…
 * I have also second question. What if i want to have default content in catablog
   entry, for example blank table. I know i can add this to my functions.php:
 * add_filter( ‘default_content’, ‘my_editor_content’ );
    function my_editor_content(
   $content ) { $content = “table or something”; return $content; }
 * but it works only for wordpress post and pages – not catablog entries. How to
   target catablog entry with this function.
 * [http://wordpress.org/extend/plugins/catablog/](http://wordpress.org/extend/plugins/catablog/)

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

 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-catablog-wpautop-table-bug/#post-2978152)
 * Hi th3rion, how are you?
 * I had a look at your code through firebug in firefox. Apparently there are something
   like 10 lines of `<br>` added and this is what is causing the space above the
   table. Are you aware of this?
 *  Thread Starter [th3rion](https://wordpress.org/support/users/th3rion/)
 * (@th3rion)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-catablog-wpautop-table-bug/#post-2978158)
 * Yes im aware but in my code theres no break lines. Heres screenshot:
    [http://th3rion.unixstorm.org/jarex/1.jpg](http://th3rion.unixstorm.org/jarex/1.jpg)
 * I think its a bug – putting code in one line doesnt help.
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-catablog-wpautop-table-bug/#post-2978162)
 * Hello, I have tried to create a table like yourself and you are correct. For 
   some reason it creates so many line breaks. I think that happens because of the
   css class code. I think the only way to get it to work is to create a custom 
   template using your own css class.
 *  [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-catablog-wpautop-table-bug/#post-2978204)
 * There might a solution to this if you are still interested. Although it is not
   100% but it will do the job. Change the following settings:
 * Under CataBlog >> Description >> Uncheck
 * **Render Line Breaks:**
 * This filter injects a line break and that is what’s causing for the table to 
   create many `<br>` tags.
 * However when you are viewing your CataBlog library you will need to set the view
   to Grid View because if you have it set to Line View you will noticed that it
   will merged some products with each other and it looks ugly. This is a small 
   bug found in CataBlog. However you can still use this feature regardless what
   you see in your CataBlog library. Also you might have to select your products
   and add them to the gallery.
 * Kind regards

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

The topic ‘[Plugin: CataBlog] wpautop table bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/catablog_f7f6f7.svg)
 * [CataBlog](https://wordpress.org/plugins/catablog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/catablog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/catablog/)
 * [Active Topics](https://wordpress.org/support/plugin/catablog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/catablog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/catablog/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-catablog-wpautop-table-bug/#post-2978204)
 * Status: not resolved