Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Designer_17

    (@designer_17)

    You can actually activate the tagging functionality for attachments in the following manner:

    add_action( ‘init’, ‘activate_tagging’ );
    function activate_tagging() {
    register_taxonomy_for_object_type( ‘post_tag’, ‘attachment’ );
    }

    I would highly suggest looking into adding this functionality (the ability to search tags from the “media pop-up”) to your plugin … would be a great help! If you ever do add this to your plugin please let me know.

    Thanks for your time & by His grace alone,
    Designer_17

    Thread Starter Designer_17

    (@designer_17)

    The code I pasted is from my site function.php file … it keeps the search function enabled for the backend though I’m limiting the frontend search to a specific post type.

    The “Media pop-up” that I’m referring to is the pop-up that appears after you click the “Add Media” button when creating a new post.

    Hope these where the answers you were looking for.
    Designer_17

    Thread Starter Designer_17

    (@designer_17)

    The code shared previously was actually pretty close to what I needed… all I needed to do was change one piece of it.

    Line 47. update_post_meta( $post_id, 'custom-uploadr.php', 'custom-uploadr.php' );

    change to… update_post_meta( $post_id, '_wp_page_template', 'custom-uploadr.php' );

    It’s that easy!!! 🙂

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