The MU forums have moved to WordPress.org

How to auto insert Category Base when someone signs up? (4 posts)

  1. Cruz
    Member
    Posted 19 years ago #

    Dear experts,

    A programmer worked on modifying the category link (by adding a word to it.) However, for new users who sign up, the user must manually add the word to category base to make it work. How can I make it so that the category base is automatically inserted when the user sign up?

    p.s. I've tried modifying category base from phpmyadmin. I have also tried adding the word to the category base via admin. However, if I change the category base with above 2 methods, only the "link" would show up the right URL. But the posts cannot be found. So far it can only work when I login as the blog user and make changes to category base. Due to this I believe the change of category base involve no only the inserting of the word but also some value changes somewhere else in the database.

    Thank you very much for your advice in this.

  2. drmike
    Member
    Posted 19 years ago #

    Greets:

    Category base is defined in the wp-admin/upgrade-schema.php file. Look for the following add_option line:

    add_option('category_base');

    Change it to what you want. For example:

    add_option('category_base', '/mycategories/');

    I think that would work.

    Hope this helps,
    -drmike

  3. Cruz
    Member
    Posted 19 years ago #

    Thank you drmike!
    Trying this out!

  4. Cruz
    Member
    Posted 19 years ago #

    Thank you sooo much!
    It's working fine.
    Wheeeew...

About this Topic