[resolved] WP Mobile Plugin & get_the_content (3 posts)

  1. Boris
    Posted 7 years ago #


    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!

  2. Boris
    Posted 7 years ago #


    apply_filters('the_content', get_the_content());

  3. chicblogclub.com
    Posted 6 years ago #

    some news for this problem ?

Topic Closed

This topic has been closed to new replies.

About this Topic