Typecho gets all the articles under the category to which the article belongs

how do I get all the articles under the category to which the article belongs?
I found a code on the Internet, widget ("Widget_Archive@index"," pageSize=6&type=category", "mid=3")-> parse ("

  • {title}
  • ");? >, but this mid has been written dead, how to change it so that mid can be obtained dynamically, that is, there is no need to fill in mid? manually

    Mar.09,2021

    'mid=' . $this->mid
    MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
    MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38633-4ed74.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
    MySQL Errno : 1021
    Message : Disk full (/tmp/#sql-temptable-64f5-1b38633-4ed74.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
    Need Help?