{"id":11262,"date":"2025-09-14T22:59:37","date_gmt":"2025-09-14T19:59:37","guid":{"rendered":"https:\/\/www.coma.lv\/?p=11262"},"modified":"2026-02-13T00:41:38","modified_gmt":"2026-02-12T22:41:38","slug":"kak-vyvesti-spisok-postov-po-raspisaniyu","status":"publish","type":"post","link":"https:\/\/coma.lv\/ru\/2025\/09\/14\/kak-vyvesti-spisok-postov-po-raspisaniyu\/","title":{"rendered":"\u041a\u0430\u043a \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0441\u0442\u043e\u0432 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e"},"content":{"rendered":"\n<p style=\"text-align: left;\">\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0433\u0440\u044f\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0441\u0442\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0434\u0435\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u0430\u0448 \u0431\u043b\u043e\u0433. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<h4 style=\"text-align: left;\">\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u044b \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e?<\/h4>\n<p style=\"text-align: left;\">\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0435\u0441\u044c \u0431\u043b\u043e\u0433\u0433\u0438\u043d\u0433\u043e\u043c, \u0442\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u0447\u0442\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044f \u043f\u043e\u0441\u0442\u044b \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u043e\u0432\u0435\u043d\u044c\u043a\u0438\u0439 \u0432 \u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0431\u043b\u043e\u0433\u0430, \u0442\u043e \u0432\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c \u0441 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u043e\u0441\u0442\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Google Analytics \/ GA4), \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u0430\u0448\u0430 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u0430.<\/p>\n<p style=\"text-align: left;\">\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0438\u0434\u0435\u0442\u044c \u0438 \u0436\u0434\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 WordPress \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u043e\u0432 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e.<\/p>\n<p style=\"text-align: left;\">\u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c: \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e WordPress <strong data-start=\"1016\" data-end=\"1089\">\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f\u043c \u043f\u043e\u0441\u0442\u044b \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 Scheduled (\u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435)<\/strong>. \u041e\u043d\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0442\u0430\u043d\u0443\u0442 \u0432\u0438\u0434\u0438\u043c\u044b\u043c\u0438 \u0432 \u0431\u043b\u043e\u0433\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 <strong data-start=\"1194\" data-end=\"1220\">\u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439<\/strong> (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0437\u0434\u0435\u043b \u00ab\u0421\u043a\u043e\u0440\u043e \u0432\u044b\u0439\u0434\u0435\u0442\u00bb), \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u043b\u0430\u0433\u0438\u043d\u0430 \u0438\u043b\u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043e\u0431\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430.<\/p>\n<h4 style=\"text-align: left;\">\u0421\u043f\u043e\u0441\u043e\u0431 \u043f\u0435\u0440\u0432\u044b\u0439: \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0433\u0440\u044f\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0441\u0442\u043e\u0432 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/h4>\n<p style=\"text-align: left;\" data-start=\"1448\" data-end=\"1625\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u043b\u0430\u0433\u0438\u043d <a href=\"https:\/\/wordpress.org\/plugins\/display-posts-shortcode\/\" target=\"_blank\" rel=\"noopener\"><strong data-start=\"1489\" data-end=\"1506\">Display Posts<\/strong><\/a>. \u041e\u043d \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u043e\u0440\u0442\u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u043e \u043b\u044e\u0431\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u0442\u0430\u0442\u0443\u0441 <code data-start=\"1614\" data-end=\"1622\">future<\/code>. \u0412\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432 \u0437\u0430\u043f\u0438\u0441\u044c, \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u0431\u043b\u043e\u043a Shortcode \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\" style=\"text-align: left;\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\">[display-posts post_status=<span class=\"hljs-string\">\"future\"<\/span> order=<span class=\"hljs-string\">\"ASC\"<\/span> posts_per_page=\"<span class=\"hljs-string\">5\"<\/span>]<br \/>\n<\/code><\/div>\n<\/div>\n<p style=\"text-align: left;\" data-start=\"1878\" data-end=\"1967\">\u042d\u0442\u043e\u0442 \u0448\u043e\u0440\u0442\u043a\u043e\u0434 \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u0434\u043e 5 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u043e\u0432 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044f \u0434\u0430\u0442\u044b \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438. (\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0<code data-start=\"140\" data-end=\"160\">posts_per_page=\"5\" <\/code>\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u043e\u0441\u0442\u043e\u0432. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c 5 \u043d\u0430 \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439).<\/p>\n<p style=\"text-align: left;\" data-start=\"1971\" data-end=\"2101\">\u0421\u043f\u0438\u0441\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435 \u0447\u0435\u0440\u0435\u0437 \u0431\u043b\u043e\u043a \u00abShortcode\u00bb \u0438\u043b\u0438 \u00abCustom HTML\u00bb, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u0442\u0435\u043a\u0441\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u043b\u0438 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p style=\"text-align: left;\" data-start=\"1048\" data-end=\"1077\"><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438<\/strong><\/p>\n<p style=\"text-align: left;\" data-start=\"1079\" data-end=\"1182\">\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e Display Posts \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u043f\u043e\u0441\u0442\u043e\u0432. \u0414\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 (\u0430\u0434\u043c\u0438\u043d, \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440, \u0430\u0432\u0442\u043e\u0440) \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0438 \u0432\u0435\u0434\u0443\u0442 \u043d\u0430 \u043f\u0440\u0435\u0432\u044c\u044e \u043f\u043e\u0441\u0442\u0430, \u0430 \u0434\u043b\u044f \u043d\u0435\u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432\u0435\u0434\u0443\u0442 \u043d\u0430 404, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0441\u0442 \u0435\u0449\u0451 \u043d\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d.<\/p>\n<p style=\"text-align: left;\" data-start=\"1395\" data-end=\"1418\"><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0441 CSS<\/strong><\/p>\n<p style=\"text-align: left;\" data-start=\"1420\" data-end=\"1592\">\u0427\u0442\u043e\u0431\u044b \u0441\u0441\u044b\u043b\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u043c, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 CSS \u0432 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 CSS \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u0438\u043b\u0438 \u0432 \u0442\u0435\u043c\u0443:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n.logged-out .display-posts-list a {\r\n    pointer-events: none;\r\n    cursor: default;\r\n    text-decoration: none;\r\n    color: inherit;\r\n}\r\n<\/pre>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\" style=\"text-align: left;\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\"><\/div>\n<\/div>\n<\/div>\n<p style=\"text-align: left;\" data-start=\"2139\" data-end=\"2358\">\u0414\u043b\u044f \u043d\u0435\u0437\u0430\u043b\u043e\u0433\u0438\u043d\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 <code data-start=\"98\" data-end=\"119\">.display-posts-list<\/code> \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u043d\u0435\u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043b\u0430\u0441\u0441\u0443 <code data-start=\"164\" data-end=\"177\">.logged-out<\/code>, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0432\u0438\u0434\u044f\u0442 \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u0441\u0441\u044b\u043b\u043a\u0438. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0441\u0442\u043e\u0432 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0431\u0435\u0437 \u0440\u0438\u0441\u043a\u0430, \u0447\u0442\u043e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u0438 \u043f\u043e\u043f\u0430\u0434\u0443\u0442 \u043d\u0430 404 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<h4 style=\"text-align: left;\">\u0421\u043f\u043e\u0441\u043e\u0431 \u0432\u0442\u043e\u0440\u043e\u0439: \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0441\u0442\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e<\/h4>\n<p style=\"text-align: left;\">\u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u0442\u0435 \u043b\u0451\u0433\u043a\u0438\u0439 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0431\u0435\u0437 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 \u0432 \u0444\u0430\u0439\u043b <code data-start=\"2258\" data-end=\"2273\">functions.php<\/code> \u0432\u0430\u0448\u0435\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0439 \u0442\u0435\u043c\u044b \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d-\u0441\u043d\u0438\u043f\u043f\u0435\u0442.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/ Add this code to your child theme&#039;s functions.php or a small custom plugin\r\nfunction wpb_upcoming_posts() {\r\n    \/\/ Query for future posts\r\n    $the_query = new WP_Query( array(\r\n        &#039;post_status&#039;    =&gt; &#039;future&#039;,      \/\/ Only get scheduled posts\r\n        &#039;posts_per_page&#039; =&gt; 3,             \/\/ Limit number of posts displayed\r\n        &#039;orderby&#039;        =&gt; &#039;date&#039;,        \/\/ Order by post date\r\n        &#039;order&#039;          =&gt; &#039;ASC&#039;,         \/\/ Earliest posts first\r\n    ) );\r\n\r\n    \/\/ Initialize output variable\r\n    $output = &#039;&#039;;\r\n\r\n    \/\/ Check if there are future posts\r\n    if ( $the_query-&gt;have_posts() ) {\r\n        $output .= &#039;&lt;ul class=&quot;upcoming-posts&quot;&gt;&#039;;\r\n        while ( $the_query-&gt;have_posts() ) {\r\n            $the_query-&gt;the_post();\r\n\r\n            \/\/ Escape title and date for security\r\n            $title = esc_html( get_the_title() );\r\n            $date  = esc_html( get_the_date( get_option( &#039;date_format&#039; ) ) );\r\n\r\n            \/\/ If user is logged in, show link; otherwise show only title and date\r\n            if ( is_user_logged_in() ) {\r\n                $permalink = esc_url( get_permalink() );\r\n                $output .= &quot;&lt;li&gt;&lt;a href=\\&quot;{$permalink}\\&quot;&gt;{$title}&lt;\/a&gt; ({$date})&lt;\/li&gt;&quot;;\r\n            } else {\r\n                $output .= &quot;&lt;li&gt;{$title} ({$date})&lt;\/li&gt;&quot;;\r\n            }\r\n        }\r\n        $output .= &#039;&lt;\/ul&gt;&#039;;\r\n    } else {\r\n        \/\/ Message if no scheduled posts are found\r\n        $output .= &#039;&lt;p&gt;No upcoming posts yet.&lt;\/p&gt;&#039;;\r\n    }\r\n\r\n    \/\/ Reset post data after query\r\n    wp_reset_postdata();\r\n\r\n    \/\/ Return the HTML output\r\n    return $output;\r\n}\r\n\r\n\/\/ Register shortcode &#x5B;upcoming_posts]\r\nadd_shortcode( &#039;upcoming_posts&#039;, &#039;wpb_upcoming_posts&#039; );\r\n\r\n\/\/ Enable shortcode execution in text widgets\r\nadd_filter( &#039;widget_text&#039;, &#039;do_shortcode&#039; );\r\n<\/pre>\n<p style=\"text-align: left;\">\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u0432 <strong>Appearance \u2013 Widgets <\/strong>(\u0438\u043b\u0438 \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0431\u043b\u043e\u043a\u043e\u0432) , \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0431\u043b\u043e\u043a \u00abShortcode\u00bb \u0438\u043b\u0438 \u00abCustom HTML\u00bb \u0432 \u0441\u0430\u0439\u0434\u0431\u0430\u0440 \u0438 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u044d\u0442\u043e\u0442 \u0448\u043e\u0440\u0442\u043a\u043e\u0434:<\/p>\n<p style=\"text-align: left;\">[upcoming_posts]<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/coma.lv\/wp-content\/uploads\/2016\/11\/upcomingposts_shortcode.jpg\" alt=\"WordPress\" title=\"\"><\/p>\n<p style=\"text-align: left;\">\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u043e\u0432 \u0432 \u0441\u0430\u0439\u0434\u0431\u0430\u0440\u0435. \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u043e\u0440\u0442\u043a\u043e\u0434 \u043a \u0441\u0435\u0431\u0435 \u0432 \u043f\u043e\u0441\u0442, \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d.<\/p>\n<hr \/>\n<p style=\"text-align: left;\"><em>\u041d\u0430\u0448\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u2014 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u0430\u0439\u0442\u043e\u0432 \u043d\u0430 WordPress. \u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u0434\u043b\u044f \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0443\u043b\u044c\u0442\u0430\u0446\u0438\u0438 \u2014 <a href=\"mailto:vadim@coma.lv\">vadim@coma.lv<\/a>, <a href=\"tel:+37129394520\">+371 29394520<\/a><\/em><\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0433\u0440\u044f\u0434\u0443\u0449\u0438\u0445 \u043f\u043e\u0441\u0442\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0434\u0435\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u0430\u0448 \u0431\u043b\u043e\u0433. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u044b \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e? \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0435\u0441\u044c \u0431\u043b\u043e\u0433\u0433\u0438\u043d\u0433\u043e\u043c, \u0442\u043e \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438, \u0447\u0442\u043e \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044f \u043f\u043e\u0441\u0442\u044b \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u043e\u0432. \u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u043e\u0432\u0435\u043d\u044c\u043a\u0438\u0439 \u0432 \u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0431\u043b\u043e\u0433\u0430, \u0442\u043e \u0432\u0430\u043c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":37660,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[573,625],"tags":[],"class_list":["post-11262","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","category-dlya-nachinayushhih"],"_links":{"self":[{"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/posts\/11262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/comments?post=11262"}],"version-history":[{"count":4,"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/posts\/11262\/revisions"}],"predecessor-version":[{"id":36131,"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/posts\/11262\/revisions\/36131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/media\/37660"}],"wp:attachment":[{"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/media?parent=11262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/categories?post=11262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coma.lv\/ru\/wp-json\/wp\/v2\/tags?post=11262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}