Filter tag_id not working for subscriber users or not logged in, bug?
-
Hello.
Thanx for the useful plugin.I am viewing a strange behaviour that looks like a bug:
if I am NOT logged in wordpress and I try to GET wp-json with some filters as “tag_id”, I receive always the last published posts in my WP.
On the opposite, if I am logged in, the same call gets the correct posts in tag_id.Example:
try to call this url and check the server response:
http://www.rds.it/secondscreen/wp-json/posts/?filter%5Btag_id%5D=11&filter%5Bposts_per_page%5D=3&filter%5Borderby%5D=date&filter%5Border%5D=DESCThen try to log in:
http://www.rds.it/secondscreen/wp-login.php
user: test
pwd: test
This user is a contributor and calla again the given url:
http://www.rds.it/secondscreen/wp-json/posts/?filter%5Btag_id%5D=11&filter%5Bposts_per_page%5D=3&filter%5Borderby%5D=date&filter%5Border%5D=DESCYou will see a different response: the 3 real tagged posts!
Please help me, because this seems a serious problem!
Thank you,
Gianpaolo.
- The topic ‘Filter tag_id not working for subscriber users or not logged in, bug?’ is closed to new replies.