Title: [Plugin: Question and Answer Forum] older posts&#8230;
Last modified: August 20, 2016

---

# [Plugin: Question and Answer Forum] older posts…

 *  [nikosgr](https://wordpress.org/support/users/nikosgr/)
 * (@nikosgr)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-older-posts/)
 * Hi
    i have a question and answer page and i installed the plugin but it is not
   showing the previous questions (which are stored as posts)
 * any ideas?
    thanks in advance!
 * [http://wordpress.org/extend/plugins/question-and-answer-forum/](http://wordpress.org/extend/plugins/question-and-answer-forum/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [trevorpythag](https://wordpress.org/support/users/trevorpythag/)
 * (@trevorpythag)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-older-posts/#post-2409558)
 * do you mean the previous questions aren’t showing up in the plugin or in the 
   whole website?
 * To make them show up in the plugin you will need to change their post type to
   question. They should still show up on your website though.
 *  Thread Starter [nikosgr](https://wordpress.org/support/users/nikosgr/)
 * (@nikosgr)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-older-posts/#post-2409560)
 * hi!
    they are not showing in the plugin. How can i change their post type to 
   question?
 *  Plugin Author [trevorpythag](https://wordpress.org/support/users/trevorpythag/)
 * (@trevorpythag)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-older-posts/#post-2409684)
 * The post type is just a field in the posts table of the wordpress database. If
   all your “posts” are actually “questions” you could use a script to change them
   all. I could write you one.
 * Otherwise you’ll have to manually go through the database to change them. To 
   do this you you will some sort of program to allow you to edit your database 
   directly. If you have webhosting then it is likely that the your host provides
   a program like phpMyAdmin. If you are working on a local development site you
   can use the my sql command line or something similar.
 * Hope this helps.
 *  Thread Starter [nikosgr](https://wordpress.org/support/users/nikosgr/)
 * (@nikosgr)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-older-posts/#post-2409686)
 * if you can write a script, it will be fine. otherwise i will do it manualy through
   phpmyadmin!
 * thanks again for your answer 🙂
 *  Plugin Author [trevorpythag](https://wordpress.org/support/users/trevorpythag/)
 * (@trevorpythag)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-older-posts/#post-2409787)
 * Something like the following should do. I haven’t tested it though so there might
   be a bug or two.
 *     ```
       <?php
       include "wp-config.php";
       global $wpdb;
       $result = $wpdb->update("$wpdb->posts",							//table to update
       							array('post-type'=>'question'),			//change post type to question
       							array('post-type'=>'post')				//update all 'posts'
       							);
       if(!$result){
       	echo " there was an error";
       }
       else{
       	echo "$result posts were changed to questions";
       }
   
       ?>
       ```
   
 * sorry about the delay
 *  Plugin Author [trevorpythag](https://wordpress.org/support/users/trevorpythag/)
 * (@trevorpythag)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-older-posts/#post-2409788)
 * PS you will need to place the code in a file with the .php extension in the root
   of your wordpress installation (the folder with wp-config.php in it).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: Question and Answer Forum] older posts…’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/question-and-answer-forum.svg)
 * [Question and Answer Forum](https://wordpress.org/plugins/question-and-answer-forum/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/question-and-answer-forum/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/question-and-answer-forum/)
 * [Active Topics](https://wordpress.org/support/plugin/question-and-answer-forum/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/question-and-answer-forum/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/question-and-answer-forum/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [trevorpythag](https://wordpress.org/support/users/trevorpythag/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-question-and-answer-forum-older-posts/#post-2409788)
 * Status: not resolved