Forums

show images in content - edit functions.php (4 posts)

  1. nyckidd
    Member
    Posted 3 months ago #

    i have the following code in my functions.php, i would like to edit it so it does not remove the images and blockquotes from the content on the homepage...

    Here is the file..

    http://pastebin.com/Ya6SnsSH

  2. YouON
    Member
    Posted 3 months ago #

    Why don't you delete completely the function content?

  3. nyckidd
    Member
    Posted 3 months ago #

    well am setting the character limit using the function in that code they have stripped the images and i am not a php guru s i just wanna know how to edit the code and atleast show the first image in the post plus the limited content text

  4. YouON
    Member
    Posted 3 months ago #

    try to delete this two lines...

    $output = preg_replace('/<img[^>]+./','', $theContent);
    $output = preg_replace( '/<blockquote>.*<\/blockquote>/', '', $output );

Reply

You must log in to post.

About this Topic