WordPress.org

Ready to get started?Download WordPress

Forums

Post Snippets
[resolved] Work with something other than pages or posts? (9 posts)

  1. graphical_force
    Member
    Posted 1 year ago #

    Hi, super useful plugin! It is working fine on pages and posts but I have a theme that has "Auctions" this acts as a post but I can't use the shortcode button like usual. I can see it but it does nothing when I click.

    Any suggestions on fixing this?

    Thanks in advance!

    http://wordpress.org/extend/plugins/post-snippets/

  2. Jamie Isfeld
    Member
    Posted 11 months ago #

    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.

  3. Johan Steen
    Member
    Plugin Author

    Posted 11 months ago #

    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

  4. Jamie Isfeld
    Member
    Posted 11 months ago #

    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.

  5. Johan Steen
    Member
    Plugin Author

    Posted 11 months ago #

    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?

  6. Jamie Isfeld
    Member
    Posted 11 months ago #

    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.

  7. Johan Steen
    Member
    Plugin Author

    Posted 11 months ago #

    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.

  8. Johan Steen
    Member
    Plugin Author

    Posted 11 months ago #

    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

  9. Jamie Isfeld
    Member
    Posted 11 months ago #

    Amazing. Great job!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.