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
josh.