sundry

home page  »  file  »  sundry  »  Typecho gets the cid value of the article, the coid value of the comment and the mid value of the classification

Typecho gets the cid value of the article, the coid value of the comment and the mid value of the classification

The cid of the article

1. This can also be queried in the database

If you install the typecho plug-in typecho-json-miniprogram Then you can directly access Your domain name/typeecho json miniprogram/posts
Values are shown in the figure

2. But there is a simpler way

Mouse over title

3. View links when editing articles

In the figure, cid=19976

19976

Coid of comment

It can be queried in the database. If you install the typecho plug-in typecho-json-miniprogram Then you can directly access Your domain name/typeecho json miniprogram/recentComments
Values are shown in the figure

After transfer

classification

The classification is consistent with the article acquisition method

fabulous ( fifteen )

This article is written by Ji Changxin Author, article address: https://blog.isoyu.com/archives/typecho-cid-coid-mid.html
use Knowledge Sharing Attribution 4.0 International License Agreement. Unless the reprint/source is indicated, they are all original or translated by this website. Please sign your name before reprinting. Last editing time: March 29, 2018 at 10:12 p.m

Popular articles

Comments:

7 comments, 0 visitors, 0 bloggers
  1.  joker
    joker Published on:

    Can I get the value of a custom field

  2.  Yi ancient and modern
    Yi ancient and modern Published on:

    The blogger is quite familiar with typecho. Currently, there are too few tutorials about typecho on the Internet

    •  Ji Changxin
      Ji Changxin Published on:

      Maybe it's too simple. I wrote this article for plug-ins.

  3.  Xifengli Blog
    Xifengli Blog Published on:

    It is easy to obtain, and the technology will be tested if it is reused after obtaining

Post reply

[Required]

I am a human?

Please wait three seconds after submission to avoid unsubmission and repetition