From: Anthony Talarico Date: Thu, 17 May 2018 14:43:46 +0000 (-0400) Subject: fixing the parallax ajax function so that categories are carried over X-Git-Tag: v1.0.0^2~15 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=59bcbbd894c5df35b56ba8d361b2cfa7aa43d2bb;p=WP-Themes%2Flaurium.git fixing the parallax ajax function so that categories are carried over --- diff --git a/inc/ajax.php b/inc/ajax.php index 0525fa6..88cffe6 100644 --- a/inc/ajax.php +++ b/inc/ajax.php @@ -6,7 +6,10 @@ // Pull all the pages into an array $options_pages_obj = get_pages('sort_column=post_parent,menu_order'); - $options_categories_obj = get_categories(); + + $taxonomy = 'parallax_posts_category'; + $terms = get_terms($taxonomy); + $options_categories_obj = $terms; $countsettings = esc_attr( $_REQUEST['count_section'] ); $args = array( @@ -62,7 +65,7 @@ diff --git a/inc/blog.php b/inc/blog.php index 6d50f02..631d1d4 100644 --- a/inc/blog.php +++ b/inc/blog.php @@ -39,8 +39,8 @@ function panels_custom_post_type() { 'add_new_item' => __( 'Add New Panel Post' ), 'add_new' => __( 'Add New' ), 'new_item' => __( 'New Panel Post' ), - 'edit_item' => __( 'Edit Room' ), - 'update_item' => __( 'Update Room' ), + 'edit_item' => __( 'Edit Panel' ), + 'update_item' => __( 'Update Panel' ), 'view_item' => __( 'View Panel Post' ), 'search_items' => __( 'Search Panel Posts' ), 'not_found' => __( 'Not found' ),