Tag Info

Hot answers tagged

2

Try removing (image), like this: <?php $content = get_the_content(); $content = preg_replace("/<img[^>]+\>/i", " ", $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?>


1

As Joshua suggested in his comment, your code isn't escaped properly. Just before "See Original Article" (in both snippets) you have target='_blank' on your links with single quotes. Replace that with double quotes target="_blank"


1

You can try: 'date_query' => array( array( 'year' => date( 'Y' ), 'week' => strftime( '%U' ), ), ), where %U is: Week number of the given year, starting with the first Sunday as the first week or 'date_query' => array( array( 'after' => strtotime( 'last Sunday' ), ), ),



Only top voted, non community-wiki answers of a minimum length are eligible