{"id":325,"date":"2008-08-04T00:17:27","date_gmt":"2008-08-03T21:17:27","guid":{"rendered":"http:\/\/www.sonika.ru\/blog\/?p=325"},"modified":"2017-06-24T13:56:06","modified_gmt":"2017-06-24T10:56:06","slug":"custom-fields-wordpress","status":"publish","type":"post","link":"http:\/\/www.sonika.ru\/blog\/wordpress\/custom-fields-wordpress.htm","title":{"rendered":"Custom fields \u0432 WordPress  \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f"},"content":{"rendered":"<p>\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0441\u0432\u043e\u0438 \u00ab\u0433\u043e\u0442\u043e\u0432\u044b\u0435\u00bb \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 custom fields \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 \u0422\u0435\u043c\u044b, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u00ab\u0432\u043a\u0443\u0441\u043d\u043e\u0441\u0442\u0435\u0439\u00bb, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 <a href=\"http:\/\/codex.wordpress.org\/Using_Custom_Fields\">\u041a\u043e\u0434\u0435\u043a\u0441\u0435 WordPress<\/a> \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u0441\u043a\u0443\u0434\u043d\u043e. <!--more--><\/p>\n<h3>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 custom fields (\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f) \u0432 WordPress?<\/h3>\n<p>\u041c\u043d\u043e\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u0442\u0430\u043a\u043e\u0439 \u0431\u043e\u043a\u0441 \u0432 \u0430\u0434\u043c\u0438\u043d. \u043f\u0430\u043d\u0435\u043b\u0438 \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438\/\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u0441\u0442\u0430 \u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b:<\/p>\n<div id=\"attachment_414\" style=\"width: 160px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-414\" class=\"size-thumbnail wp-image-414\" title=\"Custom fields WordPress 2.3.3 \u0438 \u043d\u0438\u0436\u0435\" src=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-150x150.png\" alt=\"Custom fields WordPress 2.3.3 \u0438 \u043d\u0438\u0436\u0435\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p id=\"caption-attachment-414\" class=\"wp-caption-text\">Custom fields WordPress 2.3.3 \u0438 \u043d\u0438\u0436\u0435<\/p>\n<\/div>\n<div id=\"attachment_415\" style=\"width: 160px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-wp25.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-415\" class=\"size-thumbnail wp-image-415\" title=\"Custom fields WordPress 2.5. \u0438 \u0432\u044b\u0448\u0435\" src=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-wp25-150x150.png\" alt=\"Custom fields WordPress 2.5. \u0438 \u0432\u044b\u0448\u0435\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p id=\"caption-attachment-415\" class=\"wp-caption-text\">Custom fields WordPress 2.5. \u0438 \u0432\u044b\u0448\u0435<\/p>\n<\/div>\n<p style=\"clear:both\">\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 (custom field) \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043a\u043b\u044e\u0447\u0430 (key) \u0438 \u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (value), \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043b\u044e\u0431\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e <strong>\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 (post) \u0438\u043b\u0438 \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b (Page)<\/strong>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435, \u0432 \u0448\u0430\u043f\u043a\u0435 \u0438\u043b\u0438 \u0432 \u043f\u043e\u0434\u0432\u0430\u043b\u0435 \u0431\u043b\u043e\u0433\u0430. \u041f\u043e \u0441\u0443\u0442\u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u0441\u0432\u043e\u0431\u043e\u0434\u0443 \u0432 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0432\u044b\u0439\u0442\u0438 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044b \u043f\u043e\u043b\u044f \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f\/\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u2014 \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u0435\u0439, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0431\u043b\u043e\u0433\u0430 \u0438 \u0432\u0430\u0448\u0435\u0439 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0437\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438 \u0426\u0438\u043a\u043b\u0430 (Loop).<\/p>\n<p style=\"clear:both\">\u0412 \u0438\u043c\u0435\u043d\u0438 \u043a\u043b\u044e\u0447\u0430 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u0443, \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0443, \u0446\u0438\u0444\u0440\u044b, \u043d\u0438\u0436\u043d\u0435\u0435 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u2014 \u043a\u0430\u043a \u0432\u0430\u043c \u0443\u0434\u043e\u0431\u043d\u043e. \u0414\u0435\u0444\u0438\u0441 \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u043a\u043b\u044e\u0447\u0430 (key) \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p style=\"clear:both\">\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0431\u0443\u043a\u0432 \u0432 \u0438\u043c\u0435\u043d\u0438 \u043a\u043b\u044e\u0447\u0430 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435!<\/p>\n<p style=\"clear:both\">\u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u0434\u044b \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0432\u043d\u0435 \u0426\u0438\u043a\u043b\u0430, \u0442\u0430\u043a \u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0435\u0433\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438\/\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043c\u0435\u0436\u0434\u0443 \u0426\u0438\u043a\u043b\u043e\u043c \u0438 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0426\u0438\u043a\u043b\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434 \u00ab\u0415\u0449\u0435 \u0438\u0437 \u044d\u0442\u043e\u0439 \u0440\u0443\u0431\u0440\u0438\u043a\u0438:\u00bb \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e get_posts \u0438\u043b\u0438 query_posts),  \u0442\u043e \u0442\u0443\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043d\u0435\u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0438\u0437 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u043e\u0439 \u0432 \u0442\u0430\u043a\u043e\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0426\u0438\u043a\u043b\u0435, \u043d\u043e \u043d\u0435 \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<h4 style=\"clear:both\">\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<\/h4>\n<ul>\n<li><a href=\"http:\/\/codex.wordpress.org\/Using_Custom_Fields\">Using_Custom_Fields<\/a><\/li>\n<li><a href=\"http:\/\/codex.wordpress.org\/The_Loop\"> The_Loop<\/a><\/li>\n<li> \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438: <a href=\"http:\/\/www.sonika.ru\/blog\/wordpress\/wordpress-cms-custom-fields.htm\">\u0440\u0430\u0437<\/a>, <a href=\"http:\/\/wordpress.org\/extend\/plugins\/custom-write-panel\/\">\u0434\u0432\u0430<\/a> (wp 2.3.3 \u0438 \u043d\u0438\u0436\u0435), <a href=\"http:\/\/wordpress.org\/extend\/plugins\/fresh-page\/\">\u0442\u0440\u0438<\/a> (wp 2.5 \u0438 \u0432\u044b\u0448\u0435)<\/li>\n<li><a href=\"http:\/\/www.sonika.ru\/blog\/wordpress\/template-hierarchy.htm\">\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 WordPress<\/a> \u2014 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043a \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u044e \u0432\u0441\u0435\u043c, \u043a\u0442\u043e \u0441\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u043a\u0443\u0440\u043e\u0447\u0438\u0442\u044c \u0422\u0435\u043c\u0443, \u0430 \u043d\u0438\u0436\u0435 \u043c\u044b \u044d\u0442\u0438\u043c \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f :) \u0415\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e, \u0442\u043e \u0437\u0430 \u0432\u044b\u0432\u043e\u0434 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d <code>single.php<\/code>, \u0430 \u0437\u0430 \u0432\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u2014 <code>page.php<\/code><\/li>\n<\/ul>\n<h3 style=\"clear:both\">\u041f\u0440\u0438\u043c\u0435\u0440 1<\/h3>\n<h4>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c\u0438<\/h4>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 (\u043f\u0440\u0438\u0432\u0435\u0442 \u0436\u0436) \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u043c, \u043d\u043e \u0438 \u0440\u0438\u0441\u0443\u043d\u043a\u043e\u043c \u0438\u043b\u0438 \u0441\u043c\u0430\u0439\u043b\u0438\u043a\u043e\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 <code>moods<\/code> \u0432 \u043f\u0430\u043f\u043a\u0435 <code>wp-content\/uploads\/<\/code>, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0442\u0443\u0434\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 <code>happy.gif<\/code>, <code>sorry.gif<\/code>, <code>eh.gif<\/code> \u0438 \u0442.\u043f., \u0442\u0435\u043f\u0435\u0440\u044c \u0432 \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447 mood<\/p>\n<p>\u0410 \u0432 \u043d\u0443\u0436\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 <code>single.php<\/code> (\u0432 \u043f\u0430\u043f\u043a\u0435 \u0422\u0435\u043c\u044b) \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c:<\/p>\n<pre class=\"slh__php\">\r\n&lt;img src=\"&lt;?php bloginfo('home') ?&gt;\/wp-content\/uploads\/moods\/&lt;?php echo get_post_meta($post-&gt;ID, 'mood', true) ?&gt;.gif\" alt=\"\u043c\u043e\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\" \/&gt;\r\n<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438\/\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u043b\u044e\u0447 <code>mood<\/code> \u0438 \u0432\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>happy<\/code>, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f:<br \/>\n<code><img decoding=\"async\" src=\"http:\/\/site.ru\/wp-content\/uploads\/moods\/happy.gif\" alt=\"\u043c\u043e\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\" \/><\/code><\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 2<\/h3>\n<p>\u042d\u0442\u043e \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e, \u043d\u043e \u0435\u0441\u043b\u0438 \u0432 \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0442\u043e \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0444\u0430\u0439\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0431\u0438\u0442\u0430\u044f:<br \/>\n<code><img decoding=\"async\" src=\"http:\/\/site.ru\/wp-content\/uploads\/moods\/.gif\" alt=\"\u043c\u043e\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\" \/><\/code><\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f  \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c  \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0435\u0433\u043e:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php $image = get_post_meta($post-&gt;ID, 'mood', true); if($image !== '') { ?&gt;\r\n&lt;img src=\"&lt;?php bloginfo('home') ?&gt;\/wp-content\/uploads\/moods\/&lt;?php echo $image ?&gt;.gif\" alt=\"\u043c\u043e\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\" \/&gt;\r\n&lt;?php } ?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 3<\/h3>\n<p>\u041c\u043e\u0436\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f <code>mood<\/code>, \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043e\u0432\u0443\u044e \u043a\u0430\u0442\u0440\u0438\u043d\u043a\u0443 <code>mymood.gif<\/code>:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php $image = get_post_meta($post-&gt;ID, 'mood', $single = true); ?&gt;\r\n&lt;?php if($image !== '') { ?&gt;\r\n&lt;img src=\"&lt;?php bloginfo('home') ?&gt;\/wp-content\/uploads\/moods\/&lt;?php echo $image; ?&gt;\" alt=\"\u043c\u043e\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435\" \/&gt;\r\n&lt;?php }\r\n else { ?&gt;\r\n&lt;img src=\"&lt;?php bloginfo('home') ?&gt;\/wp-content\/uploads\/moods\/mymood.gif\" alt=\"\u0431\u0435\u0437 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f\" \/&gt;\r\n&lt;?php } ?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 4<\/h3>\n<p>\u0412\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u0432\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f <strong>\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/strong>, <strong>css \u043a\u043b\u0430\u0441\u0441\u0430<\/strong> \u0434\u043b\u044f img \u0438 <strong>alt<\/strong>. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0442\u0443\u0442 \u043c\u044b \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u0443\u0440\u043b \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438  \u2014 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u044f, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0443\u0440\u043b \u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u043a\u0430\u043a \u0432\u0430\u043c \u0443\u0433\u043e\u0434\u043d\u043e: \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 <code>happy<\/code>, \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \u0441 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\u043c <code>happy.gif<\/code> \u0438\u043b\u0438 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u0443\u0440\u043b <code>http:\/\/site.ru\/wp-content\/uploads\/moods\/happy.gif<\/code> \u2014 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e\u0431\u044b \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u0441\u0435\u0445 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0439 \u0441\u043e\u0431\u0440\u0430\u043b\u0441\u044f \u043f\u043e\u043b\u043d\u044b\u0439 \u0443\u0440\u043b \u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435.<\/p>\n<p><strong>\u041f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433:<\/strong><\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 <code>\u0443\u0440\u043b \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/code>, <code>css \u043a\u043b\u0430\u0441\u0441<\/code> \u0438  <code>alt \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/code> (\u043a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0432 \u043a\u043b\u044e\u0447\u0430\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0430\u0442\u0438\u043d\u0438\u0446\u0443, \u043d\u043e \u0438 \u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0443 \u0438 \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u2014 \u043a\u0430\u043a \u0432\u0430\u043c \u0443\u0434\u043e\u0431\u043d\u043e):<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php $image = get_post_meta($post-&gt;ID, '\u0443\u0440\u043b \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438', $single = true);\r\n$image_class = get_post_meta($post-&gt;ID, 'css \u043a\u043b\u0430\u0441\u0441', $single = true);\r\n$image_alt = get_post_meta($post-&gt;ID, 'alt \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438', $single = true); ?&gt;\r\n<\/pre>\n<p><strong>\u0412\u0442\u043e\u0440\u043e\u0439 \u0448\u0430\u0433:<\/strong><\/p>\n<p>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f <code>\u0443\u0440\u043b \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/code>, \u0442.\u043a. \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441 \u0431\u0438\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u043e\u0439 (\u043f\u0443\u0441\u0442\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u043b\u044f <code>\u0443\u0440\u043b \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/code>), \u0430 \u0432\u043e\u0442 \u0435\u0441\u043b\u0438 \u0443 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 alt \u0438\u043b\u0438 css \u043a\u043b\u0430\u0441\u0441 \u2014 \u0442\u043e \u0442\u0443\u0442 \u0432 \u043e\u0431\u0449\u0435\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e \u043d\u0435 \u0441\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php if($image !== '') { ?&gt;\r\n&lt;img src=\"&lt;?php echo $image; ?&gt;\" alt=\"\" \/&gt; class=\"&lt;?php if($image_class !== '') { echo $image_class; } else { echo \"alignleft\"; } ?&gt;\" \r\nalt=\"&lt;?php if($image_alt !== '') { echo $image_alt; } else { echo the_title(); } ?&gt;\" \/&gt;\r\n&lt;?php }\r\nelse { echo '\u0444\u043e\u0442\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442'; } ?&gt;\r\n<\/pre>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c: \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0443\u0440\u043b \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 (\u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435), \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u043f\u043e\u043b\u044f css \u043a\u043b\u0430\u0441\u0441, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e, \u0442\u043e css \u043a\u043b\u0430\u0441\u0441 \u00ab\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u00bb = <code>alignleft<\/code>. \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441 alt \u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435, \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f alt \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0435\u0433\u043e, \u0438\u043d\u0430\u0447\u0435 \u0432\u043c\u0435\u0441\u0442\u043e \u043d\u0435\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p>\u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b:<\/p>\n<div id=\"attachment_407\" style=\"width: 160px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-3picture1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-407\" class=\"size-thumbnail wp-image-407\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440 4\" src=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-3picture1-150x150.png\" alt=\"\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p id=\"caption-attachment-407\" class=\"wp-caption-text\">\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438<\/p>\n<\/div>\n<div id=\"attachment_408\" style=\"width: 160px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-3picture2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-408\" class=\"size-thumbnail wp-image-408\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440 4\" src=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-3picture2-150x150.png\" alt=\"\u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p id=\"caption-attachment-408\" class=\"wp-caption-text\">\u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f<\/p>\n<\/div>\n<div id=\"attachment_409\" style=\"width: 160px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-3picture3.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-409\" class=\"size-thumbnail wp-image-409\" title=\"\u041f\u0440\u0438\u043c\u0435\u0440 4\" src=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-3picture3-150x150.png\" alt=\"\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p id=\"caption-attachment-409\" class=\"wp-caption-text\">\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c<\/p>\n<\/div>\n<h4 style=\"clear:both\">\u0418\u0442\u0430\u043a<\/h4>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u2014 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 (\u043d\u0438 \u0440\u0430\u0437\u0443 \u043d\u0435 \u0432\u0438\u0434\u0435\u043b\u0430, \u0447\u0442\u043e\u0431\u044b \u043a\u0442\u043e-\u0442\u043e \u0432 WordPress \u0431\u043b\u043e\u0433\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435, \u043a\u0430\u043a \u0432 \u0436\u0436) \u0438 \u0438\u043b\u043b\u044e\u0441\u0442\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438 \u0438 \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 5<\/h3>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0447\u0443\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435.<\/p>\n<p>\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c,  \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0432 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 (\u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b) \u0441\u0441\u044b\u043b\u043a\u0443, \u0442.\u0435. \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 2 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u044f: \u0443\u0440\u043b \u0441\u0441\u044b\u043b\u043a\u0438 \u0438 \u0430\u043d\u043a\u043e\u0440 \u0441\u0441\u044b\u043b\u043a\u0438. \u0410\u043d\u043a\u043e\u0440 \u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043a\u0438 \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442, \u0430 \u0432\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430 \u0431\u0435\u0437 \u0430\u043d\u043a\u043e\u0440\u0430 \u2014 \u044d\u0442\u043e \u0443\u0436\u0435 \u043d\u0435\u0445\u043e\u0440\u043e\u0448\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430 \u00ab\u0430\u043d\u043a\u043e\u0440 \u0441\u0441\u044b\u043b\u043a\u0438\u00bb:<\/p>\n<ul>\n<li>\u0435\u0441\u043b\u0438 \u0430\u043d\u043a\u043e\u0440 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0430 \u0443\u0440\u043b \u2014 \u043d\u0435\u0442, \u0442\u043e \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u043d\u043a\u043e\u0440 (\u0442.\u0435. \u043f\u0440\u043e\u0441\u0442\u043e  \u0442\u0435\u043a\u0441\u0442)<\/li>\n<li>\u0435\u0441\u043b\u0438 \u0430\u043d\u043a\u043e\u0440 \u0438 \u0443\u0440\u043b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442, \u0442\u043e \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430<\/li>\n<li>\u0435\u0441\u043b\u0438 \u0430\u043d\u043a\u043e\u0440\u0430 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0430 \u0443\u0440\u043b \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d, \u0442\u043e \u043d\u0435 \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043d\u0438\u0447\u0435\u0433\u043e \u2014 \u043a\u043e\u043c\u0443 \u043d\u0443\u0436\u043d\u0430 \u0441\u0441\u044b\u043b\u043a\u0430 \u0431\u0435\u0437 \u0442\u0435\u043a\u0441\u0442\u0430?<\/li>\n<\/ul>\n<pre class=\"slh__php\">\r\n&lt;?php\r\n$url = get_post_meta($post-&gt;ID, 'url \u0441\u0441\u044b\u043b\u043a\u0438', true);\r\n$ancor = get_post_meta($post-&gt;ID, '\u0430\u043d\u043a\u043e\u0440 \u0441\u0441\u044b\u043b\u043a\u0438', true);\r\n?&gt;\r\n&lt;?php if($ancor !== '') { ?&gt;\r\n&lt;?php if($url !== '') { ?&gt;\r\n&lt;a href=\"&lt;?php echo $url ?&gt;\"&gt;\r\n&lt;?php } ?&gt;\r\n&lt;?php echo $ancor ?&gt;\r\n&lt;?php if($url !== '') echo '&lt;\/a&gt;'; ?&gt;\r\n&lt;?php } ?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 6<\/h3>\n<h4>\u041e\u0434\u0438\u043d \u043a\u043b\u044e\u0447 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-393\" title=\"custom-field-href-ancor\" src=\"http:\/\/www.sonika.ru\/blog\/wp-content\/uploads\/2008\/08\/custom-field-href-ancor.png\" alt=\"\" width=\"141\" height=\"101\" \/> \u0415\u0441\u043b\u0438 \u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u043e\u0434\u0438\u043d \u043a\u043b\u044e\u0447 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0443 \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430, \u0442\u043e \u0432\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u2014 \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430. \u041a\u0430\u043a \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u0438\u0437 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 custom fields \u0432 \u0430\u0434\u043c\u0438\u043d. \u043f\u0430\u043d\u0435\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a-\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0431\u043e\u0440 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0441\u043f\u0440\u0430\u0432\u0430 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043a\u043b\u044e\u0447\u0430 \u00ab\u0412 \u043d\u043e\u043c\u0435\u0440\u0435\u00bb \u0441\u043e\u0437\u0434\u0430\u043d \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u0430 <\/a><a href=\"http:\/\/wordpress.org\/extend\/plugins\/custom-write-panel\/\">Custom Write Panel<\/a> (\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043e wp 2.3.3 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0434\u043b\u044f wp 2.5 \u0438 \u0432\u044b\u0448\u0435 \u0435\u0441\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433 \u044d\u0442\u043e\u0433\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u2014 <a href=\"http:\/\/wordpress.org\/extend\/plugins\/fresh-page\/\">FreshPost<\/a>).<\/p>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u043a\u043e\u0434\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0430 \u00ab\u0412 \u043d\u043e\u043c\u0435\u0440\u0435\u00bb (\u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u00ab\u0412 \u043d\u043e\u043c\u0435\u0440\u0435\u00bb \u0438 \u00ab\u0432 \u043d\u043e\u043c\u0435\u0440\u0435\u00bb \u2014 \u044d\u0442\u043e \u0440\u0430\u0437\u043d\u044b\u0435 \u043a\u043b\u044e\u0447\u0438, \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0431\u0443\u043a\u0432 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435!), \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php \r\n$inroom = get_post_meta($post-&gt;ID, '\u0412 \u043d\u043e\u043c\u0435\u0440\u0435', false);\r\nif ($inroom[0]=='') { }\r\nelse{ echo implode(', ',$inroom); } \r\n?&gt;\r\n<\/pre>\n<p>UPD \u0414\u0440\u0443\u0433\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0430 songs \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043d\u0435\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php $songs = get_post_meta($post-&gt;ID, 'songs', false); ?&gt;\r\n&lt;h3&gt;\u0421\u043b\u0443\u0448\u0430\u044e \u0442\u0440\u0435\u043a\u0438:&lt;\/h3&gt;\r\n&lt;ul&gt;\r\n&lt;?php foreach($songs as $song) { echo '&lt;li&gt;'.$song.'&lt;\/li&gt;'; } \r\n&lt;\/ul&gt;\r\n?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 7<\/h3>\n<h4>\u0412\u044b\u0432\u043e\u0434\u0438\u043c nextgen gallery \u0432 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435<\/h4>\n<p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430  \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u043e\u0441\u0442\u0443 \u0441\u0432\u043e\u044e \u0433\u0430\u043b\u0435\u0440\u0435\u044e \u0432 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435.  \u0427\u0442\u043e \u043d\u0430\u043c \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0434\u043e? \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0433\u0430\u043b\u0435\u0440\u0435\u044e (\u0440\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e Nextgen Gallery) \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a\u043e\u0439 ID \u0435\u0439 \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u044e\u0447 <code>gallery-id<\/code> \u0438 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c ID \u0433\u0430\u043b\u0435\u0440\u0435\u0438, \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e!<\/p>\n<p>\u0412 <code>sidebar.php<\/code>, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 (\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043d\u0435\u0433\u043e <a href=\"http:\/\/forum.maxsite.org\/viewtopic.php?id=2569\">\u041c\u0430\u043a\u0441\u0438\u043c\u0443<\/a>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u0438\u043c\u043e \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e \u00ab\u0441\u0442\u0440\u0430\u0445\u0443\u0435\u0442\u00bb \u043d\u0430\u0441 \u043e\u0442 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f ID, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0446\u0438\u0444\u0440, \u043d\u043e \u043d\u0435 \u0432 \u043a\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u043a\u0432:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php $myid = $wp_query-&gt;post-&gt;ID;\r\n$my_meta = get_post_custom_values( 'gallery-id', $myid );\r\nif ( $my_meta) {\r\necho '&lt;strong&gt;\u0413\u0430\u043b\u0435\u0440\u0435\u044f&lt;\/strong&gt;: ';\r\nforeach ( $my_meta as $val_key =&gt; $val_val )\r\n$val_val = (int) trim( $val_val );\r\necho nggShowGallery($val_val);\r\n} ?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 8<\/h3>\n<h4>\u041a\u0430\u0436\u0434\u043e\u0439 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u2014 \u0441\u0432\u043e\u044f \u0448\u0430\u043f\u043a\u0430, \u0438\u043b\u0438 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u0431\u043e\u043a\u043e\u0432\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0435 \u0438\u043b\u0438 \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e!<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0437\u0430\u043f\u0438\u0441\u0438 (\u043f\u043e\u0441\u0442\u0430) \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f <code>\u0448\u0430\u043f\u043a\u0430<\/code> (\u043f\u043e\u043b\u043d\u044b\u0439 \u0443\u0440\u043b \u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435), \u0442\u043e \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430-\u0448\u0430\u043f\u043a\u0430<code class=\"php\"> header.jpg<\/code> \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 <code>img<\/code> \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0422\u0435\u043c\u044b, \u0430 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u0442\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430-\u0448\u0430\u043f\u043a\u0430 \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u044d\u0442\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0448\u0430\u043f\u043a\u0438:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php\r\n if (is_single() || is_page() ) {\r\n$shapka = trim(get_post_meta($post-&gt;ID, '\u0448\u0430\u043f\u043a\u0430', true));\r\nif ( strlen($shapka) &gt; 0 )\r\necho '&lt;img src=\"' . $shapka . '\" alt=\"\" width=\"530px\" height=\"240px\" \/&gt;';\r\nelse  echo '&lt;img src=\"' . TEMPLATEPATH . '\/img\/header.jpg\" alt=\"\" width=\"530px\" height=\"240px\" \/&gt;'; }\r\nelse  { echo '&lt;img src=\"' . TEMPLATEPATH . '\/img\/header.jpg\" alt=\"\" width=\"530px\" height=\"240px\" \/&gt;'; }\r\n?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 9<\/h3>\n<h4>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0432 title \u0437\u0430\u043f\u0438\u0441\u0438<\/h4>\n<p>\u041f\u0440\u0438\u0432\u043e\u0436\u0443 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u0432\u043e\u0439 \u043b\u044e\u0431\u0438\u043c\u044b\u0439 title \u0434\u043b\u044f WordPress, \u0432\u044b\u0432\u043e\u0434 \u0434\u043e\u043f. \u0441\u043b\u043e\u0432 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 (\u043f\u043e\u0441\u0442\u0430) \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <code>seo-title:<\/code><\/p>\n<pre class=\"slh__php\">\r\n&lt;?php\r\n if (is_home () ) {  bloginfo('name'); }\r\n elseif ( is_category() ) { single_cat_title(); }\r\nelseif (is_single() ) { wp_title(' '); echo ' '; single_cat_title(); $key=\"seo-title\"; echo get_post_meta($post-&gt;;ID, $key, true); }\r\nelseif (is_search() ) { bloginfo('name'); echo \" \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430: \"; echo wp_specialchars($s);}\r\nelseif (is_tag() ) { echo \"\u0422\u0435\u0433: \"; wp_title(' '); echo '  '; bloginfo('name'); }\r\nelse { wp_title(); }\r\n ?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 10<\/h3>\n<h4>\u0412\u044b\u0432\u043e\u0434 google map \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e custom fields<\/h4>\n<p>\u0421\u043f\u043e\u0441\u043e\u0431, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"http:\/\/www.traderelic.com\/tutorials\/wordpress-custom-fields-google-maps-api\/\">Custom Fields &amp; Google Maps API<\/a> (\u0430\u043d\u0433\u043b.) \u044f \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0430 \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<br \/>\n\u0421\u0443\u0442\u044c \u0435\u0433\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 <code>gps<\/code> \u0438 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430 \u043c\u0430\u0440\u043a\u0435\u0440\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>43.743321,39.721069<\/code> \u0434\u043b\u044f \u0421\u043e\u0447\u0438. \u0421\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u044b \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 11<\/h3>\n<h4>\u0426\u0438\u043a\u043b (Loop), \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 custom fields<\/h4>\n<p>\u0418\u0437 \u041a\u043e\u0434\u0435\u043a\u0441\u0430 WordPress <a href=\"http:\/\/codex.wordpress.org\/Displaying_Posts_Using_a_Custom_Select_Query#Query_based_on_Custom_Field_and_Category\">\u043f\u0440\u0438\u043c\u0435\u0440 \u0426\u0438\u043a\u043b\u0430<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u044b \u0438\u0437 \u0440\u0443\u0431\u0440\u0438\u043a \u0441 ID=1,2 \u0438 3, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 <code>paragraf<\/code>, \u043f\u043e\u0441\u0442\u044b \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043f\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u043a\u043b\u044e\u0447\u0430 <code>paragraf<\/code>:<\/p>\n<pre class=\"slh__php\">\r\nSELECT * FROM $wpdb-&gt;posts\r\nLEFT JOIN $wpdb-&gt;postmeta ON($wpdb-&gt;posts.ID = $wpdb-&gt;postmeta.post_id)\r\nLEFT JOIN $wpdb-&gt;term_relationships ON($wpdb-&gt;posts.ID = $wpdb-&gt;term_relationships.object_id)\r\nLEFT JOIN $wpdb-&gt;;term_taxonomy ON($wpdb-&gt;term_relationships.term_taxonomy_id = $wpdb-&gt;term_taxonomy.term_taxonomy_id)\r\nWHERE $wpdb-&gt;term_taxonomy.term_id = 1,2,3\r\nAND $wpdb-&gt;term_taxonomy.taxonomy = 'category'\r\nAND $wpdb-&gt;posts.post_status = 'publish'\r\nAND $wpdb-&gt;postmeta.meta_key = 'paragraf'\r\nORDER BY $wpdb-&gt;postmeta.meta_value ASC\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 12<\/h3>\n<h4>\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 custom fields.<\/h4>\n<p>\u042d\u0442\u0438\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0441 \u043d\u0430\u043c\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0441\u044f <a href=\"http:\/\/magazeta.com\/\">\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u041c\u0430\u043b\u044c\u0446\u0435\u0432<\/a> (mayuxi).<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u044b \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u0435\u043c <code>rating<\/code>, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, \u0443 \u0437\u0430\u043f\u0438\u0441\u0438 \u00ab\u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u0438\u0440!\u00bb \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437. \u043f\u043e\u043b\u044f <code>rating<\/code> \u0440\u0430\u0432\u043d\u043e <code>3<\/code>, \u0443 \u0437\u0430\u043f\u0438\u0441\u0438 \u00ab\u041a\u0430\u043a \u0434\u0438\u043b\u0430?\u00bb <code>69<\/code>, \u0430 \u0443 \u0437\u0430\u043f\u0438\u0441\u0438 \u00ab\u0410\u0445\u0442\u0443\u043d\u0433, \u043c\u0443\u0445\u0442\u0430\u0440\u00bb <code>1<\/code>, \u0442\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u0432\u044b\u0432\u0435\u0434\u0443\u0442\u0441\u044f \u0432 \u0442\u0430\u043a\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435:<\/p>\n<ol>\n<li>\u00ab\u0410\u0445\u0442\u0443\u043d\u0433, \u043c\u0443\u0445\u0442\u0430\u0440\u00bb<\/li>\n<li>\u00ab\u041f\u0440\u0438\u0432\u0435\u0442, \u043c\u0438\u0440!\u00bb<\/li>\n<li>\u00ab\u041a\u0430\u043a \u0434\u0438\u043b\u0430?\u00bb<\/li>\n<\/ol>\n<pre class=\"slh__php\">\r\n&lt;?php\r\nusort($posts, 'rating_sort');\r\nfunction rating_sort($a, $b) {\r\n$ar = get_post_meta($a-&gt;ID, 'rating', true);\r\n$br = get_post_meta($b-&gt;ID, 'rating', true);\r\nif ($ar == $br) return 0;\r\nreturn ($ar &lt; $br) ? -1 : 1;\r\n}\r\nif (have_posts()) : while (have_posts()) : the_post();\r\n?&gt;\r\n\u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0426\u0438\u043a\u043b, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0441\u043c. \u0432\u044b\u0448\u0435\r\n<\/pre>\n<p>\u0415\u0449\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0446\u0438\u043a\u043b\u043e\u0432 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c custom fields \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <strong>\u00ab<a href=\"http:\/\/www.sonika.ru\/blog\/wordpress\/chekbox-publish-in-homepage.htm\">\u0427\u0435\u043a\u0431\u043e\u043a\u0441 \u00ab\u041e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0439<\/a>\u00bb<\/strong><\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 13<\/h3>\n<h4>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c css \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 (\u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438)<\/h4>\n<p>\u0422\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435<code class=\"php\"> &lt;?php while (have_posts()) : the_post(); ?&gt;<\/code> \u0432 index.php \u0438\u043b\u0438 \u0432 single.php \u2014 \u0431\u0435\u0437 \u0443\u0441\u043b\u043e\u0432\u0438\u044f  if (is_single())<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php if (is_single()) { ?&gt;\r\n&lt;?php $newcss = get_post_meta($post -&gt;ID, 'post-css', true); ?&gt;\r\n&lt;?php } \/\/ \u043a\u043e\u043d\u0435\u0446 \u0443\u0441\u043b\u043e\u0432\u0438\u044f is_single ?&gt;\r\n<\/pre>\n<p>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435: <code>post-css<\/code>, \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0438\u0448\u0435\u043c css \u043f\u0440\u0430\u0432\u0438\u043b\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p><code>body {background:#ff0000!important;} .post {color:Green!important; font-size:14px} .entry p strong {color:#ccc!important;}<\/code><\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 14<\/h3>\n<h4>\u041e\u0440\u0433\u0430\u043d\u0438\u0437\u0443\u0435\u043c \u043f\u043e\u0441\u0442\u044b \u0432 \u0441\u0435\u0440\u0438\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e custom fields<\/h4>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a href=\"http:\/\/justintadlock.com\/archives\/2007\/11\/01\/wordpress-custom-fields-listing-a-series-of-posts\">WordPress Custom Fields: Listing A Series Of Posts<\/a><\/p>\n<p>\u0427\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u0435\u0440\u0438\u044f? \u042d\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u0442\u043e\u0432 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u0432 \u043e\u0431\u0449\u0438\u0439 \u0441\u0435\u0442,  \u0438 \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u0437 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0440\u0438\u0438 \u0432\u044b\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u043e\u0441\u0442\u044b \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438. \u0410\u043d\u0430\u043b\u043e\u0433 \u2014 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0442\u0438\u043f\u0430 related posts. \u041e\u0442\u043b\u0438\u0447\u0438\u0435 \u2014 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0442\u0438\u043f\u0430 related posts \u043a\u0430\u043a \u0431\u044b \u0441\u0430\u043c\u0438 \u00ab\u0440\u0435\u0448\u0430\u044e\u0442\u00bb \u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 (\u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0438) \u0434\u043b\u044f  \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0430, \u0430 \u0442\u0443\u0442 \u043c\u044b \u0438\u043c\u0435\u0435\u043c \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0441\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0441\u0435\u0440\u0438\u0438.<\/p>\n<p>\u0422.\u0435. \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 <code>\u0421\u0435\u0440\u0438\u044f<\/code>, \u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0435\u043c\u0443 \u043f\u0438\u0448\u0435\u043c \u043d\u0430\u0448\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0438\u0438.<\/p>\n<p>\u041a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 <code>sidebar.php<\/code><\/p>\n<pre class=\"slh__php\">\r\n&lt;?php if (is_single() ) {\r\n \/\/ \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u043b\u0438 \u043f\u043e\u0441\u0442 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0435\u0440\u0438\u0438\r\n\/\/ \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u043c\u044f \u0441\u0435\u0440\u0438\u0438 \r\n($series_name = get_post_meta($post-&gt;ID, '\u0421\u0435\u0440\u0438\u044f', $single = true);\r\n\/\/ \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0442 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438\r\nif($series_name !== '') {\r\n\/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0438\u0438\r\necho '&lt;div class=\"single-offers\"&gt;&lt;h4&gt;' . $series_name . ' \u2014 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0442\u0430\u043a\u0436\u0435:&lt;\/h4&gt;';\r\n\/\/ \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 \u0431\u0430\u0437\u0443 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u043e\u0441\u0442\u043e\u0432 \u0438\u0437 \u044d\u0442\u043e\u0439 \u0441\u0435\u0440\u0438\u0438\r\n$query_string = \"\r\nSELECT *\r\nFROM $wpdb-&gt;posts\r\nLEFT JOIN $wpdb-&gt;postmeta ON ($wpdb-&gt;posts.ID = $wpdb-&gt;postmeta.post_id)\r\nWHERE $wpdb-&gt;postmeta.meta_key = '\u0421\u0435\u0440\u0438\u044f'\r\nAND $wpdb-&gt;postmeta.meta_value = '$series_name'\r\nAND $wpdb-&gt;posts.post_status = 'publish'\r\nAND $wpdb-&gt;posts.post_type = 'post'\r\nORDER BY $wpdb-&gt;posts.post_date ASC\";\r\n\/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0441\u0442\u043e\u0432\r\n$series_posts = $wpdb-&gt;get_results($query_string, OBJECT);\r\nif ($series_posts):\r\necho '&lt;ul&gt;';\r\nforeach ($series_posts as $post):\r\necho '&lt;li&gt;'; ?&gt;\r\n&lt;a title=\"&lt;?php echo the_title(); ?&gt;\" href=\"&lt;?php echo the_permalink(); ?&gt;\"&gt;\r\n&lt;?php echo the_title(); echo '&lt;\/a&gt;&lt;\/li&gt;';\r\nendforeach;\r\necho '&lt;\/ul&gt;&lt;\/div&gt;';\r\nendif;\r\nrewind_posts();\r\n}\r\n\/\/ \u0432\u0441\u0435, \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u0441 \u043f\u043e\u0441\u0442\u0430\u043c\u0438 \u0432 \u0441\u0435\u0440\u0438\u0438\r\n}\r\n\/\/ \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 is_single()\r\n?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 15<\/h3>\n<p>\u0426\u0438\u043a\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u043e\u0441\u0442\u044b \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438, \u0442.\u0435. \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0441\u0442\u043e\u0432, \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u0438\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 (\u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0438\u043c\u0435\u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 <code>Links<\/code> \u0438 <code>MyData<\/code>).<\/p>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a href=\"http:\/\/weblogtoolscollection.com\/archives\/2008\/04\/13\/how-to-only-retrieve-posts-with-custom-fields\/\">How to Only Retrieve Posts With Custom Fields<\/a><\/p>\n<p>\u0414\u0443\u043c\u0430\u044e \u043d\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u0434, \u0441\u043c. \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0444\u0430\u0439\u043b\u043e\u0432-\u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 <code>sidebar.php<\/code> \u0438 <code>functions.php<\/code> \u00abDownloadable Code for Posts and Custom Fields\u00bb<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 16<\/h3>\n<h4>\u0420\u0430\u0437\u043d\u044b\u0435 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u044b \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0435\u0439 (\u043f\u043e\u0441\u0442\u043e\u0432)<\/h4>\n<p>(\u0443\u0441\u043b\u043e\u0432\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u044b \u0432 \u043f\u0430\u043f\u043a\u0435 \u0422\u0435\u043c\u044b  \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043b\u0435\u0439\u0430\u0443\u0442\u0430 \u0431\u043b\u043e\u0433\u0430 \u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c, \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439: <code>sidebar.php<\/code>, <code>sidebar-var2.php<\/code> \u0438 <code>sidebar-var3.php<\/code>). \u0421\u043c. \u0432 <a href=\"http:\/\/codex.wordpress.org\/Include_Tags#The_Sidebar_Template\">\u043a\u043e\u0434\u0435\u043a\u0441\u0435 \u043f\u0440\u043e get_sidebar<\/a>.<\/p>\n<p>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0444\u0430\u0439\u043b\u0430\u0445 \u0422\u0435\u043c\u044b \u0432\u044b\u0437\u043e\u0432 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0430:<br \/>\n<code lang=\"php\"><?php get_sidebar(); ?><\/code><\/p>\n<p>\u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0435\u0433\u043e \u043d\u0430:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php $sidebar = get_post_meta($post -&gt;ID, \"sidebar\", true); get_sidebar($sidebar); ?&gt;\r\n<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 <code>sidebar<\/code>, \u0430 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0438\u0448\u0435\u0442\u0435 \u0435\u043c\u0443 \u0447\u0430\u0441\u0442\u044c \u0438\u043c\u0435\u043d\u0438  (\u043f\u043e\u0441\u043b\u0435 <strong>sidebar-<\/strong>) \u0442\u043e\u0433\u043e \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435 \u044d\u0442\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438:  <code>var2<\/code> \u0438\u043b\u0438 <code>var3<\/code>. \u0415\u0441\u043b\u0438 \u0443 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f <code>sidebar<\/code>, \u0442\u043e \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u0441\u0430\u0439\u0434\u0431\u0430\u0440 \u00ab\u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e\u00bb <code>sidebar.php<\/code><\/p>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a href=\"http:\/\/www.wprecipes.com\/wordpress-hack-choose-the-sidebar-to-use-post-by-post\">WordPress hack: Choose the sidebar to use, post by post<\/a><\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 17<\/h3>\n<h4>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0447\u0442\u043e-\u043b\u0438\u0431\u043e \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 custom field<\/h4>\n<pre class=\"slh__php\">\r\n&lt;?php $value = get_post_meta($post -&gt;ID, 'hobbies', true);\r\nif($value == 'gaming') {\r\necho '&lt;a href=\"http:\/\/domain.tld\/gaming\/\"&gt;Gaming Stuff&lt;\/a&gt;';\r\n} elseif($value == 'sleeping') {\r\necho '&lt;a href=\"http:\/\/domain.tld\/sleeping\/\"&gt;Nap Supplies&lt;\/a&gt;';\r\n} elseif($value == 'eating') {\r\necho '&lt;a href=\"http:\/\/domain.tld\/eating\/\"&gt;Dieting Advice&lt;\/a&gt;';\r\n} else {\r\necho '&lt;a href=\"http:\/\/domain.tld\/\"&gt;Home Page&lt;\/a&gt;';\r\n}\r\n?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 18<\/h3>\n<h4>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0434\u043b\u044f more<\/h4>\n<p>\u0418\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0439 more (\u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u00ab\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435\u00bb) \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u0412\u0440\u0443\u0447\u043d\u0443\u044e \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a: <code>&lt;!--more \u0423\u0437\u043d\u0430\u0442\u044c \u0447\u0435\u043c \u0434\u0435\u043b\u043e \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c!--&gt;<\/code>, \u043d\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u0435\u0436\u0438\u043c \u00ab\u043a\u043e\u0434\u00bb \u0432 \u0432\u0438\u0437. \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435.<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c custom field: \u0438\u0449\u0435\u043c \u0432 <code>single.php<\/code> (\u0444\u0430\u0439\u043b\u0435, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0435\u043c \u0437\u0430 \u0432\u044b\u0432\u043e\u0434 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438) \u0441\u0442\u0440\u043e\u0447\u043a\u0443<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php the_content(\"\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 \u00bb\"); ?&gt;\r\n<\/pre>\n<p>\u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php $custommore = get_post_meta($post -&gt;ID, 'custom_more', true); ?&gt;\r\n&lt;?php if (!$custommore) { $custommore = '\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 \u00bb'; } ?&gt;\r\n&lt;?php the_content($custommore); ?&gt;\r\n<\/pre>\n<p>\u0412 \u0437\u0430\u043f\u0438\u0441\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043b\u044e\u0447 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f <code>custom_more<\/code> \u0438 \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0438\u0448\u0435\u043c \u0441\u0432\u043e\u0439 \u0442\u0435\u043a\u0441\u0442.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 19<\/h3>\n<h4>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u043e\u0441\u0442\u044b \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u043e\u043b\u0435\u043c + \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f<\/h4>\n<p>\u041d\u0430\u0448\u043b\u0430 \u0432 <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/query_posts#Custom_Field_Parameters\">\u041a\u043e\u0434\u0435\u043a\u0441\u0435<\/a> \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0434\u043b\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u0432 query_posts<\/p>\n<p><code>meta_compare<\/code>= \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0434\u043b\u044f <code>meta_value<\/code>=, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e '<code>=<\/code>', \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f '<code>!=<\/code>', '<code>&gt;<\/code>', '<code>&gt;=<\/code>', '<code>&lt;<\/code>', \u0438 '<code>&lt;=<\/code>'<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<p>\u0412\u044b\u0432\u043e\u0434 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0441 \u043a\u043b\u044e\u0447\u0435\u043c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044f <code>color<\/code> \u0438 \u043b\u044e\u0431\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u043a\u0440\u043e\u043c\u0435 <code>blue<\/code>:<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php query_posts('post_type=any&meta_key=color&meta_compare=!=&meta_value=blue'); ?&gt;\r\n<\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0441 \u043a\u043b\u044e\u0447\u0435\u043c  <code>miles<\/code> \u0438 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c 22 (\u043d\u0430 \u0437\u0430\u043c\u0435\u0442\u043a\u0443: \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 99 \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c 100, \u0442.\u043a. \u043f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e \u043d\u0435 \u0447\u0438\u0441\u043b\u0430; \u0432\u044b\u0445\u043e\u0434: \u0434\u0430\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a : 001, 055, 099):<\/p>\n<pre class=\"slh__php\">\r\n&lt;?php query_posts('meta_key=miles&meta_compare=&lt;=&meta_value=22'); ?&gt;\r\n<\/pre>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440 20<\/h3>\n<h4>\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u043e\u0441\u0442\u044b \u0441 2 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438 \u0438 \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438<\/h4>\n<p>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a href=\"http:\/\/kovshenin.com\/archives\/customize-posts-order-in-wordpress-via-custom-fields\/\">Customize Posts Order in WordPress via Custom Fields<\/a><\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0426\u0438\u043a\u043b\u0430 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u0441\u0435\u0445 \u043f\u043e\u0441\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 2 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u044f \u0438 \u0438\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f:  <strong>'\u043a\u043b\u044e\u04471' \u2014>  '\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043a\u043b\u044e\u0447\u04301'<\/strong> \u0438 <strong>'\u043a\u043b\u044e\u04472' \u2014> '\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043a\u043b\u044e\u0447\u04302'<\/strong><\/p>\n<pre class=\"slh__php\">\r\n&lt;?php $querystr = \"\r\nSELECT wposts.*\r\nFROM $wpdb-&gt;posts wposts, $wpdb-&gt;postmeta wpostmeta, $wpdb-&gt;postmeta wpostmeta2\r\nWHERE wposts.ID = wpostmeta.post_id\r\nAND wposts.ID = wpostmeta2.post_id\r\nAND wpostmeta.meta_key = '\u043a\u043b\u044e\u04471'\r\nAND wpostmeta.meta_value = '\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043a\u043b\u044e\u0447\u04301'\r\nAND wpostmeta2.meta_key = '\u043a\u043b\u044e\u04472'\r\nAND wpostmeta2.meta_value = '\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043a\u043b\u044e\u0447\u04302'\r\nAND wposts.post_type = 'post'\r\nAND wposts.post_status = 'publish'\r\n\";\r\n$pageposts = $wpdb-&gt;get_results($querystr, OBJECT);\r\nif ($pageposts)\r\n{\r\nforeach ($pageposts as $post)\r\n{\r\nsetup_postdata($post);\r\n?&gt;\r\n&lt;!--\u0432\u044b\u0432\u043e\u0434 \u043f\u043e\u0441\u0442\u043e\u0432--&gt;\r\n&lt;div&gt;id=\"post-&lt;?php the_ID(); ?&gt;\"&gt;\r\n&lt;h2&gt;&lt;a title=\"Permanent Link to &lt;?php the_title_attribute(); ?&gt;\" rel=\"bookmark\" href=\"&lt;?php the_permalink() ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\r\n&lt;div class=\"entry\"&gt;&lt;?php the_content('Read the rest of this entry &raquo;'); ?&gt;&lt;\/div&gt;\r\n&lt;p class=\"postmetadata\"&gt;\r\n&lt;?php the_tags('Tags: ', ', ', '&lt;br \/&gt;'); ?&gt; Posted in &lt;?php the_category(', ') ?&gt; |\r\n&lt;?php edit_post_link('Edit', '', ' | '); ?&gt; &lt;?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?&gt;\r\n&lt;\/div&gt;\r\n&lt;!--\u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u0432\u044b\u0432\u043e\u0434 \u043f\u043e\u0441\u0442\u043e\u0432--&gt;\r\n&lt;?php  }  }  ?&gt;\r\n<\/pre>\n<h3>\u041d\u0443\u0436\u043d\u044b\u0435 \u0432\u0435\u0449\u0438<\/h3>\n<p>\u041f\u043b\u0430\u0433\u0438\u043d <a href=\"http:\/\/wordpress.org\/extend\/plugins\/mass-custom-fields-manager\/\">Mass Custom Fields Manager<\/a> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0437 \u0430\u0434\u043c\u0438\u043d\u043a\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u043e\u043b\u044f\u043c\u0438, \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \/ \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0447\u0442\u043e\u0431\u044b \u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 custom filelds, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0432\u0441\u0435 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0432 \u0430\u0434\u043c\u0438\u043d. \u043f\u0430\u043d\u0435\u043b\u0438 \u0412\u043e\u0440\u0434\u041f\u0440\u0435\u0441\u0441\u0430.<\/p>\n<p>\u041f\u0440\u043e <a href=\"http:\/\/www.sonika.ru\/blog\/wordpress\/wordpress-cms-custom-fields.htm\">\u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u0441 custom fields<\/a> \u0438 \u043e\u0431\u043b\u0435\u0433\u0447\u0430\u044e\u0449\u0438\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439  \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \/ \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u044f \u0443\u0436\u0435 \u043f\u0438\u0441\u0430\u043b\u0430.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0441\u0432\u043e\u0438 \u00ab\u0433\u043e\u0442\u043e\u0432\u044b\u0435\u00bb \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 custom fields \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0430\u0445 \u0422\u0435\u043c\u044b, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u00ab\u0432\u043a\u0443\u0441\u043d\u043e\u0441\u0442\u0435\u0439\u00bb, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 \u041a\u043e\u0434\u0435\u043a\u0441\u0435 WordPress \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u0441\u043a\u0443\u0434\u043d\u043e.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[37,31,28,30],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-custom-fields","tag-loop","tag-wordpress-kak-cms","tag-wp-tricks"],"_links":{"self":[{"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/comments?post=325"}],"version-history":[{"count":41,"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":401,"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/posts\/325\/revisions\/401"}],"wp:attachment":[{"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/media?parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/categories?post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sonika.ru\/blog\/wp-json\/wp\/v2\/tags?post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}