I have tried adding php code into both the Raw HTML and Text elements, to no avail. I’m taking code directly from WordPress’s codex, that I know to work in other cases, and using pastie.com to make sure the code is formatted cleanly.
The output invariably comes out like the screenshot I’ve attached.
Here is the code:
<h3 class="spb-heading">Press</h3>
<ul>
<?php
$args = array( 'numberposts' => '5' );
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ){
echo '<li><a href="' . get_permalink($recent["ID"]) . '" title="Look '.esc_attr($recent["post_title"]).'" >' . $recent["post_title"].'</a> </li> ';
}
?>
</ul>
Thanks,
Greg