WordPress.org

Ready to get started?Download WordPress

Forums

where to define Category_nicename ?! (10 posts)

  1. Ali_ix
    Member
    Posted 9 years ago #

    hi all
    why there is no field 4 category_nicename in admin section ?!
    there is any way to edit it ?!
    i did it with PHPMYADMIN but thal is not the way !
    Tanx 4 your help
    i am using WP 1.2 mingus
    When 1.3 will be available ( released ?) ?
    Ali ix

  2. Ali_ix
    Member
    Posted 9 years ago #

    i think that is in Writing Post page ! yes ?!
    i want a field to insert the categori_nice name values in DB 4 each categori !
    in categori tab we have : ID Name Description # Posts Action
    and there must be another one as : Nicename
    and a field to define it ! :(
    Tanx ...
    Ali ix

  3. Ali_ix
    Member
    Posted 9 years ago #

    :(((

  4. OperaManiac
    Member
    Posted 9 years ago #

    I asked Matt sometime back to have a category slug feature. But well apparently no one else was interested.

  5. Ali_ix
    Member
    Posted 9 years ago #

    yes ! that is usefull and necesseri ! :(
    i think that is forgoten !
    Cuz there is a Row in table catogeries named : nice_name ! in DB ;)
    and we just wants some code and a form to put our values in the nice_name section in DB !
    i did it with phpmyadmin ! but there must be a form in ADMIN CP ! :(
    Tanx ...
    Ali ix

  6. OperaManiac
    Member
    Posted 9 years ago #

    so it works by inserting a value through phpmyadmin?
    that would be a feature that is not accessible from the front end :D

  7. Ali_ix
    Member
    Posted 9 years ago #

    yes !
    it works !
    i have it on my blog : weblog.corelist.net
    That is one of hidden sides of WP ! :)))

  8. Ali_ix
    Member
    Posted 9 years ago #

    :((

  9. Anonymous
    Unregistered
    Posted 9 years ago #

    a little guide how to add category nicename by DIY method:
    1. open in your favourite editor /wp-admin/categories.php
    2. on line 50
    replace $category_nicename = sanitize_title($cat_name);
    with $category_nicename= addslashes(stripslashes(stripslashes($_POST['cat_nicename'])));
    3. right after line 92
    add $cat_nicename = stripslashes($category->category_nicename);
    4. around line 101
    after <?php _e('Category name:') ?>

    <input type="text" name="cat_name" value="<?php echo $cat_name; ?>" />
    add <?php _e('Category safe-URL:') ?>

    <input type="text" name="cat_nicename" value="<?php echo $cat_nicename; ?>" />
    5. around line 132
    replace line $category_nicename = sanitize_title($cat_name);
    with $category_nicename = $wpdb->escape(stripslashes($_POST['cat_nicename']));
    I hope this will be implemented in next WP release..
    and I also hope the code I just wrote will be displayed correctly :D

  10. Ali_ix
    Member
    Posted 9 years ago #

    Tanx A lot !
    I will test it Now :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.