Typecho Blog Program Usage Notes

🌐 Traducción al inglés · Ver original en chino

Typecho 1.3 article sorting issue: By default, articles are sorted in descending order of 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 of 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/');

Comentarios por párrafo 0 · moderado

Aún no hay comentarios por párrafo — inicia sesión y comenta bajo un párrafo.

Comentarios 0 · moderado

Aún no hay comentarios — sé el primero.
Inicia sesión para iniciar sesión / registrarse únete a comentarios, respuestas y párrafos