Support

Account

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