Home › Forums › WTI Like Post PRO › Voting only works when logged in › Reply To: Voting only works when logged in
The voting gets registered by ajax call which is sent to https://coil.psu.edu/ielol/wp-admin/admin-ajax.php This is the process followed for ajax calls in wordpress. But when we access https://coil.psu.edu/ielol/wp-admin it shows screen to login first to gain access. Since this is restrcited, any non-logged in ajax call fails where as it allows in case logged in.
If you password protect your WordPress Admin directory, then it will break the ajax functionality in the front-end (if it is being used). Open the .htaccess file located in your /wp-admin/ folder using any text editor and paste the following code:
<Files admin-ajax.php> Order allow,deny Allow from all Satisfy any </Files>
Please let us know if this helped or not.