워드프레스 DB의 wp_posts 테이블 guid 변경
- 포스트 검색1 : select * from `wp_posts` where `post_type` = 'post' ORDER BY 'ID'
- 포스트 검색2 : select * from `wp_posts` where `post_type` = 'post' AND `ID` = '56574';
https://mysite.com/archives/56574
- UPDATE wp_posts SET guid = REPLACE(guid, 'oldurl.com', 'newurl.com') WHERE guid LIKE 'http://oldurl.com/%';
- UPDATE wp_posts SET guid = REPLACE(guid, 'https://mysite.com/archives/', 'https://mysite.com/?p=') WHERE guid LIKE 'https://mysite.com/archives/%';
Reference :
How to change all the guid in posts table? : https://wordpress.stackexchange.com/questions/211156/how-to-change-all-the-guid-in-posts-table
'WordPress > Action Hook, Filter Hook, Function' 카테고리의 다른 글
워드프레스 검색 결과 페이지 커스텀 (0) | 2023.03.28 |
---|---|
워드프레스 검색결과 개수 표시 (Display Total Results) (0) | 2023.03.28 |
language_attributes, bloginfo, ICL_LANGUAGE_CODE (0) | 2019.07.27 |
[WordPress] Conditional Tags (0) | 2018.12.24 |
[Wordpress] get_the_id(), the_ID(), get_current_blog_id() (0) | 2018.12.24 |