This plugin adds advanced question and blog post management features to Question2Answer (Q2A).
Admins can Copy, Merge, or Only Redirect questions and blog posts — including across networked Q2A sites.
Important: This plugin requires a minor modification in Q2A core to allow overriding of the qa_page_q_close_q_submit()
function. (Instructions below)
- Copy this plugin folder into your Q2A
/qa-plugin/
directory. - Modify the core file
qa-include/pages/question-post.php
:- Locate the function:
function qa_page_q_close_q_submit($question, $closepost, &$in, &$errors)
- Add this line as the first line inside the function:
if (qa_to_override(__FUNCTION__)) { $args = func_get_args(); return qa_call_override(__FUNCTION__, $args); }
- Locate the function:
- In the Q2A Admin Panel → Plugins, enable Q2A Merge.
- Copy/Merge/Only Redirect dialog appears automatically when:
- A question is marked as duplicate, OR
- The "closed note" contains a network site URL.
- Copies all child posts (answers, comments) from one question into another question.
- The original question remains intact.
- Moves all child posts into the target post.
- Deletes the original question post after merging.
- Creates a redirect from the old post to the new one.
- Update Favorites Table.
- Deletes the original post (including all child posts).
- Creates a redirect link from the old post to the new one.
- Update Favorites Table.
- Works across multiple Q2A sites in a network setup.
- Moves/merges/redirects posts even if the target post is on another site.
- Redirect information is stored in
postmeta
with the targetsite_prefix
for accurate cross-site linking.
This plugin original version is developed by NoahY and available at https://github.com/NoahY/q2a-post-merge