Support » Plugin: Cyclone Slider » List of gallery ids

Viewing 1 replies (of 1 total)
  • Hello!

    My brain had a bad day yesterday ^_^I found out by myself what i wanted, so i post it:

    $sql = "SELECT distinct post_name FROM {$wpdb->posts} WHERE ID IN (
    		SELECT distinct post_id FROM {$wpdb->postmeta} WHERE meta_key = '_cycloneslider_settings' ORDER BY post_id
    	$rows = $wpdb->get_results( $sql );
    	$opt = "<select id='tinymce-slider-id_select'>";
    	$opt .= "<option value='none'>-- Selecciona --</option>";
    	foreach ($rows as $r) {
    		$opt .= "<option value='{$r->post_name}'>{$r->post_name}</option>";
    	$opt .= "</select>";

    Just in case it helps someone 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘List of gallery ids’ is closed to new replies.