我在相当一段时间内使用亚历克斯·拉贝( Alex )的WordPress with Nextgen画廊。很久很久以前,我的网站上有很多画廊,这些画廊通过nextgen画廊的短代码在很多帖子中使用。但为了提高质量,我删除了许多帖子,但与这些帖子相关的图库仍以孤儿的身份存在于文件系统中。如何找到未在post数据库中使用的画廊?
Column Type Null Default Comments
gid bigint(20) No
name varchar(255) No
slug varchar(255) No
path mediumtext Yes NULL
title mediumtext Yes NULL
galdesc mediumtext Yes NULL
pageid bigint(20) Yes 0
previewpic bigint(20) Yes 0
author bigint(20)Column Type Null Default Comments
ID bigint(20) No
post_author bigint(20) No 0
post_date datetime No 0000-00-00 00:00:00
post_date_gmt datetime No 0000-00-00 00:00:00
post_content longtext No gid是画廊的标识。例如,如果gid为8,则在post中使用nextgen库的短代码nggallery id=8,并将其保存在wp_posts表的post_content字段中。我想知道gid,它不存在于整个post_content表的任何wp_posts中。
发布于 2011-11-21 09:15:12
Goto wp_postmeta(TABLE)-> meta_key(COLUMN)->gallery_id(value)在相对于您的post_id(COLUMN in this table)的meta_value(COLUMN)中有一些价值
https://wordpress.stackexchange.com/questions/27543
复制相似问题