Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7503561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:16:03+00:00 2026-05-29T21:16:03+00:00

Usually wordpress structure for category is as below. http://ourdomain/category/categoryname/subcategoryname but I want my structure

  • 0

Usually wordpress structure for category is as below.
http://ourdomain/category/categoryname/subcategoryname

but I want my structure to be like
http://ourdomain/categoryname1/categoryname2/categoryname3

I am not getting in which manner I can achive this thing?

I want to do is with this kind of url it should go in to some page in wp-content. after then code i will manage.

If some one has some idea regarding this direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:16:05+00:00Added an answer on May 29, 2026 at 9:16 pm

    with the following code i m able to achieve this thing.

    function site_router() {
    global $route,$wp_query,$window_title;
    $bits =explode("/",$_SERVER['REQUEST_URI']);
    $route->class = $bits[1];
    $route->method = $bits[2];
    $route->prop1 = $bits[3];
    $route->prop2 = $bits[4];
    $route->prop3 = $bits[5];
    $route->prop4 = $bits[6];
    print_r($bits);
    if ( $wp_query->is_404 ) {
    $wp_query->is_404 = false;
    include(get_template_directory() . "/home.php" ); // replace path_to_classes with the actual directory where you keep your class files
    /* at the end of your classfile include, you can create the object as $myObject = new Class */
    //$myObject->$route->method($route->prop1); // after calling the method, you can set a property in the object for the template
    
    $template = locate_template('ur path/home.php');
    $window_title = 'dynamically it will come';
    if ($template) {
    load_template($template);
    die;
    }
    }
    }
    add_action( 'wp', 'site_router');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Usually Python descriptor are defined as class attributes. But in my case, I want
usually , we use http get method to do a spellcheck query, but now
Usually I worked with PostgreSQL and never had a problem, but now I need
Usually in a django view you would do something like queryset = MyModel.objects.something() How
Usually, we only put the data we want to send as websocket.send() method's parameter,
I'm trying to put some simple jQuery code into the Wordpress header (usually just
I have a wordpress blog and don't want others to visit it. So I
I'm going to develop a theme for a WordPress blog but I'm not sure
Usually I don't have problems writing assembly and testing and debugging. But then sometimes
Usually I use $("#id").val() to return the value of the selected option, but this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.