It’s simple to just edit the test post – change the title to whatever you like. Change the body to whatever you like and post it. Structure intact.
Don’t need pages? Delete it.
You seem to misunderstand me.
If it were just a plain old post it would be okay, since yeah, I’d edit it… but wp2 creates a page automatically. I can’t seem to reclassify it as a post. What’s more, if I delete a page, primary key (id-1, id-2, etc.) is deleted from the database and I’ll never get it back.
By default, the first page is given id-2. I can’t delete that because that will correspond to my second comic strip.
My script automatically assigns the number of the comicstrip as the link to it’s newspost, so…
let’s say "view.php?strip_id=2"
will correspond to "index.php?p=2"
.
If I delete id-2, that’ll create a big problem for my script. Also, I’ve thought about just editing the page anyway, but that would mess up the chronological order of things once I put up an archive index (pages are treated differently from posts).
You’ll have to edit install.php in the wp-admin/ directory. Make a backup of it first…
In install.php you’ll find short sections marked:
// First post
// Default comment
// First Page
After each of these locate their respective $wpdb->query
line and either remove or comment it out.
ID’s are determined at the time of creation, not posting. Having a post / page in draft and publishing another will mean the first published will have a higher ID than the draft which was created first.
If you are using permalinks then ID’s are irrelevant.
Deleteing a post / page does not reorder the ID’s
Keeping the ID’s absolutely sequential will be very hard to do for no performance or aesthetic gain.
Thanks, kafkaesqui, that solved my problem. Hey podz, thanks anyway, even though I disagree – with care it’s quite simple to keep the id’s sequential.
Thanks for the help guys.