WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
Work with post thumbnail editor (2 posts)

  1. matt.chugg
    Member
    Posted 8 months ago #

    Would you be open to updating your plugin to work with post thumbnail editor.

    If you aren't familiar with it, its a very useful plugin allowing the user to choose the crop on a featured image or other defined thumbnail size (http://wordpress.org/plugins/post-thumbnail-editor/). (please note, this is not my plugin)

    http://wordpress.org/plugins/multiple-post-thumbnails/

    In terms of integration, it adds a link below the "remove featured image" link in the featured image meta, however if using your plugin to create a secondary featured image that link isn't there.

    I had a look at the code for your plugin and think its a simple fix, which his working for me at the moment. I added the following line after line 1193 in class-attachments.php

    <div><?php if(is_plugin_active("post-thumbnail-editor/post-thumbnail-editor.php")) { echo("<a href=\"" . get_admin_url(get_current_blog_id(),"upload.php?page=pte-edit&pte-id={$attachment->id}") . "\" target=\"_blank\">Post Thumbnail Editor</a>");} ?></div>

    http://wordpress.org/plugins/attachments/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 7 months ago #

    I think the best thing to do here would be to add a hook to facilitate this, I'll make a note to review the linked plugin soon and include a proper hook in the next release.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.