From 59bcbbd894c5df35b56ba8d361b2cfa7aa43d2bb Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 17 May 2018 10:43:46 -0400 Subject: [PATCH] fixing the parallax ajax function so that categories are carried over --- inc/ajax.php | 7 +++++-- inc/blog.php | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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' ), -- 2.17.1