WordPress.org

Ready to get started?Download WordPress

Forums

WP Super FAQ
[resolved] Collapsing Categories (8 posts)

  1. rexhaugen
    Member
    Posted 2 years ago #

    Is it possible to setup the categories to be collapsible when using the [wp_super_faq show_categories=true] short-code? I tried to look into using the same code as is used for the questions, but it appears that the categories are not displayed in divs but are instead only a headline with the divs for the questions. Assistance would be appreciated.

    http://wordpress.org/extend/plugins/wp-super-faq/

  2. Ryan
    Member
    Plugin Author

    Posted 2 years ago #

    This should be doable with a little jQuery, let me take a look and I will try and get back to you as soon as possible.

  3. rexhaugen
    Member
    Posted 2 years ago #

    Hello Ryan, I have been working on other projects and I put our FAQ updates on the back burner. I am about to start tinkering to see what I can find but I was wondering if you have found a way to implement it?

  4. rexhaugen
    Member
    Posted 2 years ago #

    Resolved by using jQuery Collapse-O-Matic along with WP Super FAQ.

    Example post or page content below:

    [expand title="Category 1"][wp_super_faq show_specific_category=1][/expand]
    [expand title="Category 2"][wp_super_faq show_specific_category=2][/expand]
  5. Ryan
    Member
    Plugin Author

    Posted 2 years ago #

    Nice! Sorry, I still hadn't got around to this. I like this solution. At some point I will probably add this to the core of wp_super_faq but in the meantime I will pass this info along to others who had the ame question.

  6. rexhaugen
    Member
    Posted 2 years ago #

    One thing though is that in order to get the styles to match, one must remove the <span class='wp-super-faq-triangle'>▶</span> from wp_super_faq.php.

    In a future update, do you think you might update the plugin so that the triangle can be enabled/disabled or changed for an image in the plugin settings?

  7. Ryan
    Member
    Plugin Author

    Posted 2 years ago #

    rex,
    Yes, that feature is actually on my todo list. I would expect to see it in the next update. I am getting so much feedback on this thing I actually am designing a way to formally track feature requests and bugs. So updates may come a little slow (about a week or two).

  8. rexhaugen
    Member
    Posted 2 years ago #

    Awesome, I look forward to seeing it. This is a great plugin and I can't wait to set it get better. If you need any help, feel free to let me know. I'm new to PHP and JS but I am happy to help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic