Хочется перенести описание категории вниз.

Э
На сайте с 11.08.2009
Offline
191
377

Приветствую.

Хочется перенести описание категории вордпресс вниз под кнопки пагинации, но уже сломал мозг - не получается.

Может кому-то это очень просто, подскажите пожалуйста

<?php defined( 'ABSPATH' ) OR die( 'This script cannot be accessed directly.' );


/**
* The template for displaying archive pages
*/

$us_layout = US_Layout::instance();

get_header();

// Creating .l-titlebar
$titlebar_vars = array(
'title' => get_the_archive_title(),
);
if ( is_category() OR is_tax() ) {
$term = get_queried_object();
if ( $term ) {
$taxonomy = $term->taxonomy;
$term = $term->term_id;
}
$titlebar_vars['subtitle'] = nl2br( get_term_field( 'description', $term, $taxonomy, 'edit' ) );
}
us_load_template( 'templates/titlebar', $titlebar_vars );

$template_vars = array(
'layout' => us_get_option( 'archive_layout', 'smallcircle' ),
'type' => us_get_option( 'archive_type', 'grid' ),
'columns' => us_get_option( 'archive_cols', 1 ),
'img_size' => us_get_option( 'archive_img_size', 'default' ),
'metas' => (array) us_get_option( 'archive_meta', array() ),
'content_type' => us_get_option( 'archive_content_type', 'excerpt' ),
'show_read_more' => in_array( 'read_more', us_get_option( 'archive_meta', array() ) ),
'pagination' => us_get_option( 'archive_pagination', 'regular' ),
);
дальше сайдбар
$default_archive_sidebar_id = us_get_option( 'archive_sidebar_id', 'default_sidebar' );

Вот эта строка отвечает за вывод описания

$titlebar_vars['subtitle'] = nl2br( get_term_field( 'description', $term, $taxonomy, 'edit' ) );

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий