Rich Snippets
URL to the page in question:
http://
-
Hi,
Can I somehow use the google SERP rating stars on my wp frontpage? Since I can’t post any images or html code on the front page if it consists of the latest posts, I can’t use the WP-PostRatings-plugin on the frontpage.
thanks,
Good question. That plugin does have a template tag you can use to display the ratings where you’d like to have them. Here’s how to add it:
- Go to the Appearance section in your WordPress control panel and select Edit.
- From the list of files on your right, choose index.php.
- Everywhere you see this line:
<?php the_excerpt(); ?>
add this below that:
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
- Save your changes.
That should add in the ratings to your front page posts. If you have any trouble, let me know.
Thanks,
Bill
Anytime. Have a great day!
- The topic ‘Rich Snippets’ is closed to new replies.