Home >CMS Tutorial >WordPress >How to add filing information in wordpress
When filing, the filing number needs to be displayed, but the WordPress default template itself does not carry this information. In order to handle the filing more quickly, the solution is as follows:
According to wp-config .php tips
.......... /** * zh_CN本地化设置:启用ICP备案号显示 * * 可在设置→常规中修改。 * 如需禁用,请移除或注释掉本行。 */ define('WP_ZH_CN_ICP_NUM', true); ...........
Select menu->Settings->General-Edit registration number information
## in the footer.php of the theme you are using Add a line of code to display the ICP registration number added in the WordPress background. Select menu: Appearance-Edit-Find footer.php and add the following information<?php echo get_option( 'zh_cn_l10n_icp_num' );?>You can add some styles appropriately , such as:
<?php echo get_option( 'zh_cn_l10n_icp_num' );?>Display effect: For more wordpress related technical articles, please visit the
wordpress tutorial column to learn!
The above is the detailed content of How to add filing information in wordpress. For more information, please follow other related articles on the PHP Chinese website!