codehaven - php snippets - coding help
Generic filters
Exact matches only
  • Exclude category from blog while adding them to sitemap.xml

    16th January 2024

    Wordpress - Miscellaneous

    wordpress category

    Add to functions.php page

    Excludes category 74 from the wordpress blog page, then adds all in cat 1 and 74 to the sitemap.

    Was this code snippet helpful?