diff --git a/blocks/card_post_id.php b/blocks/card_post_id.php new file mode 100644 index 0000000..8eb9609 --- /dev/null +++ b/blocks/card_post_id.php @@ -0,0 +1,31 @@ + + + +
+ ID) ) :?> +
+ <?=$curr_post->post_title;?> + + + + +
+ +

post_title?>

+
+
+ + ID);?> + + + +
+
+
+ + \ No newline at end of file diff --git a/functions.php b/functions.php index 001fdca..ae77ad4 100644 --- a/functions.php +++ b/functions.php @@ -17,6 +17,7 @@ require get_template_directory().'/src/calend-block.php'; require get_template_directory().'/src/calendar.php'; require get_template_directory().'/src/perevod.php'; require get_template_directory().'/lang.php'; +require get_template_directory().'/blocks/card_post_id.php'; //require ABSPATH.'vendor/masterforweb/db_lite/db_lite.php'; diff --git a/index.php b/index.php index 40a8cf7..890a708 100644 --- a/index.php +++ b/index.php @@ -38,20 +38,8 @@ $nn = 0;?> - -
- -
- - «Ветеринария и жизнь» объявляет о новом фотоконкурсе «Современное животноводство и ветеринария» - -
-

«Ветеринария и жизнь» проводит новый фотоконкурс «Современное животноводство и ветеринария»

-
-
до 31 марта 2022 года
-
-
+