WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ecsancho
    Member
    Posted 4 months 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!

Reply

You must log in to post.

About this Topic