Customize API - Populating dropdown box with post by category (1 post)

  1. ecsancho
    Posted 2 years ago #

    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 2x2 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!

Topic Closed

This topic has been closed to new replies.

About this Topic