zoo1023
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Pages are in the default Category?Of note: if you have a static page set as your main page, it appears to apply the Uncategorized category no matter what you do in your mySQL database. I got around this by updating the News link to the following:
<li><a href="./news/" class="nav<?php if (is_front_page()) { } else { if (in_category('1')){echo ' active';}} ?>"><img src="./images/news.jpg" alt="News" /></a></li>Forum: Fixing WordPress
In reply to: Pages are in the default Category?In case anyone else runs into this issue, I figured out a solution!
I ended up digging into my WordPress mySQL database in phpMyAdmin. Depending on your level of comfort with MySQL, though, you may not like it, and you can seriously screw up your blog if you touch the wrong thing. Plus, you’d have to do this for each and every page you create, even in the future…I’m lucky in that I don’t plan on having to mess with this again after I hand it off (and I doubt anyone else will either).
Create a new category in WordPress, note the category ID number.
Now, browse the wp_posts table and find the page in question. Note the ID.
Next, browse the wp_term_relationships table and find the object_id that matches the ID you found in wp_posts. Edit this row.
Update the “1” in the term_taxonomy_id field to the category ID number you just created in WordPress. Save, exit.
Tada!
Someone out there must be able to make a plugin that will reset your page to the non-default category fairly easily. It’s probably not very necessary except in my situation anyway, since a category on a page is kind of useless anyway, as far as WordPress goes.
Forum: Fixing WordPress
In reply to: Importing Entries from MT, SQL syntax errorNo thoughts?? I STILL can’t get this blog working, I’m so frustrated!