Дочерняя тема в WordPress - это тема, наследующая функциональность другой, родительской темы. Использование дочерней темы позволяет дополнять или изменять дизайн и функциональность родительской темы, не изменяя файлы исходной, родительской темы. А это значит, что можно будет обновлять родительскую тему при появлении новой версии, сохраняя свои изменения.
Чтобы создать дочернюю тему, нужно, как минимум, создать папку темы и поместить в нее файл style.css с соответствующим заголовком. В этой статье в качестве родительской темы используется тема Twenty Ten, новая дефолтная тема WordPress 3.0.
Содержание:
Папка дочерней темы
Дочерняя тема находится в своей папке внутри папки WordPress wp-content/themes. Имя ее может быть любым, и она должна содержать файл style.css - единственный обязательный файл дочерней темы.

Папки тем и дочерних тем в cPanel
Обязательный файл style.css
В файле style.css дочерней темы задается специальный информационный заголовок, по которому WordPress узнает, что тема является дочерней, и заменяет этим файлом style.css файл стилей родительской темы.
Информационный заголовок должен находиться в самом начале файла и содержать строку Template: с указанием имени папки родительской темы.
Далее следует обычное содержимое файла стилей. Этот файл полностью заменяет файл стилей родительской темы (файл style.css родительской темы не загружается). Поэтому, если нужно только немного изменить дизайн родительской темы, что-то добавить в него, а не изменять кардинально, нужно сначала явно импортировать файл стилей родительской темы с помощью директивы @import, а затем уже добавлять свои изменения.
Допустим, мы хотим изменить цвет заголовка сайта в теме Twenty Ten. Создаем и активируем дочернюю тему с таким файлом стилей style.css:
/*
Theme Name: Twenty Ten Child
Theme URI: http: //example.com/
Description: Child theme for the Twenty Ten theme
Author: mblogm
Author URI: http: //example.com/about/
Template: twentyten
Version: 0.1.0
*/
@import url("../twentyten/style.css");
@import url("../twentyten/rtl.css");
#site-title a {
color: #009900;
}
Здесь обязательные строки:
Theme Name - имя дочерней темы и
Template - имя папки родительской темы (учитывается регистр символов) )
Для поддержки RTL-языков, т.е. языков, в которых символы пишутся справа налево (Right To Left, RTL) , в тему добавляется файл rtl.css (WordPress автоматически загружает файл rtl.css, если is_rtl().)
Файл functions.php
В отличие от style.css, файл functions.php дочерней темы не переопределяет, а дополняет файл родительской темы functions.php (файл дочерней темы загружается перед файлом родительской темы.)
Если нужно добавить в тему PHP-функцию, ее можно добавить в файл functions.php темы или создать дочернюю тему с файлом functions.php, в который можно помещать все дополнительные функции.
Файл functions.php содержит открывающий тег <?php в начале и закрывающий тег ?> в конце, между которыми можно располагать любое количество функций. Например, следующий файл functions.php добавляет ссылку на файл иконки сайта favicon.ico в заголовки HTML-страниц:
function favicon_link() {
echo '<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />' . "n";
}
add_action('wp_head', 'favicon_link');
*** Поскольку файл функций (functions.php) дочерней темы загружается раньше файла функций родительской темы, можно сделать так, чтобы функции темы можно было заменять функциями дочерней темы, например:
if (!function_exists('theme_special_nav')) {
function theme_special_nav() {
...
}
}
Дочерняя тема, объявляющая эту PHP-функцию, может заменять родительскую функцию.
Включение файлов
При включении файлов в файле functions.php дочерней темы нужно использовать константу STYLESHEETPATH, а не часто используемую константу TEMPLATEPATH:.
require_once( STYLESHEETPATH . '/path/to/file/in/child/theme.php' );
Файлы темы
Файлы шаблонов дочерней темы (single.php, page.php, ...) работают так же, как и файл style.css, т.е. переопределяют соответствующие файлы родительской темы (файл index.php может быть переопределен только, начиная с WordPress версии 3.0.).
Это позволяет добавлять шаблоны, которых нет в родительской теме, например, для страницы-карты сайта или для страниц с одной колонкой, и дополнять или полностью изменять шаблоны родительской темы.
Полезные статьи:
- - серия из 4 статей
- - создание дочерней темы для темы Thirty Ten
(Это вольный перевод статьи Кодекса "")
[collapseSym] =>
)
postsToExclude:
Array
(
)
CATEGORY QUERY:
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN
wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN
('category') AND t.slug!='blogroll'
ASC
CATEGORY QUERY RESULTS
Array
(
[0] => stdClass Object
(
[term_id] => 4
[name] => Apache
[slug] => apache
[term_group] => 0
[term_taxonomy_id] => 5
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 1
)
[1] => stdClass Object
(
[term_id] => 34
[name] => CSS
[slug] => css
[term_group] => 0
[term_taxonomy_id] => 35
[taxonomy] => category
[description] =>
[parent] => 16
[count] => 3
)
[5] => stdClass Object
(
[term_id] => 36
[name] => Hardware
[slug] => hardware
[term_group] => 0
[term_taxonomy_id] => 37
[taxonomy] => category
[description] =>
[parent] => 23
[count] => 3
)
[6] => stdClass Object
(
[term_id] => 6
[name] => htaccess
[slug] => in-htaccess
[term_group] => 0
[term_taxonomy_id] => 7
[taxonomy] => category
[description] =>
[parent] => 4
[count] => 5
)
[7] => stdClass Object
(
[term_id] => 37
[name] => JavaScript
[slug] => javascript
[term_group] => 0
[term_taxonomy_id] => 38
[taxonomy] => category
[description] =>
[parent] => 16
[count] => 3
)
[8] => stdClass Object
(
[term_id] => 7
[name] => mySQL
[slug] => mysql
[term_group] => 0
[term_taxonomy_id] => 8
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 1
)
[10] => stdClass Object
(
[term_id] => 39
[name] => PHP
[slug] => php
[term_group] => 0
[term_taxonomy_id] => 40
[taxonomy] => category
[description] =>
[parent] => 16
[count] => 5
)
[13] => stdClass Object
(
[term_id] => 42
[name] => SnagIt
[slug] => snagit
[term_group] => 0
[term_taxonomy_id] => 43
[taxonomy] => category
[description] => http://www.techsmith.com - коммерческая программа захвата и обработки содержимого веб-страниц, документация:
http://download.techsmith.com/snagit/docs/onlinehelp/enu/9/default.htm?turl=inputfixedregiontab.htm
[parent] => 21
[count] => 1
)
[18] => stdClass Object
(
[term_id] => 10
[name] => WordPress
[slug] => wordpress
[term_group] => 0
[term_taxonomy_id] => 11
[taxonomy] => category
[description] => Статьи о работе WordPress, об использовании функций WordPress для решения конкретных задач и о разработке сайта на WordPress
[parent] => 0
[count] => 7
)
[19] => stdClass Object
(
[term_id] => 11
[name] => WordPress 3
[slug] => wordpress-3
[term_group] => 0
[term_taxonomy_id] => 12
[taxonomy] => category
[description] =>
[parent] => 10
[count] => 2
)
[20] => stdClass Object
(
[term_id] => 13
[name] => WordPress-рецепты
[slug] => wordpress-recepty
[term_group] => 0
[term_taxonomy_id] => 14
[taxonomy] => category
[description] =>
[parent] => 10
[count] => 4
)
[21] => stdClass Object
(
[term_id] => 44
[name] => XHTML
[slug] => xhtml
[term_group] => 0
[term_taxonomy_id] => 45
[taxonomy] => category
[description] =>
[parent] => 16
[count] => 2
)
[23] => stdClass Object
(
[term_id] => 14
[name] => Безопасность
[slug] => bezopasnost-wordpress
[term_group] => 0
[term_taxonomy_id] => 15
[taxonomy] => category
[description] =>
[parent] => 10
[count] => 2
)
[24] => stdClass Object
(
[term_id] => 45
[name] => Браузеры
[slug] => brauzery
[term_group] => 0
[term_taxonomy_id] => 46
[taxonomy] => category
[description] =>
[parent] => 23
[count] => 2
)
[26] => stdClass Object
(
[term_id] => 16
[name] => Веб-разработка
[slug] => veb-razrabotka
[term_group] => 0
[term_taxonomy_id] => 17
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 1
)
[27] => stdClass Object
(
[term_id] => 17
[name] => Дневник "Study English Now"
[slug] => on-study-english-now
[term_group] => 0
[term_taxonomy_id] => 18
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 2
)
[28] => stdClass Object
(
[term_id] => 18
[name] => домен
[slug] => domain
[term_group] => 0
[term_taxonomy_id] => 19
[taxonomy] => category
[description] =>
[parent] => 16
[count] => 1
)
[32] => stdClass Object
(
[term_id] => 21
[name] => Инструменты веб-мастера
[slug] => tools
[term_group] => 0
[term_taxonomy_id] => 22
[taxonomy] => category
[description] => При подготовке материалов для сайта используются различные программы захвата и обработки изображений и других данных. В этой рубрике собраны уроки, советы и справочные материалы по работе в таких программах.
[parent] => 0
[count] => 1
)
[33] => stdClass Object
(
[term_id] => 46
[name] => Конспекты: Изучаем PHP 1
[slug] => konspekty-izuchaem-php-1
[term_group] => 0
[term_taxonomy_id] => 47
[taxonomy] => category
[description] =>
[parent] => 39
[count] => 1
)
[34] => stdClass Object
(
[term_id] => 22
[name] => Навигация
[slug] => navigaciya
[term_group] => 0
[term_taxonomy_id] => 23
[taxonomy] => category
[description] =>
[parent] => 10
[count] => 4
)
[35] => stdClass Object
(
[term_id] => 23
[name] => Не WordPress
[slug] => no-wordpress
[term_group] => 0
[term_taxonomy_id] => 24
[taxonomy] => category
[description] => Wordpress - это хорошо, но это не все, что нужно человеку для жизни ... на компьютере. Нужно и другое: настройки Windows, приемы работы в Office, решение разных проблем с компьютером и т.д..
[parent] => 0
[count] => 2
)
[36] => stdClass Object
(
[term_id] => 24
[name] => Новости
[slug] => news
[term_group] => 0
[term_taxonomy_id] => 25
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 4
)
[38] => stdClass Object
(
[term_id] => 25
[name] => Оптимизация WordPress
[slug] => optimizaciya-wordpress
[term_group] => 0
[term_taxonomy_id] => 26
[taxonomy] => category
[description] => Советы по повышению производительности и поисковой оптимизации сайта WordPress
[parent] => 10
[count] => 1
)
[39] => stdClass Object
(
[term_id] => 26
[name] => Плагины WordPress
[slug] => plaginy-wordpress
[term_group] => 0
[term_taxonomy_id] => 27
[taxonomy] => category
[description] => Статьи об интересных плагинах WordPress
[parent] => 10
[count] => 9
)
[40] => stdClass Object
(
[term_id] => 27
[name] => Подписка на блог
[slug] => podpiska-na-blog
[term_group] => 0
[term_taxonomy_id] => 28
[taxonomy] => category
[description] => Статьи о том, как организовать подписку на обновления на WordPress-сайте
[parent] => 10
[count] => 2
)
[41] => stdClass Object
(
[term_id] => 28
[name] => Поисковые системы
[slug] => for-search-engines
[term_group] => 0
[term_taxonomy_id] => 29
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 4
)
[43] => stdClass Object
(
[term_id] => 30
[name] => Проблемы
[slug] => problems
[term_group] => 0
[term_taxonomy_id] => 31
[taxonomy] => category
[description] =>
[parent] => 10
[count] => 3
)
[47] => stdClass Object
(
[term_id] => 32
[name] => Создание и изменение темы
[slug] => create-and-change-theme
[term_group] => 0
[term_taxonomy_id] => 33
[taxonomy] => category
[description] =>
[parent] => 10
[count] => 6
)
[48] => stdClass Object
(
[term_id] => 33
[name] => Создание плагина
[slug] => sozdanie-plagina-wordpress
[term_group] => 0
[term_taxonomy_id] => 34
[taxonomy] => category
[description] =>
[parent] => 10
[count] => 5
)
)
POST QUERY:
select ID, slug, date(post_date) as date, post_status,
post_type, post_date, post_author, post_title, post_name, name, object_id,
t.term_id from wp_term_relationships AS tr, wp_posts AS p,
wp_terms AS t, wp_term_taxonomy AS tt
WHERE tt.term_id = t.term_id
AND object_id=ID
AND post_status='publish'
AND tr.term_taxonomy_id = tt.term_taxonomy_id
AND tt.taxonomy IN ('category') AND post_type='post' ORDER BY p.id ASC
POST QUERY RESULTS
Array
(
[0] => stdClass Object
(
[ID] => 34
[slug] => mysql
[date] => 2009-09-25
[post_status] => publish
[post_type] => post
[post_date] => 2009-09-25 10:20:34
[post_author] => 2
[post_title] => Изменение пароля пользователя в MySQL
[post_name] => change-mysql-password
[name] => mySQL
[object_id] => 34
[term_id] => 7
)
[1] => stdClass Object
(
[ID] => 36
[slug] => wordpress
[date] => 2009-09-25
[post_status] => publish
[post_type] => post
[post_date] => 2009-09-25 10:23:29
[post_author] => 2
[post_title] => WordPress на локальном сервере Денвер
[post_name] => wordpress-on-local-server-denwer
[name] => WordPress
[object_id] => 36
[term_id] => 10
)
[2] => stdClass Object
(
[ID] => 45
[slug] => css
[date] => 2009-09-25
[post_status] => publish
[post_type] => post
[post_date] => 2009-09-25 16:23:35
[post_author] => 2
[post_title] => Встраивание стилей и правила CSS
[post_name] => css-rules
[name] => CSS
[object_id] => 45
[term_id] => 34
)
[3] => stdClass Object
(
[ID] => 58
[slug] => wordpress
[date] => 2009-09-26
[post_status] => publish
[post_type] => post
[post_date] => 2009-09-26 23:10:37
[post_author] => 2
[post_title] => Структура страницы WordPress
[post_name] => wordpress-pages-structure
[name] => WordPress
[object_id] => 58
[term_id] => 10
)
[4] => stdClass Object
(
[ID] => 105
[slug] => xhtml
[date] => 2009-09-27
[post_status] => publish
[post_type] => post
[post_date] => 2009-09-27 22:48:48
[post_author] => 2
[post_title] => XHTML
[post_name] => xhtml
[name] => XHTML
[object_id] => 105
[term_id] => 44
)
[5] => stdClass Object
(
[ID] => 128
[slug] => navigaciya
[date] => 2009-09-30
[post_status] => publish
[post_type] => post
[post_date] => 2009-09-30 00:49:59
[post_author] => 2
[post_title] => Выделение текущей страницы в меню
[post_name] => menu
[name] => Навигация
[object_id] => 128
[term_id] => 22
)
[6] => stdClass Object
(
[ID] => 334
[slug] => php
[date] => 2009-10-14
[post_status] => publish
[post_type] => post
[post_date] => 2009-10-14 13:31:31
[post_author] => 2
[post_title] => Работа с графикой в PHP
[post_name] => images-in-php
[name] => PHP
[object_id] => 334
[term_id] => 39
)
[7] => stdClass Object
(
[ID] => 376
[slug] => domain
[date] => 2009-10-17
[post_status] => publish
[post_type] => post
[post_date] => 2009-10-17 12:18:44
[post_author] => 2
[post_title] => Регистрация домена
[post_name] => domain
[name] => домен
[object_id] => 376
[term_id] => 18
)
[8] => stdClass Object
(
[ID] => 381
[slug] => on-study-english-now
[date] => 2009-10-19
[post_status] => publish
[post_type] => post
[post_date] => 2009-10-19 14:02:36
[post_author] => 2
[post_title] => Конструктор тега для знаков транскрипции
[post_name] => phonetictagconstructor
[name] => Дневник "Study English Now"
[object_id] => 381
[term_id] => 17
)
[9] => stdClass Object
(
[ID] => 412
[slug] => veb-razrabotka
[date] => 2010-12-27
[post_status] => publish
[post_type] => post
[post_date] => 2010-12-27 22:14:28
[post_author] => 2
[post_title] => Комментарии в коде HTML, php, css, JavaScript и .htaccess
[post_name] => comments-in-code
[name] => Веб-разработка
[object_id] => 412
[term_id] => 16
)
[10] => stdClass Object
(
[ID] => 420
[slug] => css
[date] => 2009-11-01
[post_status] => publish
[post_type] => post
[post_date] => 2009-11-01 13:28:22
[post_author] => 2
[post_title] => Задание размеров в CSS
[post_name] => size-in-css
[name] => CSS
[object_id] => 420
[term_id] => 34
)
[11] => stdClass Object
(
[ID] => 430
[slug] => javascript
[date] => 2009-11-07
[post_status] => publish
[post_type] => post
[post_date] => 2009-11-07 16:32:51
[post_author] => 2
[post_title] => Как проверить, что объект или метод поддерживается браузером
[post_name] => object-support
[name] => JavaScript
[object_id] => 430
[term_id] => 37
)
[12] => stdClass Object
(
[ID] => 444
[slug] => for-search-engines
[date] => 2009-11-23
[post_status] => publish
[post_type] => post
[post_date] => 2009-11-23 15:02:56
[post_author] => 2
[post_title] => Индексация: использование noindex, nofollow, robots и др.
[post_name] => noindex-nofollow-robots
[name] => Поисковые системы
[object_id] => 444
[term_id] => 28
)
[13] => stdClass Object
(
[ID] => 498
[slug] => on-study-english-now
[date] => 2009-12-12
[post_status] => publish
[post_type] => post
[post_date] => 2009-12-12 12:24:55
[post_author] => 2
[post_title] => Перенос на новый домен
[post_name] => perenos-na-novyj-domen
[name] => Дневник "Study English Now"
[object_id] => 498
[term_id] => 17
)
[14] => stdClass Object
(
[ID] => 514
[slug] => css
[date] => 2009-12-12
[post_status] => publish
[post_type] => post
[post_date] => 2009-12-12 13:49:01
[post_author] => 2
[post_title] => Управление обтеканием
[post_name] => upravlenie-obtekaniem
[name] => CSS
[object_id] => 514
[term_id] => 34
)
[15] => stdClass Object
(
[ID] => 529
[slug] => apache
[date] => 2009-12-20
[post_status] => publish
[post_type] => post
[post_date] => 2009-12-20 17:59:59
[post_author] => 2
[post_title] => Задания Cron на выполнение php-скриптов
[post_name] => cron-for-php-scripts
[name] => Apache
[object_id] => 529
[term_id] => 4
)
[16] => stdClass Object
(
[ID] => 538
[slug] => sozdanie-plagina-wordpress
[date] => 2009-12-30
[post_status] => publish
[post_type] => post
[post_date] => 2009-12-30 01:04:14
[post_author] => 2
[post_title] => Создание плагина: шоткоды
[post_name] => create-shortcode-plugin
[name] => Создание плагина
[object_id] => 538
[term_id] => 33
)
[17] => stdClass Object
(
[ID] => 563
[slug] => wordpress
[date] => 2010-01-14
[post_status] => publish
[post_type] => post
[post_date] => 2010-01-14 14:50:27
[post_author] => 2
[post_title] => Если не загружаются файлы в Wordpress
[post_name] => uploads-problem
[name] => WordPress
[object_id] => 563
[term_id] => 10
)
[18] => stdClass Object
(
[ID] => 581
[slug] => sozdanie-plagina-wordpress
[date] => 2010-01-18
[post_status] => publish
[post_type] => post
[post_date] => 2010-01-18 14:49:36
[post_author] => 2
[post_title] => Создание плагина с использованием функции WordPress add_action
[post_name] => wordpress-plugin-add_action
[name] => Создание плагина
[object_id] => 581
[term_id] => 33
)
[19] => stdClass Object
(
[ID] => 613
[slug] => plaginy-wordpress
[date] => 2010-01-20
[post_status] => publish
[post_type] => post
[post_date] => 2010-01-20 15:39:56
[post_author] => 2
[post_title] => Голосование, просмотры, рейтинг
[post_name] => polls-views-postratings
[name] => Плагины WordPress
[object_id] => 613
[term_id] => 26
)
[20] => stdClass Object
(
[ID] => 668
[slug] => php
[date] => 2010-01-25
[post_status] => publish
[post_type] => post
[post_date] => 2010-01-25 14:41:57
[post_author] => 2
[post_title] => PHP: примеры регулярных выражений
[post_name] => php-reg-ex-examples
[name] => PHP
[object_id] => 668
[term_id] => 39
)
[21] => stdClass Object
(
[ID] => 761
[slug] => podpiska-na-blog
[date] => 2010-02-27
[post_status] => publish
[post_type] => post
[post_date] => 2010-02-27 21:03:27
[post_author] => 2
[post_title] => FeedBurner: настройка страницы подписки на RSS-поток
[post_name] => feedburner-setting
[name] => Подписка на блог
[object_id] => 761
[term_id] => 27
)
[22] => stdClass Object
(
[ID] => 775
[slug] => sozdanie-plagina-wordpress
[date] => 2010-03-07
[post_status] => publish
[post_type] => post
[post_date] => 2010-03-07 18:23:50
[post_author] => 2
[post_title] => Создание плагина: запись в базу данных
[post_name] => wordpress-plugin-data-base-1
[name] => Создание плагина
[object_id] => 775
[term_id] => 33
)
[23] => stdClass Object
(
[ID] => 883
[slug] => news
[date] => 2010-04-08
[post_status] => publish
[post_type] => post
[post_date] => 2010-04-08 21:31:30
[post_author] => 2
[post_title] => Мой блог на Я.ру
[post_name] => blog-on-ya-ru
[name] => Новости
[object_id] => 883
[term_id] => 24
)
[24] => stdClass Object
(
[ID] => 939
[slug] => in-htaccess
[date] => 2010-06-27
[post_status] => publish
[post_type] => post
[post_date] => 2010-06-27 20:38:48
[post_author] => 2
[post_title] => Перенаправление (редирект) в файле .htaccess
[post_name] => redirect-in-htaccess
[name] => htaccess
[object_id] => 939
[term_id] => 6
)
[25] => stdClass Object
(
[ID] => 975
[slug] => hardware
[date] => 2010-07-20
[post_status] => publish
[post_type] => post
[post_date] => 2010-07-20 14:33:20
[post_author] => 2
[post_title] => Печальная история со счастливым концом. Глава 1:Кнопка
[post_name] => story-about-comp-1
[name] => Hardware
[object_id] => 975
[term_id] => 36
)
[26] => stdClass Object
(
[ID] => 989
[slug] => hardware
[date] => 2010-07-26
[post_status] => publish
[post_type] => post
[post_date] => 2010-07-26 13:54:31
[post_author] => 2
[post_title] => Печальная история со счастливым концом. Глава 2:Чем дальше в лес, тем больше дров
[post_name] => story-about-comp-2
[name] => Hardware
[object_id] => 989
[term_id] => 36
)
[27] => stdClass Object
(
[ID] => 996
[slug] => php
[date] => 2010-08-16
[post_status] => publish
[post_type] => post
[post_date] => 2010-08-16 19:46:32
[post_author] => 2
[post_title] => Чтение файлов и каталогов в php-сценарии
[post_name] => read-files-and-dirs
[name] => PHP
[object_id] => 996
[term_id] => 39
)
[28] => stdClass Object
(
[ID] => 1008
[slug] => php
[date] => 2010-08-22
[post_status] => publish
[post_type] => post
[post_date] => 2010-08-22 18:57:45
[post_author] => 2
[post_title] => Чтение файлов и каталогов в php-сценарии, продолжение: файлы
[post_name] => read-file
[name] => PHP
[object_id] => 1008
[term_id] => 39
)
[29] => stdClass Object
(
[ID] => 1037
[slug] => php
[date] => 2010-08-24
[post_status] => publish
[post_type] => post
[post_date] => 2010-08-24 16:56:59
[post_author] => 2
[post_title] => Многострочный текст в php-сценарии
[post_name] => multiline-text-in-php
[name] => PHP
[object_id] => 1037
[term_id] => 39
)
[30] => stdClass Object
(
[ID] => 1053
[slug] => hardware
[date] => 2010-08-25
[post_status] => publish
[post_type] => post
[post_date] => 2010-08-25 13:32:40
[post_author] => 2
[post_title] => Печальная история со счастливым концом. Глава 3: Ремонт на дому
[post_name] => story-about-comp-3-2
[name] => Hardware
[object_id] => 1053
[term_id] => 36
)
[31] => stdClass Object
(
[ID] => 1067
[slug] => in-htaccess
[date] => 2010-09-09
[post_status] => publish
[post_type] => post
[post_date] => 2010-09-09 13:48:01
[post_author] => 2
[post_title] => .htaccess в поддиректории WordPress c 777
[post_name] => htaccess-and-777
[name] => htaccess
[object_id] => 1067
[term_id] => 6
)
[32] => stdClass Object
(
[ID] => 1075
[slug] => javascript
[date] => 2010-10-22
[post_status] => publish
[post_type] => post
[post_date] => 2010-10-22 17:06:09
[post_author] => 2
[post_title] => Случайность в JavaScript
[post_name] => randomness-in-js
[name] => JavaScript
[object_id] => 1075
[term_id] => 37
)
[33] => stdClass Object
(
[ID] => 1129
[slug] => konspekty-izuchaem-php-1
[date] => 2010-10-25
[post_status] => publish
[post_type] => post
[post_date] => 2010-10-25 12:51:58
[post_author] => 2
[post_title] => Формы, массивы и передача данных в php
[post_name] => form-array-get-post
[name] => Конспекты: Изучаем PHP 1
[object_id] => 1129
[term_id] => 46
)
[34] => stdClass Object
(
[ID] => 1152
[slug] => wordpress
[date] => 2010-11-12
[post_status] => publish
[post_type] => post
[post_date] => 2010-11-12 22:09:44
[post_author] => 2
[post_title] => Дата и время в WordPress
[post_name] => date-and-time-in-wordpress
[name] => WordPress
[object_id] => 1152
[term_id] => 10
)
[35] => stdClass Object
(
[ID] => 1165
[slug] => sozdanie-plagina-wordpress
[date] => 2010-11-13
[post_status] => publish
[post_type] => post
[post_date] => 2010-11-13 00:57:19
[post_author] => 2
[post_title] => Административная страница плагина
[post_name] => plugin-admin-page
[name] => Создание плагина
[object_id] => 1165
[term_id] => 33
)
[36] => stdClass Object
(
[ID] => 1181
[slug] => create-and-change-theme
[date] => 2010-11-15
[post_status] => publish
[post_type] => post
[post_date] => 2010-11-15 22:57:49
[post_author] => 2
[post_title] => Миниатюры записей
[post_name] => thumbnails
[name] => Создание и изменение темы
[object_id] => 1181
[term_id] => 32
)
[37] => stdClass Object
(
[ID] => 1203
[slug] => create-and-change-theme
[date] => 2010-12-01
[post_status] => publish
[post_type] => post
[post_date] => 2010-12-01 00:17:59
[post_author] => 2
[post_title] => Текущая страница после входа/выхода
[post_name] => current-page-after-login-logout
[name] => Создание и изменение темы
[object_id] => 1203
[term_id] => 32
)
[38] => stdClass Object
(
[ID] => 1344
[slug] => wordpress
[date] => 2010-12-22
[post_status] => publish
[post_type] => post
[post_date] => 2010-12-22 00:58:39
[post_author] => 2
[post_title] => Добавление встроенной галереи WordPress
[post_name] => wordpress-gallery
[name] => WordPress
[object_id] => 1344
[term_id] => 10
)
[39] => stdClass Object
(
[ID] => 1376
[slug] => create-and-change-theme
[date] => 2010-12-23
[post_status] => publish
[post_type] => post
[post_date] => 2010-12-23 09:25:23
[post_author] => 2
[post_title] => Ссылки на записи рубрики в сайдбаре одиночной записи
[post_name] => posts-in-sidebar
[name] => Создание и изменение темы
[object_id] => 1376
[term_id] => 32
)
[40] => stdClass Object
(
[ID] => 1381
[slug] => wordpress
[date] => 2010-12-23
[post_status] => publish
[post_type] => post
[post_date] => 2010-12-23 10:17:23
[post_author] => 2
[post_title] => Как узнать id в WordPress
[post_name] => id-in-wordpress
[name] => WordPress
[object_id] => 1381
[term_id] => 10
)
[41] => stdClass Object
(
[ID] => 1413
[slug] => in-htaccess
[date] => 2010-12-25
[post_status] => publish
[post_type] => post
[post_date] => 2010-12-25 20:50:56
[post_author] => 2
[post_title] => Листинг каталогов и .htaccess
[post_name] => dir-listing-and-htaccess
[name] => htaccess
[object_id] => 1413
[term_id] => 6
)
[42] => stdClass Object
(
[ID] => 1608
[slug] => navigaciya
[date] => 2011-01-06
[post_status] => publish
[post_type] => post
[post_date] => 2011-01-06 18:04:43
[post_author] => 2
[post_title] => Иерархия постоянных страниц и breadcrumbs (хлебные крошки)
[post_name] => page-children-and-breadcrumbs
[name] => Навигация
[object_id] => 1608
[term_id] => 22
)
[43] => stdClass Object
(
[ID] => 1635
[slug] => navigaciya
[date] => 2011-03-02
[post_status] => publish
[post_type] => post
[post_date] => 2011-03-02 23:50:24
[post_author] => 2
[post_title] => Хлебные крошки для рубрик и записей блога
[post_name] => post-breadcrumbs
[name] => Навигация
[object_id] => 1635
[term_id] => 22
)
[44] => stdClass Object
(
[ID] => 1646
[slug] => xhtml
[date] => 2011-01-08
[post_status] => publish
[post_type] => post
[post_date] => 2011-01-08 23:53:44
[post_author] => 2
[post_title] => Использовать id или class?
[post_name] => id-or-class
[name] => XHTML
[object_id] => 1646
[term_id] => 44
)
[45] => stdClass Object
(
[ID] => 1712
[slug] => plaginy-wordpress
[date] => 2011-01-25
[post_status] => publish
[post_type] => post
[post_date] => 2011-01-25 10:26:32
[post_author] => 2
[post_title] => Как добавить свою кнопку в редактор WordPress
[post_name] => custom-button-in-wordpress-editor
[name] => Плагины WordPress
[object_id] => 1712
[term_id] => 26
)
[46] => stdClass Object
(
[ID] => 1716
[slug] => optimizaciya-wordpress
[date] => 2011-01-25
[post_status] => publish
[post_type] => post
[post_date] => 2011-01-25 11:04:10
[post_author] => 2
[post_title] => Управление версиями (редакциями)
[post_name] => revisions
[name] => Оптимизация WordPress
[object_id] => 1716
[term_id] => 25
)
[47] => stdClass Object
(
[ID] => 1758
[slug] => navigaciya
[date] => 2011-02-11
[post_status] => publish
[post_type] => post
[post_date] => 2011-02-11 22:13:32
[post_author] => 2
[post_title] => Как связать постоянные страницы с записями блога
[post_name] => link-pages-and-posts
[name] => Навигация
[object_id] => 1758
[term_id] => 22
)
[48] => stdClass Object
(
[ID] => 1790
[slug] => create-and-change-theme
[date] => 2011-02-10
[post_status] => publish
[post_type] => post
[post_date] => 2011-02-10 17:42:32
[post_author] => 2
[post_title] => Порядок вывода записей (новостей) блога
[post_name] => posts-order
[name] => Создание и изменение темы
[object_id] => 1790
[term_id] => 32
)
[49] => stdClass Object
(
[ID] => 1816
[slug] => create-and-change-theme
[date] => 2011-02-12
[post_status] => publish
[post_type] => post
[post_date] => 2011-02-12 17:25:13
[post_author] => 2
[post_title] => Как исключить метки при выводе ссылок на метки записи
[post_name] => exclude-tags
[name] => Создание и изменение темы
[object_id] => 1816
[term_id] => 32
)
[50] => stdClass Object
(
[ID] => 1944
[slug] => create-and-change-theme
[date] => 2011-04-19
[post_status] => publish
[post_type] => post
[post_date] => 2011-04-19 01:05:30
[post_author] => 2
[post_title] => Простая карта сайта для WordPress
[post_name] => simple-sitemap
[name] => Создание и изменение темы
[object_id] => 1944
[term_id] => 32
)
[51] => stdClass Object
(
[ID] => 1963
[slug] => no-wordpress
[date] => 2011-04-20
[post_status] => publish
[post_type] => post
[post_date] => 2011-04-20 17:05:41
[post_author] => 2
[post_title] => Восстановление системы и автозапуск программ в Windows 7
[post_name] => windows7-restore-and-autorun
[name] => Не WordPress
[object_id] => 1963
[term_id] => 23
)
[52] => stdClass Object
(
[ID] => 1995
[slug] => no-wordpress
[date] => 2011-04-21
[post_status] => publish
[post_type] => post
[post_date] => 2011-04-21 15:06:55
[post_author] => 2
[post_title] => Не только WordPress
[post_name] => no-wordpress
[name] => Не WordPress
[object_id] => 1995
[term_id] => 23
)
[53] => stdClass Object
(
[ID] => 2033
[slug] => brauzery
[date] => 2011-05-04
[post_status] => publish
[post_type] => post
[post_date] => 2011-05-04 15:42:46
[post_author] => 2
[post_title] => Дополнения для Firefox
[post_name] => add-ons-forfirefox
[name] => Браузеры
[object_id] => 2033
[term_id] => 45
)
[54] => stdClass Object
(
[ID] => 2071
[slug] => plaginy-wordpress
[date] => 2011-06-06
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-06 19:19:47
[post_author] => 2
[post_title] => Подсказки и словарь или глоссарий в блоге Wordpress
[post_name] => tooltips-and-glossary-in-wordpress
[name] => Плагины WordPress
[object_id] => 2071
[term_id] => 26
)
[55] => stdClass Object
(
[ID] => 2090
[slug] => news
[date] => 2011-06-07
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-07 13:52:36
[post_author] => 2
[post_title] => Объявление о временных технических проблемах
[post_name] => problems
[name] => Новости
[object_id] => 2090
[term_id] => 24
)
[56] => stdClass Object
(
[ID] => 2102
[slug] => in-htaccess
[date] => 2011-06-10
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-10 18:18:41
[post_author] => 2
[post_title] => Как изменить структуру ссылок с помощью htaccess
[post_name] => change-url-structure
[name] => htaccess
[object_id] => 2102
[term_id] => 6
)
[57] => stdClass Object
(
[ID] => 2123
[slug] => plaginy-wordpress
[date] => 2011-06-11
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-11 18:33:31
[post_author] => 2
[post_title] => Установка плагинов в сети сайтов WordPress
[post_name] => install-plagins-in-multisite-wordpress
[name] => Плагины WordPress
[object_id] => 2123
[term_id] => 26
)
[58] => stdClass Object
(
[ID] => 2145
[slug] => plaginy-wordpress
[date] => 2011-06-12
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-12 20:46:43
[post_author] => 2
[post_title] => Плагин Network Privacy - гибкая настройка доступности
[post_name] => plagin-network-privacy
[name] => Плагины WordPress
[object_id] => 2145
[term_id] => 26
)
[59] => stdClass Object
(
[ID] => 2222
[slug] => wordpress
[date] => 2011-06-12
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-12 14:09:52
[post_author] => 2
[post_title] => Встраивание медиафайлов и шоткод [embed]
[post_name] => media-and-shotcode-embed
[name] => WordPress
[object_id] => 2222
[term_id] => 10
)
[60] => stdClass Object
(
[ID] => 2232
[slug] => plaginy-wordpress
[date] => 2011-06-13
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-13 15:46:10
[post_author] => 2
[post_title] => Плагин NextGEN Gallery
[post_name] => plagin-nextgen-gallery
[name] => Плагины WordPress
[object_id] => 2232
[term_id] => 26
)
[61] => stdClass Object
(
[ID] => 2241
[slug] => podpiska-na-blog
[date] => 2011-07-01
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-01 22:33:52
[post_author] => 2
[post_title] => RSS подписка на сайте WordPress
[post_name] => rss-in-wordpress
[name] => Подписка на блог
[object_id] => 2241
[term_id] => 27
)
[62] => stdClass Object
(
[ID] => 2252
[slug] => in-htaccess
[date] => 2011-07-02
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-02 17:44:58
[post_author] => 2
[post_title] => Изменение адресов в .htaccess: RewriteCond и RewriteRule
[post_name] => htaccess-zend
[name] => htaccess
[object_id] => 2252
[term_id] => 6
)
[63] => stdClass Object
(
[ID] => 2282
[slug] => for-search-engines
[date] => 2011-06-28
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-28 07:48:35
[post_author] => 2
[post_title] => Canonical и другие мета теги
[post_name] => canonical-and-others
[name] => Поисковые системы
[object_id] => 2282
[term_id] => 28
)
[64] => stdClass Object
(
[ID] => 2285
[slug] => for-search-engines
[date] => 2011-06-26
[post_status] => publish
[post_type] => post
[post_date] => 2011-06-26 23:38:02
[post_author] => 2
[post_title] => Оказывается, поиск Яндекса шутит
[post_name] => poisk-yandeksa-shutit
[name] => Поисковые системы
[object_id] => 2285
[term_id] => 28
)
[65] => stdClass Object
(
[ID] => 2346
[slug] => sozdanie-plagina-wordpress
[date] => 2011-07-05
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-05 00:01:32
[post_author] => 2
[post_title] => Как узнать в коде id метки по имени метки
[post_name] => tag-id-from-name
[name] => Создание плагина
[object_id] => 2346
[term_id] => 33
)
[66] => stdClass Object
(
[ID] => 2364
[slug] => wordpress-3
[date] => 2011-07-05
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-05 10:00:54
[post_author] => 2
[post_title] => Добавление внутренних ссылок в WordPress 3.1
[post_name] => internal-linking
[name] => WordPress 3
[object_id] => 2364
[term_id] => 11
)
[67] => stdClass Object
(
[ID] => 2427
[slug] => wordpress-3
[date] => 2011-07-05
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-05 10:19:26
[post_author] => 2
[post_title] => Новость дня: "Доступен WordPress 3.2! Пожалуйста, обновитесь."
[post_name] => new-wordpress-3-2-requirements
[name] => WordPress 3
[object_id] => 2427
[term_id] => 11
)
[68] => stdClass Object
(
[ID] => 2427
[slug] => news
[date] => 2011-07-05
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-05 10:19:26
[post_author] => 2
[post_title] => Новость дня: "Доступен WordPress 3.2! Пожалуйста, обновитесь."
[post_name] => new-wordpress-3-2-requirements
[name] => Новости
[object_id] => 2427
[term_id] => 24
)
[69] => stdClass Object
(
[ID] => 2475
[slug] => news
[date] => 2011-07-08
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-08 14:00:14
[post_author] => 2
[post_title] => Регистрация доменов в зоне .RU и .РФ без паспорта!
[post_name] => no-passport
[name] => Новости
[object_id] => 2475
[term_id] => 24
)
[70] => stdClass Object
(
[ID] => 2485
[slug] => snagit
[date] => 2011-07-10
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-10 12:53:38
[post_author] => 2
[post_title] => Захват фиксированной области экрана
[post_name] => snagit-fixed-region
[name] => SnagIt
[object_id] => 2485
[term_id] => 42
)
[71] => stdClass Object
(
[ID] => 2538
[slug] => bezopasnost-wordpress
[date] => 2011-07-15
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-15 16:01:39
[post_author] => 2
[post_title] => Вредоносный код в плагинах AddThis, WPtouch и W3 Total Cache!
[post_name] => addthis-wptouch-w3-total-cache
[name] => Безопасность
[object_id] => 2538
[term_id] => 14
)
[72] => stdClass Object
(
[ID] => 2546
[slug] => bezopasnost-wordpress
[date] => 2011-07-19
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-19 18:47:28
[post_author] => 2
[post_title] => Как безопасно установить плагин?
[post_name] => safe-with-plugins
[name] => Безопасность
[object_id] => 2546
[term_id] => 14
)
[73] => stdClass Object
(
[ID] => 2585
[slug] => plaginy-wordpress
[date] => 2011-07-19
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-19 23:44:52
[post_author] => 2
[post_title] => WordPress Plugin Reviews
[post_name] => wordpress-plugin-reviews
[name] => Плагины WordPress
[object_id] => 2585
[term_id] => 26
)
[74] => stdClass Object
(
[ID] => 2606
[slug] => problems
[date] => 2011-07-22
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-22 10:47:45
[post_author] => 2
[post_title] => Почему не добавляются рубрики WordPress
[post_name] => pochemu-ne-dobavlyayutsya-rubriki-wordpress
[name] => Проблемы
[object_id] => 2606
[term_id] => 30
)
[75] => stdClass Object
(
[ID] => 2660
[slug] => wordpress-recepty
[date] => 2011-07-25
[post_status] => publish
[post_type] => post
[post_date] => 2011-07-25 14:47:34
[post_author] => 2
[post_title] => Как закрыть WordPress-сайт для незарегистрированных посетителей
[post_name] => only-for-registered-users
[name] => WordPress-рецепты
[object_id] => 2660
[term_id] => 13
)
[76] => stdClass Object
(
[ID] => 2821
[slug] => problems
[date] => 2011-08-01
[post_status] => publish
[post_type] => post
[post_date] => 2011-08-01 00:05:15
[post_author] => 2
[post_title] => при сохранении записи WordPress выдает пустую страницу
[post_name] => pri-soxranenii-zapisi-wordpress-vydaet-pustuyu-stranicu
[name] => Проблемы
[object_id] => 2821
[term_id] => 30
)
[77] => stdClass Object
(
[ID] => 2878
[slug] => problems
[date] => 2011-08-06
[post_status] => publish
[post_type] => post
[post_date] => 2011-08-06 13:38:40
[post_author] => 2
[post_title] => Устаревший аргумент функции
[post_name] => ustarevshij-argument-funkcii
[name] => Проблемы
[object_id] => 2878
[term_id] => 30
)
[78] => stdClass Object
(
[ID] => 2948
[slug] => wordpress-recepty
[date] => 2011-08-12
[post_status] => publish
[post_type] => post
[post_date] => 2011-08-12 16:31:10
[post_author] => 2
[post_title] => Все кнопки tinymce
[post_name] => all-tinymce
[name] => WordPress-рецепты
[object_id] => 2948
[term_id] => 13
)
[79] => stdClass Object
(
[ID] => 2987
[slug] => wordpress-recepty
[date] => 2011-08-16
[post_status] => publish
[post_type] => post
[post_date] => 2011-08-16 10:47:56
[post_author] => 2
[post_title] => Как показать шоткод в статье
[post_name] => kak-pokazat-shotkod-v-stat-e
[name] => WordPress-рецепты
[object_id] => 2987
[term_id] => 13
)
[80] => stdClass Object
(
[ID] => 3017
[slug] => plaginy-wordpress
[date] => 2011-09-02
[post_status] => publish
[post_type] => post
[post_date] => 2011-09-02 00:14:30
[post_author] => 2
[post_title] => Плагин Collapsing Categories
[post_name] => plagin-collapsing-categories
[name] => Плагины WordPress
[object_id] => 3017
[term_id] => 26
)
[81] => stdClass Object
(
[ID] => 3045
[slug] => javascript
[date] => 2011-11-25
[post_status] => publish
[post_type] => post
[post_date] => 2011-11-25 18:36:54
[post_author] => 2
[post_title] => Точка в регулярном выражении для многострочного текста в Javascript
[post_name] => multiline-regex-js
[name] => JavaScript
[object_id] => 3045
[term_id] => 37
)
[82] => stdClass Object
(
[ID] => 3057
[slug] => wordpress-recepty
[date] => 2011-12-07
[post_status] => publish
[post_type] => post
[post_date] => 2011-12-07 09:29:44
[post_author] => 2
[post_title] => Запрет индексации отдельных записей блога
[post_name] => zapret-indeksatsii-otdel-ny-h-zapisej-bloga
[name] => WordPress-рецепты
[object_id] => 3057
[term_id] => 13
)
[83] => stdClass Object
(
[ID] => 3086
[slug] => plaginy-wordpress
[date] => 2012-01-18
[post_status] => publish
[post_type] => post
[post_date] => 2012-01-18 16:05:27
[post_author] => 2
[post_title] => Плагины WordPress для показа рекламы
[post_name] => plaginy-wordpress-dlya-pokaza-reklamy
[name] => Плагины WordPress
[object_id] => 3086
[term_id] => 26
)
[84] => stdClass Object
(
[ID] => 3144
[slug] => tools
[date] => 2012-01-26
[post_status] => publish
[post_type] => post
[post_date] => 2012-01-26 18:23:43
[post_author] => 2
[post_title] => Переводчик Google для раздела веб-страницы
[post_name] => perevod-google
[name] => Инструменты веб-мастера
[object_id] => 3144
[term_id] => 21
)
[85] => stdClass Object
(
[ID] => 3147
[slug] => for-search-engines
[date] => 2012-01-25
[post_status] => publish
[post_type] => post
[post_date] => 2012-01-25 10:21:51
[post_author] => 2
[post_title] => С Днем студента на Яндексе!
[post_name] => s-dnem-studenta-na-yandekse
[name] => Поисковые системы
[object_id] => 3147
[term_id] => 28
)
[86] => stdClass Object
(
[ID] => 3148
[slug] => brauzery
[date] => 2012-01-26
[post_status] => publish
[post_type] => post
[post_date] => 2012-01-26 10:25:33
[post_author] => 2
[post_title] => С Яндекс.Интернетом!
[post_name] => s-yandeks-internetom
[name] => Браузеры
[object_id] => 3148
[term_id] => 45
)
)