NOVELIST_SLUG

⌘K
  1. Home
  2. Developers
  3. Constants
  4. NOVELIST_SLUG

NOVELIST_SLUG

The Novelist slug is what appears in the URLs of your books. By default the slug is set to ‘books’ which will create URLs like this:

http://yoursite.com/books/your-book-name/

You can use this constant to change the slug to something else.

Place this code in your theme’s functions.php file or in a custom plugin:

define( 'NOVELIST_SLUG', 'your-custom-slug-here' );

To complete the change, go to Settings > Permalinks and re-save your settings.

Was this article helpful to you? No Yes

How can we help?