WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [request] auto gallery feature

[Resolved] [request] auto gallery feature

  • 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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wayne Allen
    Participant

    @wayneallen-1

    I will look into this.

    Plugin Author Wayne Allen
    Participant

    @wayneallen-1

    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;
    }

    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.

    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.

    Plugin Author Wayne Allen
    Participant

    @wayneallen-1

    Glad I could help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [request] auto gallery feature’ is closed to new replies.