Using WP-PostRatings Outside WordPress
-
I have a WordPress site and a mobile page. The mobile page is it’s own index.php file and design, and doesn’t call to WordPress at all.
I am attempting to insert the WP-PostRatings as my only WordPress element to this mobile page, but am having some difficulty.
Firstly I put the following code in my mobile index.php I am working in to load WordPress
<?php include('../wp-load.php'); ?>And then I insert WP-PostRatings based off shortcode.
I see the stars appear.. but they are broken / inactive and not reflecting any ratings or data.
I also get the following errors
current_rating is not defined
ratings_off is not definedOnly if I include code to
get_header()andget_footer()(I think maybe just the footer), they work.The issue is.. I don’t want my WordPress footer, or header on my mobile site. It’s supposed to stand on its own.
Any help on being able to insert WP-PostRatings without the WordPress footer (or header)? Thanks.
The topic ‘Using WP-PostRatings Outside WordPress’ is closed to new replies.