Designer_17
Forum Replies Created
-
Forum: Plugins
In reply to: [Search Everything] Issue with searching tags in "add media" popupYou 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_17Forum: Plugins
In reply to: [Search Everything] Issue with searching tags in "add media" popupThe code I pasted is from my site
function.phpfile … 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_17Forum: Plugins
In reply to: Creating a new page with custom template file attached from plugin – issueThe 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!!! 🙂