Wordpress

Chuyên mục gồm các bài viết chia sẻ về chủ đề Lập trình / Hệ thống thông tin

TIP: How to delete all your orders & coupons and save you time

1 – Make all orders & coupon as “trash”: With this sql request: update wp_posts set post_status = ‘trash’ where post_type = ‘shop_order’; update wp_posts set post_status = ‘trash’ where post_type = ‘shop_coupon’; You can execute it on phpMyAdmin or from the DB plugin if you have one that lets you to execute requests, like… read more »

Change and Update WordPress URLS in Database When Site is Moved to new Host

UPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘http://www.oldurl’,’http://www.newurl’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.oldurl’, ‘http://www.newurl’); UPDATE wp_postmeta SET meta_value = replace(meta_value,’http://www.oldurl’,’http://www.newurl’);

Cách Fix Responsive cho Video nhúng từ YouTube, Vimeo

Nhúng code này vào CSS /*VIDEO CONTAINER */   .video-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; }   .video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }/*VIDEO CONTAINER */ .video-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;… read more »

Sidebar