fixing the panel selection
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 10 May 2018 18:04:45 +0000 (14:04 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 10 May 2018 18:04:45 +0000 (14:04 -0400)
inc/accesspress-options.php
index-parallax.php

index 0d79ea6..d21a172 100644 (file)
@@ -81,7 +81,7 @@ function optionsframework_options() {
     $query = new WP_Query($args);
        // Pull all the pages into an array
        $options_pages = array();
-       $options_pages_obj = $query;
+       $options_pages_obj = $query->posts;
        $options_pages[''] = 'Select a page:';
        foreach ($options_pages_obj as $page) {
                $options_pages[$page->ID] = $page->post_title;
index 3f627e8..2d0116f 100644 (file)
@@ -37,7 +37,6 @@
                        <?php  
                    $args = array(
                     'post_type'         => 'glm-panel',
-                    'cat'               => 'panel',
                     'posts_per_page'    => -1
                     );
                 $count_service = 0;