[Resolved] WP Mobile Plugin & get_the_content
I am using NextGen Gallery and the WP Mobile Plugin on the same site. The problem I have now is that WP Mobile Plugin is using get_the_content, but NextGen is using tags like [singlepic=1,200,200] to display images, galleries, … Now on a mobile browser (because of get_the_content I guess) only the tag is displayed and not the image. Is there any way to change that? here’s the code from WP Mobile Plugin:
$title = get_the_title(); $page_content = get_the_content(); $return .= '<div class="content">'; $return .= str_replace('target="_blank"','',nl2br($page_content));
I know that the images would be too big for a mobile browser! The next step would be to make sure that only thumbnails get served when it’s a mobile browser, but first things first…
Thanks for the help!
- The topic ‘[Resolved] WP Mobile Plugin & get_the_content’ is closed to new replies.