Exemplo n.º 1
0
 /**
  * retrieves the terms in a taxonomy or list of taxonomies.
  */
 function atp_variable($type)
 {
     $iva_of_options = parent::atp_variable($type);
     switch ($type) {
         /**
          * get posts id and name  
          */
         case 'offers':
             // Get offers Name/Id
             $args = array('posts_per_page' => -1, 'offset' => 0, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'offers', 'post_status' => 'publish', 'suppress_filters' => true);
             $atp_entries = get_posts($args);
             foreach ($atp_entries as $key => $entry) {
                 $iva_of_options[$entry->ID] = $entry->post_title;
             }
             break;
     }
     return $iva_of_options;
 }
Exemplo n.º 2
0
 function atp_custom_meta()
 {
     parent::atp_custom_meta();
     require_once MUSIC_DIR . 'events/events-meta.php';
     require_once MUSIC_DIR . 'artists/artist-meta.php';
     require_once MUSIC_DIR . 'albums/allbum-meta.php';
     require_once MUSIC_DIR . 'video/video-meta.php';
     require_once MUSIC_DIR . 'gallery/gallery-meta.php';
     require_once MUSIC_DIR . 'djmix/djmix-meta.php';
 }