Docs to WordPress
[resolved] I'd love to use this for pages rather than posts. (3 posts)

  1. Michael Rosen
    Posted 3 years ago #

    I've got a lot more pages than posts to upload, but everything that goes in my ORIGIN GDocs folder winds up posted, and I don't see a setting to change that. I could really use such a feature.


  2. William P. Davis
    Plugin Author

    Posted 3 years ago #

    There are two ways you can do this.

    One is to use the the Post Type Switcher, which allows you to switch a post to a page and vice versa. http://wordpress.org/extend/plugins/post-type-switcher/

    The other option is to extend the Docs to WordPress plugin using the pre_docs_to_wp_insert filter. The plugin would look like this:

    Plugin Name: Docs to WP Pages
    add_filter( 'pre_docs_to_wp_insert', 'docs_to_wp_pages' );
    function docs_to_wp_pages( $post_array = array() ) {
         $post_array[ 'post_type' ] = 'page';
         return $post_array;

    I haven't tested this, but it should do the trick.

  3. Michael Rosen
    Posted 3 years ago #

    Both methods are working brilliantly. Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Docs to WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic