This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Attachment Categories

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #53494
    joshjosh
    Participant

    Hello, ive enabled Categories for attachments with the following snippet:

    // Enable categories for attachments
    function add_categories_to_attachments() {
    register_taxonomy_for_object_type(‘category’, ‘attachment’);
    }
    add_action(‘init’, ‘add_categories_to_attachments’);

    On the AJAX Search Pro search module settings, my attachments category appears as a post – category (Categories)[see my screenshot]. Ive enabled it on the right but it wont show up as a radio button on the front-end. Do you have any insight on how I might be able to use Attachment categories as radio buttons for PDF attachments? Thank you.

    • This topic was modified 1 year, 2 months ago by joshjosh.
    #53499
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Sure!

    First make sure the settings are visible, check these options: https://i.imgur.com/h74aENf.png
    Then set the appearance as radio buttons: https://i.imgur.com/IHmm2Zk.png

    These should do the trick!

    #53514
    joshjosh
    Participant

    Thank you!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.