WordPress.org

Ready to get started?Download WordPress

Forums

Wiki
[resolved] wpautop (8 posts)

  1. tayloroliphant
    Member
    Posted 7 months ago #

    Hello,
    Is there a way to turn wpautop on and off for wiki posting? I currently have the plugin "wp-autop control" installed to turn off autop, which works great except I can't access it from the wiki so all wiki pages have autop turned off. I have easily confused users that kind of need autop but I can't turn it on for the rest of my site because it would mess up my inbound RSS formatting. Any ideas?

    http://wordpress.org/plugins/wordpress-wiki-plugin/

  2. WPMU DEV
    Member
    Posted 7 months ago #

    Hi @tayloroliphant,

    I hope you are well today and thank you for your question.

    To turn on and off automatic formatting for wikis, add following code in the functions.php file of your child theme or add it in your site using any of the following plugins to support custom fields in Wikis.

    add_action('init', 'my_custom_init');
    function my_custom_init() {
    	add_post_type_support( 'incsub_wiki', 'custom-fields' );
    }

    http://wordpress.org/plugins/add-actions-and-filters/
    http://wordpress.org/plugins/code-snippets/

    After adding support for custom fields, you will be able to turn on and off automatic formatting for wikis using wpautop control plugin as described on the following page.

    http://wordpress.org/plugins/wpautop-control/faq/

    Best Regards,

  3. tayloroliphant
    Member
    Posted 6 months ago #

    Thank you very much for your help and sorry for the late reply. School knocked me out for a second. I did what you said using the add actions and filter plugin, it gives me custom fields, but wpautop isn't available in the new menus on the wiki editing pages. Am I missing something?

    Thanks! Any help is always appreciated.

  4. WPMU DEV
    Member
    Posted 6 months ago #

    Hi @tayloroliphant,

    You are welcome.

    it gives me custom fields, but wpautop isn't available in the new menus on the wiki editing pages. Am I missing something?

    To use wpautop in wikis as mentioned in FAQ page in the previous reply link, you have to add a custom field called wpautop to any post. When set to false, no or off, WordPress will no longer attempt to add <p> and tags to your posts and to use these tags set the field's value to true, yes or on.

    Kind Regards,

  5. tayloroliphant
    Member
    Posted 6 months ago #

    I just realized I had a different autop plugin than the one you mentioned. Pardon me, I'm dumb sometimes. I'll test out what you said a bit more and get back to you with something more logical. :)

  6. David
    WPMU DEV Support Staff
    Posted 6 months ago #

    Hi @tayloroliphant,

    Thanks for looking into that. I believe it should work just fine. Looking forward to seeing how that goes for you. :)

    Cheers,
    David

  7. tayloroliphant
    Member
    Posted 6 months ago #

    Works great! Everything is entirely legit for my purposes now and I'll begin phasing in the changes across the wikis. You can see the site at socialjusticenow.org if you're bored. It's a student run site but when some donations turn up I'd like to purchase your wiki system; very awesome product!

  8. WPMU DEV
    Member
    Posted 6 months ago #

    Hi @tayloroliphant,

    You are most welcome, if I can be of any further assistance please don't hesitate to ask :)

    Cheers,

Reply

You must log in to post.

About this Plugin

About this Topic

Tags