• Skip to main content
  • Skip to primary sidebar
  • Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

Make WordPress use the page instead of category

April 22, 2025 By Raju Ginne

 

Background

  • https://rajuginni.com/ is the domain
  • I have a WP page called “wordpress” with content
  • I have a WordPress  category called “wordpress“
  • I have a WP post entitled “Make WordPress use the page instead of category”, and the category is set to “wordpess”

Expectations

  • When I go to https://rajuginni.com/wordpress, I want to see the page about foobars, not a WP category page that shows all blog posts with that category.
  • When I go to the blog post about fun things, the URL is https://rajuginni.com/wordpress/redirect-category-page/

 

Table of Contents

Toggle
    • Some wordpress theme Preffering page some themes priotizing cateogory
    • Alternate option Used page builder to otpimize the wordpress cateogry page
  • The dots in cateogry base setup not working in 2025
  • How the WordPress Template Hierarchy Works in Child Themes
    • WordPress Template Hierarchy: Understanding Its Structure and How It Works

Some wordpress theme Preffering page some themes priotizing cateogory

Genese frame work,

Studio pro: preferring cateogory

Magazine Pro: prefering page sometimes but also

Rank Math SEO → General Settings → Links and enable the Strip Category Base option.

 

Alternate option Used page builder to otpimize the wordpress cateogry page

2nd option: 301 redirect catgeory to page, category should be with base keyword wp.com/car/test  to wp.com/test (page)

 

The dots in cateogry base setup not working in 2025

i placed 2 dot .. its wokred temporary.

Setup

Here’s my setup (it does not require any additional plugins or code edits) A couple of installed plugins are WP Rocket and Yoast on which I’ll focus in this thread.

  1. WP Dashboard->Settings->Permalinks
  2. Select “Custom Structure” and enter /%category%/%postname%/ in the field
  3. On the same page, change “Category base” to a single dot. “.” (no quotes, just a single dot/period/full stop

I have Yoast installed, which I had set up to override the permalink settings, but I believe this messed up my task at hand.

  1. WP Dashboard->SEO->Advanced->Permalinks(tab)
  2. “Change URLs->Strip the category base…” = Keep
  3. Then you need to clear the cache. I use WP Rocket for caching, so I flushed the cache and everything now works the way it should.

How the WordPress Template Hierarchy Works in Child Themes

  1. single-{post-type}-{slug}.php within the child theme
  2. single-{post-type}-{slug}.php within the parent theme
  3. single-{post-type}.php within the child theme
  4. single-{post-type}.php within the parent theme
  5. single.php within the child theme
  6. single.php within the parent theme
  7. singular.php within the child theme
  8. singular.php within the parent theme
  9. index.php within the child theme
  10. index.php within the parent theme

WordPress Template Hierarchy: Understanding Its Structure and How It Works

 

cateogory tags pages

 

  1. category-{slug}.php
  2. category-{id}.php
  3. category.php
  4. archive.php
  5. index.php
  1. archive-{post_type}.php
  2. archive.php
  3. index.php

 

About Raju Ginne

AMFI Registered mutual fund distributor based in Hyderabad. you may contact me for mutual funds SIP investments Whatsapp: 9966367675.
nism certified research analyst

Primary Sidebar

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy