Заметки программиста

Каждый будний день, ровно в 9, я пишу о себе, о своей работе и о технологиях web программирования123

Перевод оригинальной статьи WordPress Template Tags Reference Guide. Список стандартных функций для вставки в шаблоны WordPress. Перевод временно неполный.

Функции тем

Автор the_author();

Об авторе the_author_description();

Логин автора the_author_login();

Имя автора the_author_firstname();

Фамилия автора the_author_lastname();

Ник автора the_author_nickname();

ID автора the_author_ID();

Почта автора the_author_email();

Ссылка автора the_author_link();

Имя AIM автораthe_author_aim();

Yahoo IM ID автораthe_author_yim();

Публикации автора the_author_posts();

Ссылка на посты автора the_author_posts_link();

Список авторов wp_list_authors();

Category Template Tags

Post Categorythe_category();

Post Category in RSS Formatthe_category_rss();

Page Category Titlesingle_cat_title();

Category Descriptioncategory_description();

Category Dropdownwp_dropdown_categories(’arguments’);

Category Link Listwp_list_categories();

If In Categoryin_category();

Category’s Parents Listget_category_parents();

Category Arrayget_the_category();

Comment Template Tags

Comment Countcomments_number();

Link to Post Commentscomments_link();

Link to RSS Feed of Post Commentscomments_rss_link();

JavaScript for Pop-Up Windowcomments_popup_script();

Link to Pop-Up Windowcomments_popup_script();

Comment IDcomment_ID();

Author of Commentcomment_author();

IP Address of Comment Authorcomment_author_IP();

Email of Comment Authorcomment_author_email();

Website URL of Comment Authorcomment_author_url();

Mailto Link to Comment Authorcomment_author_email_link();

Link to Website URL of Comment Authorcomment_author_link();

Type of Commentcomment_type();

Comment Textcomment_text();

Comment Excerptcomment_excerpt();

Date of Commentcomment_date();

Time of Commentcomment_time();

Comment Author’s Name Formatted for RSScomment_author_rss();

Comment Text Formatted for RSScomment_text_rss();

Comment Link Formatted for RSScomment_link_rss();

Comment Permalink Formatted for RSSpermalink_comments_rss();

Date & Time Template Tags

Post Date (xml)the_date_xml();

Post Datethe_date();

Post Timethe_time();

Date (and Time) of Last Modification to Postthe_modified_date();

Time (and Date) of Last Modification to Postthe_modified_time();

Post Time (PHP)get_the_time();

Current Page Month & Year Titlesingle_month_title();

Post Calendarget_calendar();

General Template Tags

Blog Infobloginfo();

Blog Info RSSbloginfo_rss();

Blog Info (PHP)get_bloginfo();

Blog Info RSS (PHP)get_bloginfo_rss();

Page Titlewp_title();

Get Postsget_posts;

Archives Listwp_get_archives();

Page Link Listwp_list_pages();

Page Dropdownwp_dropdown_pages();

Login/Logout Linkwp_loginout();

Register/Site Admin Linkwp_register();

Query Postsquery_posts();

RSS Enclosuresrss_enclosure();

Tag Cloudwp_tag_cloud();

Search Querythe_search_query();

Link Template Tags

‘Edit Post’ Linkedit_post_link();

‘Edit Comment’ Linkedit_comment_link();

Page Linkswp_page_links();

Yearly Archive URLget_year_link();

Monthly Archive URLget_month_link();

Daily Archive URLget_day_link();

Previous Post Linksnext_posts_link();

Permalink Template Tags

Permalink Anchorpermalink_anchor();

Permalink (PHP)get_permalink();

Permalink URLthe_permalink();

Permalink (formatted for syndication feeds)permalink_single_rss();

Post Template Tags

Post IDthe_ID();

Post Titlethe_title();

Post Title (Attribute)the_title_attribute();

Single Post Titlesingle_post_title();

Post Title (RSS)the_title_rss();

Post Contentthe_content();

Post Content (RSS)the_content_rss();

Post Excerptthe_excerpt();

Post Excerpt (RSS)the_excerpt_rss();

Previous Post Linkprevious_post_link();

Next Post Linknext_post_link();

Post Nav Linksposts_nav_link();

Post Metathe_meta();

Post Tagsthe_tags();

Post Countwp_count_posts();

Tag Template Tags

Tag Cloudwp_tag_cloud();

Tag Arrayget_the_tags();

Tag Listget_the_tag_list();

Tag Title for Current Pagesingle_tag_title();

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Comments

There are 7 comments for this post.

  1. Arty V on Июль 21, 2008 2:58 пп
  2. admin on Июль 21, 2008 3:08 пп

    Спасибо, поправил :)

  3. Dimon on Январь 24, 2009 6:58 пп

    Привет, помогите кто знает, как в “single.php” (страница самого поста) вывести “описание рубрики” (желательно сразу с ссылкой), в которой находится просматриваемый пост?

    Пробовал вставить – “echo category_description();” не выводит ничего, кроме того это приводит к исчезновению текста поста.

    Не спрашивайте зачем все это нужно, просто помогите встаить “описание рубрики” в страницу поста (не в рубрику а именно в страницу поста), пожалуйста.

    p. s.
    “echo the_category_description();” – не выводит.
    “echo the_cat_description();” – тоже ничего нет.

    Я так понимаю причиной всего служит условие, в котором прописано разрешить вывод описания в случае если это “рубрика”.

    Заранее спасибо

  4. Dimon on Январь 24, 2009 8:50 пп

    ЕЕее!!! охренеть, вытащил!

    Вот, кому надо, держите, может пригодится:

    $category = get_the_category();
    $ID = $category[0]->cat_ID;
    echo category_description($ID);

    Выведет описание рубрики на странице поста.

  5. Viggo on Март 25, 2009 10:38 дп

    жаль, автору перевода не хватило возможности довести перевод до логического конца – не все функции переведены. А так, задумка хорошая была. :)
    Вот интересно, а существует ли печатный вариант этого гайда?

  6. Антонов Андрей on Март 25, 2009 10:41 дп

    Я всегда помню об этом списке, как появится возможноность, обязательно закончу.

  7. Леха on Июнь 4, 2009 4:41 дп

    прошло 10 недель Вы еще помните?

Write a Comment

Let me know what you think?