roxer82, it’s not clear what you want to do.
Add two new categories
or
Add two fields to the categories table
Thanks for your answer MichaelH but how can I add the new two fields to the admin?
What two fields do you want to add?
One called “Marca” and other one called “Modelo”
Instead of changing wp_categories table, which would be hard to do, consider using Custom Fields.
I just did it and edited the categories.php file
but where should I edite the “update”? because when I edite some category adding this info it doesn’t save the info
You’d need to add fields with phpMyAdmin to the wp_categories table and change wp-admin/admin-db.php.
Not too sure what else you’d have to change.
Thanks!!! it’s working now 😀
One more question, do you know how to show them at the theme?
Take a look at Function_Reference/wpdb_Class for various possible ways to get data (via row or variable}.
The Select a Variable has an example for getting data from the Category table.
Thank you so much MichaelH!
One more thing, do you know what php file should I edit to do the same at the “Posts”?
Your theme’s index.php file assuming you are talking about displaying that data for each post.
Extra resources:
The Loop
Template Hierarchy