shortcode causes broken paragraph tags

I worked around my problem by minifying my html in my plugin. So I made a function called wl_minify_html(String $htmlString) (which I found some another stack overflow answer somewhere). So here’s what my plugin looks like now: <?php function wl_minify_html($htmlString) { $search = array( ‘/\>(\s)+\</s’, // strip white space between tags ‘/\>[^\S ]+/s’, // strip … Read more

How to disable auto-p in WordPress?

In your child theme’s functions.php, try something like this: remove_filter( ‘the_content’, ‘wp_autop’ ); Note that this may have unintended side-effects, and will definitely have an effect on how your content renders.

Wpautop stops working after get_the_excerpt

wpautop has got to be my least favorite part of working with WordPress. Just when everything else is working, it sticks its fingers into everything… The problem has to do with filter priority, as you noted earlier. In the case of the excerpt, we’re interested in the filter get_the_excerpt. I haven’t been able to figure … Read more

Cannot get tags working from a WPAlchemy metabox with wp_editor()

sorry you were having trouble with my “Holy Grail”. It looks like you missed an important part in my functions.php sample: apply_filters(‘meta_content’,$simple_textarea->get_the_value(‘test_editor’)); You weren’t using WP Alchemy’s get_the_value method. So instead of: $richtextcontent = $page_type_richtext->the_value( ‘richfield’ ); yours should have been: $richtextcontent = $page_type_richtext->get_the_value( ‘richfield’ ); You were using the_value which echos out the value … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)