Is there a way to provide Pattern for Autoblog Featured Image

Hi, I just installed Autoblog, and its an awesome plugin, But is there a way to provide to a pattern to be used in preg_replace function or something like that to replace the image url.

For example-- GSMARENA Rss feed has image url's as http://cdn.gsmarena.com/imgroot/news/15/11/lg-v10-camera-review/-118x112/gsmarena_002.jpg

so if we could provide an pattern or something to replace it with
http://cdn.gsmarena.com/imgroot/news/15/11/lg-v10-camera-review/-728x314/gsmarena_002.jpg

  • Sajid

    Hi @rktaiwala

    Hope you are doing good today :slight_smile:

    I don't think we have a add-on to remove content based on regular expression. However there is "Strip Images" that did not worked ?

    However, if you have preg_match regex code ready then you can filter the content on the time of displaying with following action hook.

    function my_the_content_filter($content) {
      // do your stuff here.
      return $content;
    }
    
    add_filter( 'the_content', 'my_the_content_filter' );

    Hope that helps :slight_smile: or feel free to post a reply if you need further assistance.

    Cheers, Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.