Can you insert the blogroll links and categories into the code before you upload it?
Wordpress question
Collapse
X
-
Why would anyone do that at first place? Everything is of course possible, I just don't find the reason for doing it manually when you can add them automatically.
Sig for sale. Affordable prices. Contact me and get a great deal ;)
My contact:
ICQ: 944-320-46
e-mail: manca {AT} HotFreeSex4All.com -
What's the end result you're looking for?
From what you wrote it sounds like you want your blogroll and categories populated before you setup WP on a live server. Which is pretty simple to do, but is that your question?
Maybe you can elaborate on your question?Comment
-
-
You are exactly right. That is what I want.Comment
-
Comment
-
just throw your DB into place... your DB holds the goldComment
-
edit the php in text? ... a little confused about ur questionComment
-
As Jace also suggested, the way to do it would be to create a local database filled with the data you want, then just import it into the live database.
You could do the dump of the local database and import it into the live database, or run the queries manually. For example, to insert a category into the database:
To insert a basic link into your blogroll:Code:INSERT INTO `wp_categories` ( `cat_ID` , `cat_name` , `category_nicename` , `category_description` , `category_parent` ) VALUES ( '', 'test cat name', 'test-cat-name', '', '0' );
* both of these examples assume your table prefix is 'wp_'Code:INSERT INTO `wp_links` ( `link_id` , `link_url` , `link_name` , `link_image` , `link_target` , `link_category` , `link_description` , `link_visible` , `link_owner` , `link_rating` , `link_updated` , `link_rel` , `link_notes` , `link_rss` ) VALUES ( '', 'httpwwwtesturlcom', 'Test Blogroll Friend', '', '', '1', '', 'Y', '1', '0', '0000-00-00 00:00:00', '', '', '' );
Make sure "httpwwwtesturlcom" in the above example is fixed (include colon, slashes, periods) before adding. I'm unable to post links apparently.
Hope this helps.Comment



Comment