This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Aug 7th, 2013  |  syntax: PHP  |  size: 0.12 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (is_mobile()){
  2.         echo preg_replace("/\< *[img][^\>]*[.]*\>/i","",get_the_content(),1);
  3. }else{
  4.         the_content();
  5. }
clone this paste RAW Paste Data