WordPress Gets the code for page article content

Source: Internet
Author: User

The following is a specific page content invocation code:

Wordpess the code that invokes the content of a page is as follows:

<?php$article_id = 1; Page Idecho get_post ($article _id)->post_content;? >

Post_author: (integer) The number of the author of the article

Post_data: (character) date and time the article was published (Yyyy-mm-dd HH-MM-SS)

POST_DATA_GMT: (character) article published Greenwich mean Time (GMT) (YYYY-MM-DD Hh-mm-ss)

Post_content: (character) article content

Post_title: (character) article title

Post_category: (integer) The number of the article category. Note: This value is always 0 after the WordPress 2.1 version. You can use the Get_the_category () function when defining the category of an article.

Post_excerpt: (character) Article summary

Post_status: (character) article status (publish|pending|draft|private|static|object|attachment|inherit|future)

Comment_status: (character) comment status (open|closed|registered_only)

Ping_status: (character) pingback/trackback status (open|closed)

Post_password: (character) article password

Post_name: (character) URL nesting of articles

To_ping: (character) URL link to refer to

Pinged: (character) referenced link

Post_modified: (character) article last modified (YYYY-MM-DD hh-mm-ss)

POST_MODIFIED_GMT: (character) article Last modified GMT time (YYYY-MM-DD hh-mm-ss)

Post_parent: (integer) parent article number (for attachments, etc.)

GUID: (character) a link to the article. Note: You cannot use a GUID as a permanent link (although it is indeed treated as a permanent link in versions prior to 2.5) and cannot be used as a link to an article. A GUID is a unique identifier that just happens to be a link to the article at the moment.

Post_type: (character) (log | Page | Annex



WordPress Gets the code for page article content

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.