• Skip to main content
  • Skip to primary sidebar
  • Business
  • WordPress
  • Security
  • Marketing
  • Publicity
  • Computing
  • Resources
  • Whatevs

Purely Wordpress

Just The Tech, News, and Info We Deem To Post

  • Home
  • About
  • Contact
  • Contribute
You are here: Home / Code Snippets / Exclude Simple URLs in WordPress Search Results

Exclude Simple URLs in WordPress Search Results

Screenshot of WordPress plugin php and html code

This applies to the original simple URL’s plugin by Nathan Rice and may not work with the new Lasso version.

Locate the following in the simple URLs plugin.php

'public' => true,
'query_var' => true,

Then insert “‘exclude_from_search’ => true,” from the code snippet below into your code, and update the plugin.

'public' => true,
'exclude_from_search' => true,
'query_var' => true

by Jack Alltrade on September 7, 2022

Filed Under: Code Snippets, Plugins Tagged With: Redirect, Simple URLs, WP Core

Reader Interactions

Share Your Two Cents Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • Code Snippets
  • Development
  • File Management
  • Genesis Framework
  • Hosting
  • Legacy
  • Plugins
  • SEO
  • Tech Terms
  • Themes
  • User Experience
  • User Interface
  • WordPress Core
  • WordPress Functionality

Warning! Use at your own risk!

As always, use at your own risk and remember to backup your site prior to inserting new code.

© Copyright Jack Alltrade & Associates 2025 · Purely Supplemental™ is a trademark of Jack Alltrade & Associates