国产美女裸身网站免费观看视频,最新精品国自产拍福利,影音先锋av色噜噜影院,亚洲成av人无码影片

專業(yè)WORDPRESS主題設(shè)計(jì)制作

如何解決WordPress主題{{unknown}} oembed_cache問題?(wordpress主題corepress)

發(fā)布于: 2022-11-03

1 發(fā)現(xiàn){{unknown}}、oembed_cache錯(cuò)誤

  • 2 解決方法
  • 3 注意事項(xiàng)

 

begin主題如何解決{{unknown}} oembed_cache?

有新媒體人剛學(xué)會(huì)WordPress建站,使用的是知更鳥begin主題。

發(fā)現(xiàn){{unknown}}、oembed_cache錯(cuò)誤

在phpMyAdmin檢查MySQL數(shù)據(jù)庫時(shí),發(fā)現(xiàn)出現(xiàn)大量錯(cuò)誤……

post_content字段,找到大量錯(cuò)誤:{{unknown}} ▼

post_content-unknown

post_type字段,找到大量錯(cuò)誤:oembed_cache ▼

oembed_cache

如何在phpMyAdmin數(shù)據(jù)庫里,找到“oembed_cache、{{unknown}}”錯(cuò)誤?

在MySQL數(shù)據(jù)庫中,搜索“oembed_cache” ▼

search-in-database

  1. 要搜索的內(nèi)容:oembed_cache
  2. 查找:至少一個(gè)詞
  3. 于下列表:全選
  4. 點(diǎn)擊“執(zhí)行”

然后,在 wp_posts 數(shù)據(jù)表中,搜索“oembed_cache”,找到 691 個(gè)……

由此可見,知更鳥的begin主題,是非常臃腫的WordPress主題:

  • 每更新1篇文章,WordPress文章ID就有很大的差距。
  • 比如:剛更新了1篇文章,文章ID是500。
  • 接著半小時(shí)內(nèi),又再更新1篇文章,文章ID是510。
  • 2篇文章ID的差距是10。

解決方法

第 1 步:改用其它WordPress主題(非知更鳥開發(fā)的主題)。

第 2 步:進(jìn)入phpMyAdmin數(shù)據(jù)庫管理。

第 3 步:點(diǎn)擊網(wǎng)站的MySQL數(shù)據(jù)庫。

第 4 步:點(diǎn)擊 wp_posts 數(shù)據(jù)表

第 5 步:點(diǎn)擊“搜索”選項(xiàng)

第 6 步:點(diǎn)擊“查找和替換”  ▼

  • 查找:oembed_cache
  • 替換為:posts
  • 字段:post_type

find-replacement-mysql-field

  • 點(diǎn)擊“執(zhí)行”后,點(diǎn)擊“替換”。

第 7 步:后臺(tái)設(shè)置每頁的項(xiàng)目數(shù):100

  • 進(jìn)入WordPress后臺(tái),在所有文章里,點(diǎn)擊右上角的“顯示選項(xiàng)”。
  • 后臺(tái)設(shè)置分頁,每頁的項(xiàng)目數(shù):100(或是更多)
  • 點(diǎn)擊“應(yīng)用”。

設(shè)置每頁的項(xiàng)目數(shù),是根據(jù)你的網(wǎng)站PHP最大加載時(shí)間而定,詳情請(qǐng)參考此文 ▼

解決php提示Maximum execution time of 30 seconds exceeded錯(cuò)誤

很多網(wǎng)絡(luò)營銷新手在學(xué)習(xí)用WordPress建站時(shí),PHP頁面很長時(shí)間,處于空白狀態(tài)。然后出現(xiàn)以下錯(cuò)誤提示:Fatal error: Maximum execution time of 30 seconds exceeded in ……很簡單,這……

 

第 8 步:在所有文章里,搜索“{{unknown}}”

第 9 步:批量編輯文章

全勾選“(無標(biāo)題)”文章后,選擇“編輯”應(yīng)用  ▼

batch-edit-draft

  1. 評(píng)論:允許
  2. Ping通告:允許
  3. 狀態(tài):草稿
  4. 點(diǎn)擊“更新”

如果還有批量編輯的文章,點(diǎn)擊“下一頁”,繼續(xù)重復(fù)批量編輯,直到完成為止。

注意事項(xiàng)

操作phpMyAdmin數(shù)據(jù)庫之前,請(qǐng)務(wù)必先做好MySQL數(shù)據(jù)庫備份,否則后果自負(fù)。

希望我們網(wǎng)站( https://www.wordpressx.com/ ) 分享的《如何解決WordPress主題{{unknown}} oembed_cache問題?》,對(duì)您有幫助。

TAG:
WP技術(shù)資料 wordpress模板制作、wordpress主題開發(fā)相關(guān)知識(shí)常見問題總結(jié)
服務(wù)電話:
0533-2765967

微信 13280692153