Typecho outputs the content title of an article in a separate loop!

Source: Internet
Author: User
I want to output an article on a single page. I want to specify the content of the article. The title is a bit similar to that under typecho classification. I checked the article output for 2 hours and Baidu didn't have any articles in this regard! I have to solve it!

I want to output the content and title of the article on a single page.

A bit similar to the article output under typecho Classification

I checked this article for two hours! I have to solve it!

Reply content:

I want to output the content and title of the article on a single page.

A bit similar to the article output under typecho Classification

I checked this article for two hours! I have to solve it!

I'm not quite clear about your description
If you want to obtain a specific article, such as the article cid is known, you can:

$ Post = $ this-> widget ('widget _ Archive @ Post', 'Type = Post', 'cid = 1'); $ post-> title ();

If you want to obtain all the articles under a specific category, such as mid, you can:

$ Category = $ this-> widget ('widget _ Archive @ category ', 'pagesize = 6 & type = category', 'mid = 1 '); while ($ category-> next ()){......}

Reference: Widget_Archive common code snippet collection

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.