Skip to main content
added 37 characters in body
Source Link

Rebuilding an author/writer website in WordPress.

I have a custom post type of books. Working OK.

I'd also like my category base to be books. Not working as yet.

So a book URL would be like:

https://www.authorname.com/books/title

And a category URL would be:

https://www.authorname.com/books/fiction

How can I achieve this?

My workaround is a category URL like this (working using Category Base = books/category):

https://www.authorname.com/books/category/fiction

Would prefer to add code in functions.php or .htaccess than use a plugin.

Thanks

Rebuilding an author/writer website in WordPress.

I have a custom post type of books. Working OK.

I'd also like my category base to be books. Not working as yet.

So a book URL would be like:

https://www.authorname.com/books/title

And a category URL would be:

https://www.authorname.com/books/fiction

How can I achieve this?

My workaround is a category URL like this (working):

https://www.authorname.com/books/category/fiction

Would prefer to add code in functions.php or .htaccess than use a plugin.

Thanks

Rebuilding an author/writer website in WordPress.

I have a custom post type of books. Working OK.

I'd also like my category base to be books. Not working as yet.

So a book URL would be like:

https://www.authorname.com/books/title

And a category URL would be:

https://www.authorname.com/books/fiction

How can I achieve this?

My workaround is a category URL like this (working using Category Base = books/category):

https://www.authorname.com/books/category/fiction

Would prefer to add code in functions.php or .htaccess than use a plugin.

Thanks

added workaround
Source Link

Rebuilding an author/writer website in WordPress.

I have a custom post type of books. Working OK.

I'd also like my category base to be books. Not working as yet.

So a book URL would be like:

https://www.authorname.com/books/title

And a category URL would be:

https://www.authorname.com/books/fiction

Alternatively, I'd be happy with a category URL like this:

https://www.authorname.com/books/category/fiction

How can either of these categories doI achieve this?

My workaround is a category URL like this (working):

https://www.authorname.com/books/category/fiction

Would prefer to add code in functions.php or .htaccess than use a plugin.

Thanks

Rebuilding an author/writer website in WordPress.

I have a custom post type of books. Working OK.

I'd also like my category base to be books. Not working as yet.

So a book URL would be like:

https://www.authorname.com/books/title

And a category URL would be:

https://www.authorname.com/books/fiction

Alternatively, I'd be happy with a category URL like this:

https://www.authorname.com/books/category/fiction

How can either of these categories do this?

Would prefer to add code in functions.php or .htaccess than use a plugin.

Thanks

Rebuilding an author/writer website in WordPress.

I have a custom post type of books. Working OK.

I'd also like my category base to be books. Not working as yet.

So a book URL would be like:

https://www.authorname.com/books/title

And a category URL would be:

https://www.authorname.com/books/fiction

How can I achieve this?

My workaround is a category URL like this (working):

https://www.authorname.com/books/category/fiction

Would prefer to add code in functions.php or .htaccess than use a plugin.

Thanks

Source Link

Possible for Category Base and Custom post Type to share the same slug/permalink?

Rebuilding an author/writer website in WordPress.

I have a custom post type of books. Working OK.

I'd also like my category base to be books. Not working as yet.

So a book URL would be like:

https://www.authorname.com/books/title

And a category URL would be:

https://www.authorname.com/books/fiction

Alternatively, I'd be happy with a category URL like this:

https://www.authorname.com/books/category/fiction

How can either of these categories do this?

Would prefer to add code in functions.php or .htaccess than use a plugin.

Thanks