@misterblack

Как в Wordpress вывести блоги на главную в шаблоне PrimeTime?

Доброго дня. Имеется шаблон PrimeTime ( DEMO prime.themerex.net )
Как вывести блоги на главную страницу сайта в таком виде prime.themerex.net/?page_id=11&news_style=3
В документации по шаблону, на главную страницу имеется такой код:
// ----------------- Main Slider -------------------
... PHP-code for slider output ...
// ---------------- /Main Slider -------------------


// ---- News block under slider (row with 3 news items) ------
... PHP-code for recent news block output ...
// --- /News block under slider (row with 3 news items) ------

// ---- News block 1 - one big post and some number rows with 2 small posts -----
... PHP-code for news block 1 output ...
// --- /News block 1 - one big post and some number rows with 2 small posts -----

...

// ---- Additional news block template - one big post and some number rows with 2 small posts -----
// If you want add this on homepage:
// 1) Copy this template in desired place (above or under any exists block)
// 2) Uncomment next lines (start with "echo" command)
// 3) Replace cat_id with real category ID (or slug),
//    cattype with post's type - post | news | reviews, count with 3,5,7 etc.
//echo do_shortcode('[news_by_category count="5" catid="your_category_ID" cattype="post|news|reviews"]');
// --- /Additional news block template - one big post and some number rows with 2 small posts -----

// ---- Additional two columns block template with separate news in each column -------------------
// If you want add this on homepage:
// 1) Copy this template in desired place (above or under any exists block)
// 2) Uncomment next lines (start with "echo" command)
// 3) Replace cat_id with real category ID (or slug),
//    cattype with post's type - post | news | reviews, count with 3,5,7 etc.
//echo '<div class="two_columns_news clearboth">';
//echo do_shortcode('[small_news_by_category count="3" catid="your_category_ID" cattype="post|news|reviews"]');
//echo do_shortcode('[small_news_by_category count="3" catid="your_category_ID" cattype="post|news|reviews"]');
//echo '</div>';
// --- /Additional two columns block template with separate news in each column -------------------
  • Вопрос задан
  • 2388 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы