Home › Forums › Backend Issues (wp-admin) › DB query for field via URL › Reply To: DB query for field via URL
Hi @Agrajag
The better way is to create this data dynamically. Are you manually editing this sidebar content each time a new movie comes out?
The smart approach would be to code a PHP driven widget that loops through the latest x amount of movies and then (using a radio button field on each movie), use the movie’s rating to render out the amount of stars.
I would create a custom field on each movie to select 1,2,3,4 or 5 as a value.
Then you will need to re-code your sidebar to loop through the movies using a get_posts function.
Since you are new to to WP and PHP, I doubt you will be comfortable coding this yourself. I would recommend that you contact a freelance to write this code for you as the ACF plugin unfortunately requires you to have solid WP and PHP skills.
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.