• Currently, the plugin redirects an answer to the permalink for the parent question. That’s good, but it could be better.

    What would be nicer would be if it would redirect to that specific answer on the parent question. Otherwise, the user is forced to scroll down all the answers to try to find the right one.

    In other words, you need to create an id for the answer to which the browser would scroll when redirected to the question page.

    https://wordpress.org/plugins/dw-question-answer/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter KTS915

    (@kts915)

    OK, here’s the solution:

    In /inc/template.php change this line:

    wp_safe_redirect( get_permalink( $question_id ) );

    to this:

    wp_safe_redirect( get_permalink( $question_id ) . '#' . get_the_id() . '');

    In /templates/content-single-answer.php change this line:

    <div class="<?php echo dwqa_post_class() ?>">

    to this:

    <div id="<?php echo get_the_id() ?>" class="<?php echo dwqa_post_class() ?>">

    Thread Starter KTS915

    (@kts915)

    It would be good to see these changes included in the next update.

    Plugin Author DesignWall

    (@designwall)

    Hi,
    Thank you for interesting in our product and your feedback. We appreciate it.
    I sent and notified our technical team about this problem. We will check and discuss it.
    Any your suggestion will make our product become better and better.
    Regards,
    Dominic from DesignWall team.

    Hello KTS915, if it is inside loop for answers, you can use also
    echo $post->guid . '#' $post->ID .

    Plugin Author DesignWall

    (@designwall)

    Hi guys,

    Thanks for writing in. We’re gradually updating the DW Question & Answer, both the free and the pro version. It will be updated roughly every 4 to 5 days according to our developer.

    Please stay in touch with us so we can hear the latest feedback from you. You guys encourage us a lot. 😀

    Cheers.

    Plugin Author DesignWall

    (@designwall)

    Hey there,

    DW Question & Answer 1.4.4 has been released. Please keep updating and send us your precious feedback about it.

    Looking forward to hearing from you.

    Thread Starter KTS915

    (@kts915)

    Unfortunately, the update did not contain this fix.

    That’s what happens when you mark a thread resolved when it isn’t.

    Plugin Author DesignWall

    (@designwall)

    Hi,

    Thank you for contacting DesignWall! My name is Anna and I am happy to be of assistance in this matter.

    We’re so sorry that you have been encountered this problem. We’re going to fix this issue in the next version of DW Q&A.

    Apologies for the inconvenience. Let me know if there is anything else I can help you with.

    Warm Regards,
    Anna.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Suggested improvement: answer redirection’ is closed to new replies.