• Resolved shahab_88

    (@shahab_88)


    Hi, i realy like the plug in and everything is nice but one thing i want to know:
    is it possible to add a excerpt to a FAQ toggle since there is a permalink function.. so if i have much longer answers the users wont get bothered and see the whole answer with the images and videos inside the toggle.

    https://ww.wp.xz.cn/plugins/ultimate-faqs/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Rustaurius

    (@rustaurius)

    Thanks for posting answers in those other threads!

    That’s not possible at this time, but it’s an interesting feature suggestion. Currently, post excerpts are used as a preview; they’ll show for each FAQ while the question is closed.

    To do what you’re describing, you could delete the following line from the file “DisplayFAQS.php” in the “Shortcodes” folder:

    Line 231:

    if (strlen($faq->post_excerpt) > 0) {$ReturnString .= "<div class='ufaq-faq-excerpt' id='ufaq-excerpt-" . $faq->ID . "'>" . apply_filters('the_content', html_entity_decode($faq->post_excerpt)) . "</div>";}

    Then you would need to change this line:

    Line 246

    $ReturnString .= "<div class='ewd-ufaq-post-margin ufaq-faq-post' id='ufaq-post-" . $faq->ID . "'>" . apply_filters('the_content', html_entity_decode($faq->post_content)) . "</div>";

    to

    $ReturnString .= "<div class='ewd-ufaq-post-margin ufaq-faq-post' id='ufaq-post-" . $faq->ID . "'>" . apply_filters('the_content', html_entity_decode($faq->post_excerpt)) . "</div>";

    If you make that change though, you would need to change it each time you upgrade the plugin, as plugin files are replaced in the WordPress upgrade process.

    Thread Starter shahab_88

    (@shahab_88)

    Thank you for the answer,
    the thing is i am interested in buying the plugin and i hope this can be added also as a mini feature and it wont take much time to develope it, anyways thanx again for the answer.

    Best Regards
    Edin

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

The topic ‘Excerpt’ is closed to new replies.