I have two websites: hidden link and hidden link. I added a Toolset custom field on two.test, a checkbox associated with Posts.
On the homepage of one.test, I want to use the REST API to display all posts on two.test that have the checkbox ticked. I have written nearly all of the code to retrieve posts from two.test and display them on one.test. The only challenging part is retrieving only posts which have their checkbox ticked (the value of the checkbox custom field is "1" when ticked, "" when not ticked).
Can you assist me with this? Here's some of my code to give you a clearer picture: