Help with a bit of Mobile WordPress code
-
Hi there,
I’m using a tutorial to build a wordpress mobile site. I’m having difficulty getting a piece of code to operate, but I reckon it’s more to do with my PHP skills.
Anyone want to take a look and suggest a fix?
<div data-role=”content”>
<ul data-role=”listview”>
<?php get_archives(‘postbypost’, ’10’, ‘custom’, ‘<li class=”posts”>’, ‘<img src=”<?php the_post_thumbnail(); ?>”>’, ”); ?>
<span class=”ui-li-count”> <?php comments_number(0, 1, ‘%’); ?> </span></div>
<img src=”<?php the_post_thumbnail(); ?>”> isn’t working as it should. Instead it’s directing me to:
http://domain.co.uk/%3C?php%20the_post_thumbnail();%20?%3E
Any ideas?
The topic ‘Help with a bit of Mobile WordPress code’ is closed to new replies.