Category: IT Notes
18
Jan
2022
WordPress-List category function
<?php wp_dropdown_categories( ‘show_option_none=Category&tab_index=4&taxonomy=category’ ); ?>
07
Jan
2022
How to configure Nginx for WordPress permalinks
location / { try_files $uri $uri/ /index.php?$args; }
WordPress WP SMTP设置alicloud direct email 方法
参考文档: http://www.southcivil.com/2714.html 如果是Elementor的contact form,发送时候出现: email server error. form not sent. elementor 应该要在wp smpt里面检查sending email from,是否有色选force from email. Port要设置为465,然后smtp host可以在Alicloud direct email setting page里面找到:
WordPress 上https后auto redirect 301 error
在wp-config.php里面增加: define(‘WP_HOME’,’https://portal.hkwl.org’); define(‘WP_SITEURL’,’https://portal.hkwl.org’); define(‘RELOCATE’, true);if ( isset( $_SERVER[‘HTTP_X_FORWARDED_PROTO’] ) && ‘https’ == $_SERVER[‘HTTP_X_FORWARDED_PROTO’] ) { $_SERVER[‘HTTPS’] = ‘on’;}