80d5cd03 by Jeff Balicki

ddd

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent fa441e11
...@@ -28,7 +28,7 @@ if( !empty($block['align']) ) { ...@@ -28,7 +28,7 @@ if( !empty($block['align']) ) {
28 if( $is_preview ) { 28 if( $is_preview ) {
29 $className .= ' is-admin'; 29 $className .= ' is-admin';
30 } 30 }
31 $categoryID = get_field( "categories" ); 31 $category_slug = get_field( "category" );
32 $title = get_field( "title" ); 32 $title = get_field( "title" );
33 33
34 ?> 34 ?>
...@@ -40,13 +40,13 @@ $title = get_field( "title" ); ...@@ -40,13 +40,13 @@ $title = get_field( "title" );
40 'tax_query' => array( 40 'tax_query' => array(
41 array( 41 array(
42 'taxonomy' => 'categories', 42 'taxonomy' => 'categories',
43 'terms' => $categoryID, // term id 43 'terms' => $category_slug, // term id
44 'field' => 'term_id', 44 'field' => 'slug',
45 ) 45 )
46 ) 46 )
47 47
48 ); 48 );
49 if($categoryID == ""){ 49 if($category_slug == ""){
50 $args = array( 50 $args = array(
51 'post_type' => 'attachment', 51 'post_type' => 'attachment',
52 'posts_per_page' => -1, 52 'posts_per_page' => -1,
...@@ -61,12 +61,12 @@ $args = array( ...@@ -61,12 +61,12 @@ $args = array(
61 'tax_query' => array( 61 'tax_query' => array(
62 array( 62 array(
63 'taxonomy' => 'categories', 63 'taxonomy' => 'categories',
64 'terms' => $categoryID, // term id 64 'terms' => $category_slug, // term id
65 'field' => 'term_id', 65 'field' => 'slug',
66 ) 66 )
67 ) 67 )
68 ); 68 );
69 if($categoryID == ""){ 69 if($category_slug == ""){
70 $args = array( 70 $args = array(
71 'post_type' => 'documents', 71 'post_type' => 'documents',
72 'posts_per_page' => -1, 72 'posts_per_page' => -1,
......