function my_modules() {
return '
<div class="evaluated-projects">
<div class="container">
<div class="section-simple-title-wrap wow fadeInUp text-center " data-wow-delay="0.4s " style="visibility: hidden; animation-delay: 0.4s; animation-name: none; ">
<h3 class="simple-title no-link ">Оцененные проекты</h3>
</div>
<div class="evaluated-projects__content oneperframe frame wow fadeIn" data-wow-delay="0.4s " style="visibility: hidden; animation-delay: 0.4s; animation-name: none; " id="oneperframe">
<ul class="frame-list">
the_excerpt();
<li class="frame-list__item">
<div class="evaluated-projects__item">
<div class="evaluated-projects__img">
<img src="potolki_new_files/img/sly-slide-1.jpg" alt="image">
</div>
<div class="evaluated-projects__description">
<div class="evaluated-projects__title"> the_title(); </div>
<ul class="evaluated-projects__list">
<li>Полотно <span>3 600 ₽</span></li>
<li>Светильники с лампой под ключ <span>6 240 ₽</span></li>
<li>Углы <span>600 ₽</span></li>
<li>Установка люстры <span>1 000 ₽</span></li>
<li>Обвод трубы <span>300 ₽</span></li>
<li>Итого <span>12 040 ₽</span></li>
</ul>
<div class="buttons-block">
<a href="the_permalink();" class="btn button-orange">Подробнее</a>
<span class="button-review"><span>Прочитать отзыв</span></span>
</div>
</div>
<div class="review__item">
<div class="review__content">
<p>
echo get_post_meta(get_the_ID(), \"reviews\", true);
</p>
</div>
<div class="review__author">
<div class="review__author-img">
<img src="potolki_new_files/img/men.png" alt="people" />
</div>
<div class="review__author-name">Александр Петровский</div>
<div class="review__author-post">Генеральный директор компании Роснефть</div>
<div class="buttons-block">
<a href="" class="btn button-orange">Подробнее</a>
<span class="button-watch-project"><span>Смотреть проект</span></span>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<div class="scrollbar">
<div class="handle">
<div class="mousearea"></div>
</div>
</div>
</div>
</div>
';
}
add_shortcode('reviews', 'my_modules');
return '<div class="review__content">
<p>' . get_post_meta(get_the_ID(), "reviews", true) . '</p>
</div>';
echo get_post_meta(get_the_ID(), \"reviews\", true);
<?php
function my_modules() {
return '
<div class="evaluated-projects">
<div class="container">
<div class="section-simple-title-wrap wow fadeInUp text-center " data-wow-delay="0.4s " style="visibility: hidden; animation-delay: 0.4s; animation-name: none; ">
<h3 class="simple-title no-link ">Оцененные проекты</h3>
</div>
<div class="evaluated-projects__content oneperframe frame wow fadeIn" data-wow-delay="0.4s " style="visibility: hidden; animation-delay: 0.4s; animation-name: none; " id="oneperframe">
<ul class="frame-list">
' . the_excerpt() . '
<li class="frame-list__item">
<div class="evaluated-projects__item">
<div class="evaluated-projects__img">
<img src="potolki_new_files/img/sly-slide-1.jpg" alt="image">
</div>
<div class="evaluated-projects__description">
<div class="evaluated-projects__title"> ' . the_title() . ' </div>
<ul class="evaluated-projects__list">
<li>Полотно <span>3 600 ₽</span></li>
<li>Светильники с лампой под ключ <span>6 240 ₽</span></li>
<li>Углы <span>600 ₽</span></li>
<li>Установка люстры <span>1 000 ₽</span></li>
<li>Обвод трубы <span>300 ₽</span></li>
<li>Итого <span>12 040 ₽</span></li>
</ul>
<div class="buttons-block">
<a href="' . the_permalink() . '" class="btn button-orange">Подробнее</a>
<span class="button-review"><span>Прочитать отзыв</span></span>
</div>
</div>
<div class="review__item">
<div class="review__content">
<p>
' . get_post_meta(get_the_ID(), "reviews", true) . '
</p>
</div>
<div class="review__author">
<div class="review__author-img">
<img src="potolki_new_files/img/men.png" alt="people" />
</div>
<div class="review__author-name">Александр Петровский</div>
<div class="review__author-post">Генеральный директор компании Роснефть</div>
<div class="buttons-block">
<a href="" class="btn button-orange">Подробнее</a>
<span class="button-watch-project"><span>Смотреть проект</span></span>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<div class="scrollbar">
<div class="handle">
<div class="mousearea"></div>
</div>
</div>
</div>
</div>
';
}
add_shortcode('reviews', 'my_modules');
function my_modules() {
global $post;
setup_postdata( $post );
ob_start(); ?>
<div class="evaluated-projects">
<div class="container">
<div class="section-simple-title-wrap wow fadeInUp text-center " data-wow-delay="0.4s " style="visibility: hidden; animation-delay: 0.4s; animation-name: none; ">
<h3 class="simple-title no-link ">Оцененные проекты</h3>
</div>
<div class="evaluated-projects__content oneperframe frame wow fadeIn" data-wow-delay="0.4s " style="visibility: hidden; animation-delay: 0.4s; animation-name: none; " id="oneperframe">
<ul class="frame-list">
the_excerpt();
<li class="frame-list__item">
<div class="evaluated-projects__item">
<div class="evaluated-projects__img">
<img src="potolki_new_files/img/sly-slide-1.jpg" alt="image">
</div>
<div class="evaluated-projects__description">
<div class="evaluated-projects__title"> the_title(); </div>
<ul class="evaluated-projects__list">
<li>Полотно <span>3 600 ₽</span></li>
<li>Светильники с лампой под ключ <span>6 240 ₽</span></li>
<li>Углы <span>600 ₽</span></li>
<li>Установка люстры <span>1 000 ₽</span></li>
<li>Обвод трубы <span>300 ₽</span></li>
<li>Итого <span>12 040 ₽</span></li>
</ul>
<div class="buttons-block">
<a href="the_permalink();" class="btn button-orange">Подробнее</a>
<span class="button-review"><span>Прочитать отзыв</span></span>
</div>
</div>
<div class="review__item">
<div class="review__content">
<p>
echo get_post_meta(get_the_ID(), \"reviews\", true);
</p>
</div>
<div class="review__author">
<div class="review__author-img">
<img src="potolki_new_files/img/men.png" alt="people" />
</div>
<div class="review__author-name">Александр Петровский</div>
<div class="review__author-post">Генеральный директор компании Роснефть</div>
<div class="buttons-block">
<a href="" class="btn button-orange">Подробнее</a>
<span class="button-watch-project"><span>Смотреть проект</span></span>
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<div class="scrollbar">
<div class="handle">
<div class="mousearea"></div>
</div>
</div>
</div>
</div>
<?php return ob_get_clean();
}
add_shortcode('reviews', 'my_modules');