• alibabaei

    (@alimotorolla)


    hi
    good job man. but i have a problem.
    i have made single.php as ajax.
    then i have a page (single-ajax.php) which should produce post content and vice-versa.
    everything is ok, even comment_template is corrected, but the Rating-Widget not working.
    it produces only:
    ——
    <div class=”rw-right”>
    <div class=”rw-ui-container rw-class-blog-post rw-urid-50700″></div>
    </div>
    ——
    i tried rw_the_post_rating($post->ID) and rw_get_post_rating($post->ID) but no result. as well as tried do_shortcode().
    be sure that i did my query_post correctly because i m a wp expert!;)
    could you please give me an advice?
    thanks in advannce.
    http://ww.wp.xz.cn/extend/plugins/rating-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter alibabaei

    (@alimotorolla)

    hi back to me:D
    the problem solved

    since i:

    1- moved the_content() function to single-ajax.php
    *** wp_footer hook of wp was unable to load Rating-Widget JS loader because it was seeking ‘the_content’ hook to load Rating-Widget JS loader.

    then i decide to:

    2- put do_action(‘the_content’) before get_footer()
    *** but the problem not solved because JS loader was executed before incoming html tag

    then i decide to:

    3- put get_footer() in single-ajax.php
    *** the problem solved
    but i have a new problem, which is, loading huge content of footer and several <script> tags in it, through ajax, which is heavy on heavy:D

    am i under ocean??? because no one answered me yet:D

    thanks in advance for any new suggestion.

    Plugin Author Vova Feldman

    (@svovaf)

    Please share a link to an example page so I can see exactly what you are talking about.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘hi’ is closed to new replies.