WordPress.org

Ready to get started?Download WordPress

Forums

Infographic Embedder
[resolved] Support for Custom Post Type (5 posts)

  1. WPSpeak
    Member
    Posted 1 year ago #

    Hi,

    I believe the plugin currently does not support custom post type. Also, once you've add the support for custom post type, it'd great if in the settings page we can choose which post type we want to enable the infographic embedder. Let say I've the normal post type, gallery post type and image post type, I'll be able to choose which post type the infographic embedder will be enabled (of course, in this case the embedder should only work for post and/or gallery post type(s)

    Thanks

    http://wordpress.org/extend/plugins/infographic-embedder/

  2. Cliff Seal
    Member
    Plugin Author

    Posted 1 year ago #

    I'm sorry I missed this post (and I've updated my notifications to make sure I don't in the future).

    I'll look into this and see what I can do! Shouldn't be difficult.

    Thanks for your feedback!

  3. Cliff Seal
    Member
    Plugin Author

    Posted 1 year ago #

    I wanted to follow up with a quick fix while I work on an update.

    You can make an edit to the infographic-embedder.php file to allow for another post type, such as pages. For you, on line 39, change the infographic_embedder_add_post_meta_boxes function to this: https://gist.github.com/logoscreative/5346795

    Here's the full file contents as well: https://gist.github.com/logoscreative/5346810

    You can change the string 'page' to your custom post type, and the meta box should show up. Just the same, you can delete the add_meta_box call for 'post' if you don't want it to show up on posts.

    Let me know if you have any questions, and I'll be happy to help!

  4. WPSpeak
    Member
    Posted 1 year ago #

    Tried it and work. Thanks!

    I'd great if you can add a filter to add support to custom post type. Just a suggestion :D

  5. Cliff Seal
    Member
    Plugin Author

    Posted 1 year ago #

    Definitely—rest assured it's in the works! Glad you're off and running for now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic