• jmoriart

    (@jmoriart)


    Hi – great plugin. Simple and one of the only ones I could find that allow for rating authors.

    I had everything working quite well a few months ago. I’d made some changes to customize the plugin, but nothing huge.

    Now the plugin seems unable to get_author and it’s not writing to the database table. I can leave a review but the title of the pop-up is “Leave a revew for .” – so it’s apparently not getting the author correctly.

    And then once you submit that review, it isn’t saved to the database.

    I tried installing a fresh installation of your plugin (without my edits) and I’m having the same problems. Is it a capatability issue with WP 4.4.2? I’ve also tried deactivating other plugins.

    Thanks for any help you can give.
    -John

    https://www.ads-software.com/plugins/rate-this-author/

Viewing 1 replies (of 1 total)
  • Thread Starter jmoriart

    (@jmoriart)

    Just learned that the hidden author id field was successfully getting the author id with:
    <input type="hidden" id="author_id" name="author_id" value="<?php echo get_user_by( 'slug', get_query_var( 'author_name' ) )->ID;?>" />

    So I can now use get_user_by to output the correct author name. However, it still doesn’t save this information to the database. Seems like the rtauth_submit_author_rating function is the issue. Any ideas?

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to get author and write to DB table’ is closed to new replies.