Support » Fixing WordPress » Customize API – Populating dropdown box with post by category

  • Greetings I’m in a little bind here. I’m beginner at PHP and intermediate javascript

    I’m utilizing Customize API to create a section where the users can set feature post in the homepage in 2×2 grid. My idea of accomplishing this is create a dropdown menu populated with categories then onChange create another dropdown populated with post base on currently selected category.

    So I used wp_dropdown_categories() and works great but now my problem is now creating the 2nd dropwdown for the post by category and then saving that data to wp_DB or perhaps a javacript variable so I can utilize in the DOM creation of the homepage

    If anyone can please point in the right direction or give me few tips it would be much appreciated. Thanks!

  • The topic ‘Customize API – Populating dropdown box with post by category’ is closed to new replies.