• Resolved ciceronepavaloi

    (@ciceronepavaloi)


    Hi.

    Is there a way to get a list of available (published) sliders? I need the titles and aliases to fill a dropdown option box (like ACF does with standard CPTs).
    I use the MotoPress Slider Lite version 2.1.0

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor motopress

    (@motopress)

    Hi @ciceronepavaloi,
    There is a selector of available slider in TinyMCE of post types indeed https://prntscr.com/k72fmq is this exactly what you were looking for?

    Thread Starter ciceronepavaloi

    (@ciceronepavaloi)

    Hi again.

    No, I meant from php, like if I need to integrate your plugin sliders in a theme dropdown option box. I understood that you do not use a custom post type to store the sliders and I did not find (in your plugin documentation) a specialised function to return the list of available sliders – which is what I was hoping for.

    So I ended up using $wpdb to fetch the data about the sliders from the database table where your plugin stores them.

    Is there a more elegant way?…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get a list of available sliders from php’ is closed to new replies.