Is there any way to mass export wordpress links?

Status
Not open for further replies.

Aveligand

New member
Jun 11, 2007
207
1
0
I have a dozen or so WP blogs with few hundred posts each that I want to do some linking with.

Is there any script, method or plugin that will mass export all the post titles (as anchor text) along with the post links?
 


Yeah, I'm going down that route if there isn't a free solution available. Intuitively, it wouldn't be likely that I'm the first to need something like this. :)
 
mysql -B -u root -p -e 'SELECT CONCAT("<a href=\"http://mysite.com/", post_name, "\">", post_title, "</a>") FROM wp_posts WHERE post_status = 1' wordpress

Substitute usernames/urls/db/table names as appropriate.

Sean
 
mysql -B -u root -p -e 'SELECT CONCAT("<a href=\"http://mysite.com/", post_name, "\">", post_title, "</a>") FROM wp_posts WHERE post_status = 1' wordpress

Substitute usernames/urls/db/table names as appropriate.

Sean

Holy shit, I never even thought to pull data like that. Nice! Very nice!
 
EDIT: This is what I had to use instead of post_status = 1.

SELECT CONCAT("<a href=\"http://mysite.com/", post_name, "\">", post_title, "</a>") FROM wp_posts WHERE post_status = 'publish'
 
Status
Not open for further replies.