Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function echo_links($post_id, $array) {
- $posts = $array;
- foreach( $posts as $key => $post ){
- setup_postdata($post);
- if(in_category($post_id, $post)) {
- echo '<li id="ember1434" class="course-pack-list__item course-promo-widget ember-view">
- <a href="'. get_the_title() .'" id="ember2654" class="course-promo-widget__cover ember-link ember-view"> <img src="'. get_the_post_thumbnail_url( 'thumbnail', '') .'" alt="Логотип курса" class="course-promo-widget__cover">
- </a>
- <ol class="course-promo-widget__owners">
- <li class="course-promo-widget__owners-item">
- <a title="'. get_post_meta(get_the_ID(), 'whomade', 1) .'" href="#" id="ember2694" class="course-promo-widget__owner ember-link ember-view">'. get_post_meta(get_the_ID(), 'whomade', 1) .'</a></li>
- </ol>
- <a href="'. get_the_permalink() .'" id="ember2656" class="course-promo-widget__title ember-link ember-view">'. get_the_title() .'
- </a>
- <ul class="course-promo-widget__stats">
- <li class="course-promo-widget__stats-item">
- <span aria-label="Количество записавшихся на курс" title="Количество записавшихся на курс" id="ember2657" class="course-promo-widget__stats-icon svg-icon st-user_icon ember-view">👤 </span>'. get_post_meta(get_the_ID(), 'countpeoples', 1) .' </li>
- <li class="course-promo-widget__stats-item">
- <span title="Средняя оценка:">
- <span class="course-promo-widget__stats-icon">★</span> '.get_post_meta(get_the_ID(), 'mark', 1) .'</span>
- </li>
- </ul>
- <!---->
- <!---->
- <!---->
- </li>';
- }
- }
- wp_reset_postdata();
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement