WP-SHOW-POST do not allow to add custom fields to pages.
I used this code to show posts from category 5
<?php
// задаем нужные нам критерии выборки данных из БД
$args = array(
'cat' => 5,
'orderby' => 'comment_count',
'post_type' => 'page'
);
$query = new WP_Query( $args );
// Цикл
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
echo '<li>' . get_the_title() . '</li>';
}
} else {
// Постов не найдено
}
/* Возвращаем оригинальные данные поста. Сбрасываем $post. */
wp_reset_postdata();
?>
How can I applay the theme settings for this loop?