Vice Versa – Convert Pages To Posts And Vice Versa – WordPress Plugin

Vice Versa is a plugin I wrote for WordPress. Vice Versa allows you to easily convert WordPress Posts to Pages and Pages to Posts. You can also assign a Page or Post a parent or category(s) as you are converting from one to the other. Vice Versa is easy to install and use.


Download Vice Versa:

Installation:

  1. Unzip vice-versa.zip.
  2. Upload the folder named ‘vice-versa’ to the wp-content/plugins directory on your server.
  3. Go to the plugins manager in your WordPress Dashboard, locate Vice Versa in the list of plugins (under ‘V’ for ‘Vice Versa’), and click Activate.
  4. Done!

No database tables are affected and there are no additional settings required for the plugin to work.

Once the plugin is activated, you will find Vice Versa in the Dashboard menu under Tools.

Screenshot:

  • Pingback: Has Analytics Shown What Works Best?

  • Yasin Ansari

    thank you for the review on the plugin. I have a client who has created 70 pieces of content as pages and now need to redesign and content restructuring is imperative. Just wish the plugin could handle multiple conversions as opposed to doing them one by one.

  • http://Quillcards.com David Bennett

    This looks interesting. However, I wonder what it does to the SEO. Does it do a 301 redirect?

  • Jason

    The permalink will change when you convert the item. You will no longer be able to access the item at the old URL, so any old links to it will receive page 404.

  • Franksed

    Hi Jason, sounds nice this plugin ut then, WP says its not tested as yet on version 3.01 which is my installed version. What do u suggest, try it still? Am a newbie on blogging, took me a while to get here, dont wanna bring it all crashing down… :-)

  • http://jasonlau.biz Jason Lau

    I don’t recommend using it if it says it hasn’t been tested. I would wait until I have a chance to test it. I wouldn’t want you to lose any work.

  • http://jasonlau.biz Jason Lau

    This plugin is compatible with WordPress 3.1.

  • Anonymous

    Hi Jason…

    Thanks fir making Vice Versa…I am using it on my site for a while (fastharry,com)..when I went there today I noticed I cant get all the pages to display. It shows ten pages in the limit space…but it also says there are 39 total. When I put 39 into the limit space and hit enter, they all flash up no the screen, but then it reverts back to the list of 10…I know it has worked before as I have used it to convert about 100 pages to posts…Any ideas how I can fix this?

  • http://jasonlau.biz Jason Lau

    I will check the plugin for bugs. It has been some time since I have revisited this plugin.

  • Anonymous

    Hi Jason…I have found out what is happening..In Firefox 5 and 6, you need to change the number and then “click” the page with the mouse pointer…it will then show you the list of required posts or pages…In IE, it changes automatically as soon as you enter the number..

    BTW, is this plug in going to be outdated any time soon?…As in not working…or will you keep up with it…

    Thanks

    Harry

  • http://jasonlau.biz Jason Lau

    The “onChange” event is handled differently by different browsers.

    I use this plugin periodically. If I notice it doesn’t work properly, or if someone reports a bug, I will tend to it. It’s probably due for some attention.

  • Anonymous

    Thanks….If I can ever help you with anything, let me know..You, Radio Control cars, stuff like that..You know, thinking about it, I am surprised that this type of functionality isn’t built into WordPress..Is there a way to change the pages into posts by rewriting code anywhere?…Also, you know what would be cool…a  check box at the end of the thread where readers could be notified of a reply when you answer…Thanks again,.,.

  • http://jasonlau.biz Jason Lau

    Thanks.

    The ability to change post types is not a built-in feature in WordPress. To change a post type, the database entry has to be changed. My “Vice-Versa” plugin is designed to accomplish that task.

    You can change the comment notification settings in your disqus profile.

  • purcell

    Does this work with WordPress 3.2.1 by any chance?

    Thanks

  • http://jasonlau.biz Jason Lau

    Yes it does.

  • Lisa

    Hi, Jason – I’ve just installed Vice Versa on avidcruiser.com/test/ and am getting the message “Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 206076499 bytes) in /home/avidtrav/public_html/avidcruiser.com/test/wp-content/plugins/vice-versa/vice-versa.php on line 169″  It’s a large site with – regrettably – 600+ pages that need to be converted to posts…

    Any hope?  p.s. I’m a newbie at this…

    Thanks,
    Lisa

  • http://jasonlau.biz Jason Lau

    Hi Lisa,

    Can you please tell me what version of Vice Versa you have installed?

  • Anonymous

    Hi Just found your plugin which sounds like a saviour (290 Pages to convert) but a couple of questions: When converting Page to a Post does it keep the same url?
    Some of the Pages have different ‘templates’ what happens when converted to Posts?
    Thanks, Francis

  • http://jasonlau.biz Jason Lau

    Hi Francis,

    When you convert from one post type to another, the url will change. The permalink structure is different between pages and posts, so after a conversion the post or page will adopt the new permalink structure. Vice Versa does not do redirects or htaccess writing.

    It is wise to notify search engines after you have made changes to your page and post structure. There is a WP plugin, Google XML Sitemaps, that can aid in that process.

    Vice Versa does not alter any code, so templates should not be affected, unless they rely on the URI/URL for some reason.

    J.

  • http://www.facebook.com/TheJoshuaGarrett Joshua Garrett

    My permalink structure makes the URL the same when it is a page and when it is a post.  However, I get a 404 not found after converting a page to a post with your plugin.

  • http://jasonlau.biz Jason Lau

    When you convert an item, you are given a new link, did you try that one?

  • http://www.facebook.com/TheJoshuaGarrett Joshua Garrett

    I can’t really think of any other reasons…. Thanks anyway…

  • http://jasonlau.biz Jason Lau

    What is your permalink structure? I’ll see if I can reproduce the issue. 

  • http://www.facebook.com/TheJoshuaGarrett Joshua Garrett

    custom structure: /%postname%/

  • http://www.facebook.com/TheJoshuaGarrett Joshua Garrett

    Were you able to reproduce the issue?  Thanks.

  • http://jasonlau.biz Jason Lau

    Yes I was, but I haven’t had time to make any changes to the plugin.

    Basically, the issue boils down to the permalink settings. Having your permalink structure the same for both posts and pages is a problem for WordPress.

  • http://jasonlau.biz Jason Lau

    From WordPress codex, here is the best permalink structure for all practical purposes - /%postname%-%post_id%/

    Citing performance reasons, WordPress codex specifically says do not begin a permalink structure with /%postname%/ or /%category%/, but instead use a numeric field such as /%post_id%/, or the structure previously mentioned.

    This doesn’t mean I wont work on a fix for Vice Versa. Hopefully I will have time this weekend to look into it deeper. Apologies for the delay.

  • Erwin

    I got the following error on borh 2.1.5 and 2.1.6
    Error: $(“#viceversa-form input[type='checkbox']“).prop is not a functionAny idea?

  • http://jasonlau.biz Jason Lau

    You need to update jquery to the latest version. Older versions of jquery do not support the prop() method.

  • http://jasonlau.biz Jason Lau

    Hi,

    This issue has been resolved in version 2.1.7. Thank you for reporting this. The problem was the WordPress cache was not cleared after conversion.

    Sorry for the delay, but I have a lot of projects I’m juggling.

    J.

  • http://www.facebook.com/TheJoshuaGarrett Joshua Garrett

    Thank you Jason! I wasn’t sure if I should even expect a response, let alone a fix. You are great! 

    And you are right… I should probably be using /%category%/%postname%/ for my structure.

  • David

    Is it possible to convert a large number of posts to pages at 1 time? If so, how do I do that?
    David

  • http://jasonlau.biz Jason Lau

    David,

    Yes, you can convert multiple items.

    From the list of Posts or Pages, see the checkboxes located on the left-hand side of the table? The checkboxes are used to select a Post or Page from the list.

    Convert any number of Posts or Pages by checking the checkbox for each item you wish to convert, select “Convert” from the “Bulk Actions” menu, then press the “Apply” button.

    Use the Bulk Parent or Bulk Category selectors to assign multiple items a parent or categories.

    Good luck! :)

  • www.soulcand.se

    this plugin has completely broken my site for me :( I know have pages that I cannot se in the admin interface, and delete, but the semi exist in menus and in the iphone app. I dont now how to fix this problem. :(

  • http://jasonlau.biz Jason Lau

    Hi,

    After a Post or Page is converted, it will then be displayed in the opposite section. For example, if you converted a Post to a Page, you would have to look in the Pages section to find it once it has been converted.

    Depending on your permalink settings, any custom menus may have to be edited once your conversions are complete.

    If this information isn’t helpful, please let me know. I can help, but I will need more information from you regarding your website. Additionally, I may need database and/or dashboard access. As always, your information is secure.

    Vice-Versa does not delete any data from the database, so your Posts or Pages are not completely lost.

    Jason

  • Renman2735

    Dear Jason

    I am working on a blog and trying to convert some pages to posts using Viceversa.

    On the Viceversa mainpage, I select “Pages to posts”. There is a maximum of 10per page. At the bottom, it reflects “14 items”. I know this is true because the last four items just happen to be the ones I want to converet to posts :-)

    So I click on the next arrow (next to “page 1 of 2″) , and it shows up blank.
    I try to change maximum items to show from “10″ to “14″, and it reverts to “10″

    Any ideas? Frustratingly, those last four are the only ones I want changed lol.

    Thanks!

    RM

  • James

    Hi Jason, I have a problem with the vice-versa plugin and I cannot find a way to fix it.
    Every post that I converted to a page is now seen by Google as duplicate content.  
    The Post ID has been added to the end of the page name.
    Example.  www.mydomain.com/pagename/postid/
    instead of what it should be http://www.mydomain.com/pagename/
    Is there anyway you know of to fix this, or has anyone else had the same problem?

    It’s a fantastic plugin, unfortunately I must have done something to mess it up.

  • http://jasonlau.biz Jason Lau

    Are you using the latest version of Vice Versa? What version of WordPress?

  • http://jasonlau.biz Jason Lau

    Hi James, I am sorry that you are having trouble with the Vice Versa plugin. What is your Permalink structure? Have you checked to see if both pages really exist? Do you have a caching plugin enabled?

  • James

    Permalink structure is /%postname%/
    Yes caching plugin is enabled, it’s called WP Super Cache

  • http://jasonlau.biz Jason Lau

    The original page or post is probably cached by your plugin. If there is a way to purge the cache, I recommend it.