[okfn-help] How to tame wordpress?

Michael Bauer michael.bauer at okfn.org
Wed Apr 3 08:07:26 UTC 2013


Bobby,

Thanks. Besides the plug in: most of the talk I found was disabling
wp_autop completely (which as you point out is generally a _BAD_ idea).

I'll go ahead and activate it for said page.

Thanks!

Michael

On Tue, Apr 02, 2013 at 03:52:31PM -0400, Bobby Donovan wrote:
> For reference, there's already a network activated plugin that allows
> Administrator users of a site to insert html content into a post without it
> being stripped down. That was a previous request that I built a plugin
> for. Copy
> it here if you like<https://github.com/rdonovan/WP-Admin-Unfiltered-HTML/blob/master/admin_unfiltered_html.php>
> .
> 
> This does not suppress the
> wp_autop<http://codex.wordpress.org/Function_Reference/wpautop>
> filter,
> which is the one responsible for adding those annoying paragraph tags.
> There's a really simple method of disabling
> that<http://codex.wordpress.org/Function_Reference/wpautop#Disabling_the_filter>within
> a themes functions.php file. But I've also gone ahead and installed
> the plugin suggested by Michael below which you may activate on individual
> sites where needed.
> 
> Just a side note, whilst I also find this "smart filtering" from Wordpress
> annoying, relying on html structure within posts/pages is generally a bad
> idea. It's too easy to break as numerous users have direct access to code,
> not to mention the potential slow down from additional database load rather
> than reading static files.
> Correct use of page
> templates<http://codex.wordpress.org/Stepping_Into_Templates>is the
> preferred method of creating layout, then use the page/post content
> as the manageable fill-in. I agree that often you just want WP to get out
> of the way and display your content without interfering, just be wary to
> not over do it.
> 
> 
> On Tue, Apr 2, 2013 at 10:02 AM, Michael Bauer <michael.bauer at okfn.org>wrote:
> 
> > This:
> >
> > http://wordpress.org/extend/plugins/raw-html/
> >
> > asks you to mark the raw sections as <!--raw-->  - so it shouldn't
> > interfere with the rest.
> >
> > Michael
> >
> > On Tue, Apr 02, 2013 at 03:00:25PM +0100, Sam Smith wrote:
> > > I'd be for that. I'm not sure who's call it is, or if it'd have any
> > > negative effects for anyone? Bobby, any thoughts?
> > >
> > >
> > > On 2 April 2013 14:55, Michael Bauer <michael.bauer at okfn.org> wrote:
> > >
> > > > There are plugins for raw html. But they are not installed on the OKFN
> > > > network - can we think about getting one of those?
> > > >
> > > > Michael
> > > >
> > > > On Tue, Apr 02, 2013 at 02:49:38PM +0100, Sam Smith wrote:
> > > > > + 1 (this is something I've wanted since the first five minutes of
> > using
> > > > > Wordpress).
> > > > >
> > > > >
> > > > > On 2 April 2013 14:01, Michael Bauer <michael.bauer at okfn.org> wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I like to put straight html into wordpress (this allows for nice
> > stuff
> > > > > > like: http://schoolofdata.org/online-resources/) unfortunately it
> > > > still
> > > > > > insists on beeing clever and inserts random <p> tags into my
> > layout -
> > > > thus
> > > > > > resulting in incorrect parsing and display by browsers. Is there
> > any
> > > > way to
> > > > > > tell wordpress this is html - don't touch it?
> > > > > >
> > > > > > Michael
> > > > > >
> > > > > > --
> > > > > > Data Wrangler with the Open Knowledge Foundation (OKFN.org)
> > > > > > GPG/PGP key: http://tentacleriot.eu/mihi.asc
> > > > > > Twitter: @mihi_tr Skype: mihi_tr
> > > > > >
> > > > > > _______________________________________________
> > > > > > okfn-help mailing list
> > > > > > okfn-help at lists.okfn.org
> > > > > > http://lists.okfn.org/mailman/listinfo/okfn-help
> > > > > > Unsubscribe: http://lists.okfn.org/mailman/options/okfn-help
> > > > > >
> > > >
> > > > --
> > > > Data Wrangler with the Open Knowledge Foundation (OKFN.org)
> > > > GPG/PGP key: http://tentacleriot.eu/mihi.asc
> > > > Twitter: @mihi_tr Skype: mihi_tr
> > > >
> >
> > --
> > Data Wrangler with the Open Knowledge Foundation (OKFN.org)
> > GPG/PGP key: http://tentacleriot.eu/mihi.asc
> > Twitter: @mihi_tr Skype: mihi_tr
> >

-- 
Data Wrangler with the Open Knowledge Foundation (OKFN.org)
GPG/PGP key: http://tentacleriot.eu/mihi.asc
Twitter: @mihi_tr Skype: mihi_tr




More information about the okfn-help mailing list