SEO snippets

Structured data, robots rules, canonicals and indexing, done the way search engines expect today.

Showing 25 snippets

SEO PHP Delay Posts in the RSS Feed Hold new posts out of your RSS feed for 10 minutes after publishing, so you have time to fix mistakes before feed readers and scrapers grab them. Intermediate WP 7.1 SEO PHP Use Pretty Search URLs Redirect search results from ?s=term to /search/term/, which is cleaner to share and easier for caches and analytics. Intermediate WP 7.1 SEO PHP Remove Stop Words From New Post Slugs Shorten the URL WordPress creates from a new post's title by removing words like "the", "and" and "how". Intermediate WP 7.1 SEO PHP Send a Last-Modified Header on Posts and Pages Send each post's last modified date as an HTTP header, which crawlers and caches use to check for changes. Beginner WP 7.1 SEO PHP Add Last-Modified Dates to the Sitemap Add a lastmod date to every post and page in WordPress's sitemap, so search engines know what changed. Beginner WP 7.1 SEO PHP Add Meta Descriptions Without an SEO Plugin Print a meta description on every post and page from its excerpt, and on the homepage from your tagline. Beginner WP 7.1 SEO PHP Change the Page Title Separator and Format Change the dash between the page and site name in browser tabs and search results, and drop the tagline from the homepage title. Beginner WP 7.1 SEO PHP Add 301 Redirects Without a Plugin Redirect old URLs that now return 404 to their new pages with a simple list, without installing a redirection plugin. Intermediate WP 7.1 SEO PHP Noindex Specific Pages Add noindex to pages that shouldn't appear in search results, such as thank-you pages and members-only areas. Beginner WP 7.1 SEO PHP Add Breadcrumb Schema Markup Without a Plugin Output BreadcrumbList JSON-LD schema in your page head for singular posts, taxonomy archives, and custom post type archives to help Google display breadcrumbs in search results. Intermediate WP 7.1 SEO PHP Mark Affiliate Links as Sponsored Automatically add rel="sponsored nofollow" to affiliate links in your posts, as Google asks, using WordPress's HTML API. Intermediate WP 7.1 SEO PHP Add Rules to the Virtual robots.txt Add your own rules to the robots.txt file WordPress generates, keep the defaults, and point crawlers to the right sitemap. Beginner WP 7.1 SEO PHP Display Breadcrumbs Without a Plugin A template function that prints accessible breadcrumbs for posts, pages, archives, search and 404 pages. Intermediate WP 7.1 SEO PHP Add Canonical URL to Custom Post Type Archives Output a self-referencing canonical link tag on custom post type archive pages, which many SEO plugins omit by default. Intermediate WP 7.1 SEO PHP Add Featured Images to the RSS Feed Include each post's featured image at the top of its RSS feed item, so feed readers and email newsletters show it. Beginner WP 7.1 SEO PHP Add Article JSON-LD Schema to Blog Posts Output Article structured data in JSON-LD format on single blog posts, providing search engines with author, date, image, and publisher information that enables rich result eligibility. Intermediate WP 7.1 SEO PHP Add FAQ Schema From a Custom Field Define FAQ question and answer pairs in a custom field and output FAQPage JSON-LD schema automatically, enabling Google's FAQ rich results without a plugin. Intermediate WP 7.1 SEO PHP Noindex Date, Author and Thin Archive Pages Tell search engines not to index date archives, author archives on single-author sites and empty tag pages, using WordPress's robots API. Beginner WP 7.1 SEO PHP Add Organization and WebSite Schema to the Homepage Tell search engines your organisation's name, logo and social profiles, and which name to show for your site in results. Intermediate WP 7.1 SEO PHP Remove Users From the WordPress Sitemap Stop WordPress listing author archive URLs, and with them your usernames, in its built-in XML sitemap. Beginner WP 7.1 SEO PHP Remove Post Types and Taxonomies From the Sitemap Keep content types you don't want indexed, such as tags or a private custom post type, out of WordPress's XML sitemap. Beginner WP 7.1 SEO PHP Exclude Specific Posts From the Sitemap Leave individual posts or pages, such as a thank-you page or a landing page for ads, out of the WordPress sitemap. Beginner WP 7.1 SEO PHP Turn Off the Built-In WordPress Sitemap Disable /wp-sitemap.xml when another plugin provides your sitemap, so search engines only see one. Beginner WP 7.1 SEO PHP Ping IndexNow When You Publish Tell Bing, Yandex and other IndexNow search engines about new and updated posts the moment you publish, with a key file WordPress serves for you. Intermediate WP 7.1 SEO PHP Add Open Graph Tags Without a Plugin Add Open Graph and Twitter card tags to posts and pages so links share with the right title, description and image, and step aside when an SEO plugin is active. Intermediate WP 7.1

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only