Typecho Blog Program Usage Notes

🌐 English translation · View Chinese original

Typecho 1.3 article sorting issue: By default, articles are sorted in descending order by creation time. To change to ascending order, you need to modify the Archive.php file in the var/Widget/ path. Around line 688, find $select->order('table.contents.created', Db::SORTDESC)...

Typecho 1.3 article sorting issue

By default, articles are sorted in descending order by creation time. To change to ascending order, you need to modify

Open the Archive.php file in the var/Widget/ path, and find around line 688:

$select->order('table.contents.created', Db::SORT_DESC)

This sorts by article creation time in descending order. If we want to change to other sorting methods, replace it with the following code.

Sort by article creation time in ascending order

$select->order('table.contents.created', Db::SORT_ASC);

Sort by article last modified time in descending order

$select->order('table.contents.modified', Db::SORT_DESC);

Sort by article last modified time in ascending order

$select->order('table.contents.modified', Db::SORT_ASC);

Avatar blocked issue:

Add the following to config.inc.php:

//Just add this line of code!
define('__TYPECHO_GRAVATAR_PREFIX__', 'https://cdn.sep.cc/avatar/');

Paragraph comments 0 · moderated

No paragraph comments yet — log in and discuss under a paragraph.

Comments 0 · moderated

No comments yet — be the first.
Log in to sign in / register join comments, replies & paragraphs