Content tags stopped working
-
Hi there,
Any idea why content tags stopped working after the latest update?
Here’s what we’re using inside a function:
<?php $post_html = '<h3><a class=\'weekly-popular-list\' title=\'{text_title}\' href=\'{url}\'>{text_title}</a></h3>{thumb}{summary} <a href=\'{url}\'>More ?</a>'; ob_start(); wpp_get_mostpopular('range=last7days&freshness=1&limit=20&post_html="'.$post_html.'"&excerpt_length=80&excerpt_by_words=1&thumbnail_width=900&thumbnail_height=517'); $output = ob_get_clean(); $output = str_replace( 'class="wpp-thumbnail wpp_cached_thumb wpp_featured', 'class="alignleft post-image entry-image', $output ); $output = $title_html . $url_html . $intro_html . "\n" . $output; echo '<pre id="selectable" style="border: 1px solid #eee; padding: 1em; overflow: auto;">' . htmlspecialchars( $output, ENT_NOQUOTES ) . '</pre>';
Instead of rendering the posts it displays the content tags inside HTML.
Best,
Thomas
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Content tags stopped working’ is closed to new replies.