哪些列将 slug 存储在 wordpress 中 [英] What columns stores the slug in wordpress

查看:27
本文介绍了哪些列将 slug 存储在 wordpress 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 wordpress 中,哪个列存储了 slug(自动生成的或用户输入的)?

In wordpress, what column stores the slug (either auto generated, or user entered)?

我在 wp_postswp_postmeta 中都找不到这个.wp_posts GUID 存储直接链接,但不存储 slug.

I can not find this in either wp_posts or wp_postmeta. The wp_posts GUID stores a direct link, but not the slug.

推荐答案

帖子和页面的 slug 存储在 wp_posts 帖子表中的 post_name 列中.请注意,所有自动保存和附件都存储在同一个表中,因此不会有一个充满 slug 的实心列,而是每个父"(修订的父)帖子或页面只有一个.

The slug for Posts and Pages are stored in the wp_posts posts table in the column post_name. Just be aware that all the automatic saves as well as attachments are stored in the same table, so there will not be a solid column full of slugs, but only one for each "parent" (parent to the revisions) Post or Page.

这篇关于哪些列将 slug 存储在 wordpress 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆