WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Post Snippets] Work with something other than pages or posts?

[Resolved] [Plugin: Post Snippets] Work with something other than pages or posts?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Jamie Isfeld
    Member

    @jamieisfeld

    I’m having the same issue. I’d like to use this in conjunction with a custom post type, but when the button is clicked on, the dialog doesn’t appear.
    It works just fine in Pages and Posts, so I doubt it’s a plugin conflict issue.

    Plugin Author Johan Steen
    Member

    @artstorm

    Hi,

    Thanks for the report.
    I did just test it with custom post types, and it do work as expected in my tests.
    How do you create the custom post type?

    Cheers,
    Johan

    Jamie Isfeld
    Member

    @jamieisfeld

    Thanks for the quick response, Johan!
    The custom post type is created by an additional plugin (I’m currently trying to use it together with e-Newsletter). It uses the same TinyMCE editor as every other post type, and the button appears with no problem, but the button’s behaviour just doesn’t function when clicked.
    I’m beginning to guess that the conflict is on e-Newsletter’s end, but if you have any other input, I’d really appreciate it.

    Plugin Author Johan Steen
    Member

    @artstorm

    The plugin checks so it’s on a post/page edit screen before outputting the code for the popup window, to not clutter where it’s not needed.

    When checking the screentype, I do check so it’s for editing a post. Also when setting up CPT, that is the base screen type being registered. Maybe the CPT plugin you are using are naming it something else? Which plugin would that be?

    Jamie Isfeld
    Member

    @jamieisfeld

    I’ve investigated a little further, and it appears that the newsletters in e-Newsletter aren’t a custom post type at all, which means I’m out of luck for using it. Trying out Wysija next so I can make sure to keep using Post Snippets.
    Thanks for your help, Johan! This really is a fantastic plugin.

    Plugin Author Johan Steen
    Member

    @artstorm

    Actually,

    The reason I only print out the code on the post/page/cpt pages are an optimization decision. That was implemented a long time ago. Since then WP has introduced the wp_editor() function to allow plugins to use the wp_editor wherever they want. So maybe I should remove that constraint instead, let me look into that.

    Plugin Author Johan Steen
    Member

    @artstorm

    I just released v2.2.2 that should take care of this, and have the plugin working wherever there is a wp_editor() inserted. Enjoy.

    Cheers,
    Johan

    Jamie Isfeld
    Member

    @jamieisfeld

    Amazing. Great job!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] [Plugin: Post Snippets] Work with something other than pages or posts?’ is closed to new replies.