diff --git a/src/functions.php b/src/functions.php index 860c6cb..304e3f5 100644 --- a/src/functions.php +++ b/src/functions.php @@ -79,9 +79,6 @@ if ( ! function_exists( 'tainacan_setup' ) ) { ' )); } - - add_image_size( 'tainacan-interface-list-post', 300, 200, true ); - add_image_size( 'tainacan-interface-item-attachments', 125, 125, true ); /** * Gutenberg support diff --git a/src/template-parts/list-post.php b/src/template-parts/list-post.php index 99118c5..f66172a 100644 --- a/src/template-parts/list-post.php +++ b/src/template-parts/list-post.php @@ -10,7 +10,7 @@
- 'img-fluid')); ?> + 'img-fluid')); ?>
diff --git a/src/template-parts/single-items-attachments_old.php b/src/template-parts/single-items-attachments_old.php index 89746d3..b99e6e4 100644 --- a/src/template-parts/single-items-attachments_old.php +++ b/src/template-parts/single-items-attachments_old.php @@ -73,9 +73,9 @@
-
+
ID, 'tainacan-interface-item-attachments', true ); + echo wp_get_attachment_image( $attachment->ID, 'tainacan-medium', true ); echo '
'; ?> ID ); ?> @@ -96,12 +96,12 @@ ?>