This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Create Custom Yoast Sitemap | |
* Credit: Unknown | |
* Last Tested: Unknown | |
********* | |
* HOW TO USE | |
* Replace TYPE with your custom type | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Add Sitemap Index To Generated Robots.txt | |
* Credit: Ben https://github.com/retlehs | |
* Last Tested: Mar 13 2017 using Yoast SEO 4.4 on WordPress 4.7.3 | |
*/ | |
add_action('do_robots', 'custom_robotstxt'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
/* Remove Yoast SEO Columns | |
* Credit: Andrew Norcross http://andrewnorcross.com/ | |
* Last Tested: Jun 09 2020 using Yoast SEO 14.3 on WordPress 5.4.1 | |
* | |
* If you have custom post types, you can add additional lines in this format | |
* add_filter( 'manage_edit-{$post_type}_columns', 'yoast_seo_admin_remove_columns', 10, 1 ); | |
* replacing {$post_type} with the name of the custom post type. |
NewerOlder