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