Thread Starter
six73
(@six73)
I entered the code in the template index.php in different positions but I always get this error
Parse error: syntax error, unexpected T_IF in /web/htdocs/www.site.com/home/wp-content/themes/hueman/index.php on line 20
I post the code is this
<? php if (function_exists (‘the_ratings’)) {the_ratings ();? }?>
I would show the rating in all items
Thanks for your support
<?php if (function_exists ('the_ratings')) { the_ratings(); } ?>
There is an additional ? in your code.
Thread Starter
six73
(@six73)
thanks lester.. now work
I have this result
http://it.tinypic.com/r/27yptoh/8
I would like to ask you if I can help further
I would like to add these two elements on a single line.
Do you know how to do?
the code of my single.php is
<h1 class=”post-title”><?php the_title(); ?></h1>
<div class=”post-byline”><?php _e(‘by’,’hueman’); ?> <?php the_author_posts_link(); ?> · <?php the_time(get_option(‘date_format’)); ?>
<?php if (function_exists (‘the_ratings’)) { the_ratings(); } ?></div>
thank you very much