Forums

str_replace for the_content() (2 posts)

  1. jermartin77
    Member
    Posted 2 years ago #

    Hi I would like to do a replace on the_content to add a parameter to youtube posts of wmode = transparent so it doesn't confict with some drop down menus.

    Obviously this doesn't work because the_content echos the value, but this is what I would like to accomplish.

    $content = the_content('Continue Reading »');
    $embedText = '<param name="wmode" value="transparent" /><embed wmode="transparent"';
    $content = str_replace('<embed ', $embedText, $content);
    echo $content;

    Thanks for any help
    j

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic