• Resolved ekko848

    (@ekko848)


    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 defined

    Only if I include code to get_header() and get_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.

    https://ww.wp.xz.cn/plugins/wp-postratings/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Using WP-PostRatings Outside WordPress’ is closed to new replies.