• Resolved netzgestaltung

    (@netzgestaltung)


    Hi there,

    i used to integrate your plugins shortcode function in my theme with

    // add own rating avg function for better displaying
    function myTheme_avg_rating($atts) {
      echo var_dump(function_exists('wpcr_avg_rating'));
      // bool (false)
      if ( !function_exists('wpcr_avg_rating') ) {
        return '';
      }

    now you added it to the WP_Post_Comment_Rating_Public Object – how do i access it in my theme?

    Br,
    tom

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter netzgestaltung

    (@netzgestaltung)

    i now found that this was only the “plugin exists” question, the rest of the code only uses database entries that seem to not have changed (good).

    i changed the occurances in my code:

    before
    function_exists('wpcr_avg_rating')

    after
    class_exists('WP_Post_Comment_Rating')

    and now it looks working again.
    I will test it now with new ratings and orderby rating

    Plugin Author shoaib88

    (@shoaib88)

    Hello netzgestaltung,
    You are such a great person. Always found solution and help me alot.

    If you found solution and works fine, than please mark this issue as solved.

    Thanks

    Plugin Author shoaib88

    (@shoaib88)

    I am glad you found your solution
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reintegrate Plugin’ is closed to new replies.