WordPress.org

Ready to get started?Download WordPress

Forums

Postie
[resolved] [request] auto gallery feature (6 posts)

  1. eveslage
    Member
    Posted 1 year ago #

    Hello,

    could you please make the auto gallery customization a central option in the settings of postie. regarding this post i change the postie-functions.php file every time. and since you are updating an fixing a lot these days, this mean i have edit this file every few days. it would be a big improvement if you make this string: [gallery] an option, so i can make my setting [gallery link="file" columns="1" size="medium"] a persistent change to your plugin.

    Thanks in advance. I really like your plugin. Great work.

    Ingmar

    http://wordpress.org/extend/plugins/postie/

  2. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    I will look into this.

  3. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    FYI Postie has a filter "postie_post" that gets called just before the post is saved.

    You could create your own filter that replaces the standard gallery shortcode with yours using something like.

    add_filter('postie_post', 'my_postie_gallery_filter', 10, 1);
    
    function my_postie_gallery_filter($details){
        $details['post_content'] = str_replace('[gallery]', '[gallery link="file" columns="1" size="medium"]', $details['post_content']);
        return $details;
    }
  4. eveslage
    Member
    Posted 1 year ago #

    thanks for the hint. but this isn't a persistent change, too. so i again have to change this file every time postie gets updated.

    Please add the gallery options to the postie settings. this would help a lot.

  5. eveslage
    Member
    Posted 1 year ago #

    i'm sorry, i didn't fully understood your post before. the hint with the filter is great. i took your code and some older how-to to create a filter plugin. and now everything is fine. the filter feature is great. i didn't realized this before.

    Thanks again.

  6. Wayne Allen
    Member
    Plugin Author

    Posted 1 year ago #

    Glad I could help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.