HOT
22bulbjungle
No Result
View All Result
22bulbjungle
No Result
View All Result
Home Web Development Wordpress

How to Change Site Structure Using Category in WordPress

in Wordpress
Reading Time: 1 min read
397 4
0
552
SHARES
2.5k
VIEWS
Share on FacebookShare on Twitter

In this tutorial, I’m going to show you how to use the custom category to change our site or content hierarchy.

As you can see on my dashboard, there are currently three posts. Each with at least one category.

RelatedPosts

How To Fix Mixed Content Issues in WordPress

How To Add Related Posts in Elementor

How To Create A Custom Header & Footer With Elementor?

Let’s try and open each of the categories.

Looking at the URL, there’s a category text in front of the term itself.
Instead of this default setup, I’m going to change or remove the category slug from the URL.

Go to Settings, then Permalinks. Scroll down until you see the “Category base” field. Add a period on this field. And save the changes.

Now, let’s visit the category URLs again.

It looks like we’re redirected to the 404 page.

Select Permalink Structure

To fix that, go back to the Permalinks settings. Select custom structure and add the category tag.

Hit save changes.

Open the category links again. Notice that there’s no category text anymore in the URL.

Now, let’s open this post with two categories assigned to it.

How do we select which category to use as slug in the URL?

Let’s find out. Let’s edit the post and select a category to be primary.

Select a Category To Be Primary

I don’t see any option yet so let’s install Yoast SEO plugin.

After this, let’s go back to the edit post screen and then hit refresh.

Now we can select the primary category for this blog post.

Update post. And then view post.

We successfully changed the term slug used in our post URL.

Share221Tweet138Share55

Related Posts

Wordpress

How To Fix Mixed Content Issues in WordPress

by 22bulbjungle
December 11, 2022
0

Mixed content issues refer to the situation where a webpage that is loaded using a secure HTTPS protocol tries to load resources,...

Read more

How To Add Related Posts in Elementor

December 11, 2022

How To Create A Custom Header & Footer With Elementor?

December 11, 2022
How To Create a WordPress Customizer Menu (Custom Text Option)

How To Create a WordPress Customizer Menu (Custom Text Option)

December 8, 2022
Electronics, Smartphone, Computer & Tablet Repair Kit
How To Create a Beating Heart Shape Animation Using CSS

How To Create a Beating Heart Shape Animation Using CSS

December 28, 2022
How to transition a height of zero to a height of Auto

How To Transition a Height of Zero to a Height of Auto?

December 23, 2022
How To Apply CSS to Half of a Character

How To Apply CSS to Half of a Character

December 23, 2022
How To Set Cellpadding and Cellspacing Using CSS

How To Set Cellpadding and Cellspacing Using CSS

December 22, 2022
How To Prevent or Disable Copy and Paste in an Input Field

How To Prevent or Disable Copy and Paste in an Input Field

December 21, 2022
How To Turn Image Into Vintage With CSS

How To Turn Image Into Vintage With CSS

December 21, 2022

Free Do it yourself tutorials on CSS, HTML, Photoshop, Wordpress, and Woocommerce to help you learn web development and graphic design.

Follow Us

Affiliate Disclosure: 22bulbjungle is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com.

Recent Tutorials

How To Create a Beating Heart Shape Animation Using CSS

How To Create a Beating Heart Shape Animation Using CSS

December 28, 2022
How to transition a height of zero to a height of Auto

How To Transition a Height of Zero to a Height of Auto?

December 23, 2022

Categories

  • CSS
  • Duda Builder
  • Ecommerce
  • Elementor
  • Graphic Design
  • htaccess
  • Javascript
  • jQuery
  • PC Tips
  • Photoshop
  • PHP
  • Responsive design
  • Shopify
  • Video
  • Web Design
  • Web Development
  • Webdev Tips
  • Woocommerce
  • Wordpress
  • Home
  • Blog
  • Web Development
  • Graphic Design

© 2022 22BulbJungle.

No Result
View All Result
  • Home
  • Blog
  • Web Development
    • CSS
    • Javascript
    • WordPress
  • Graphic Design
    • Photoshop

© 2022 22BulbJungle.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.