-1

Note: tried all old questions and they seem not working in current version of wp

I want to export pretty permalinks ( not in db) ,posts title,excerpt and if possible category and tags to csv Please tell me how to

3
  • 3
    What exactly have you tried so far? Please expand your question by some code, even if semi-functional. As is, this is too broad and hence not answerable. Also you are not asking a question at all, really. May 6, 2013 at 14:54
  • I tried avaialbe plugin in respostery May 7, 2013 at 6:55
  • Also stackoverflow.com/questions/3464701/… not working May 7, 2013 at 6:55

2 Answers 2

0

In what way are you trying to output them? This is a rough code, but with adaption it'll do what you want it to do- bear in mind though that this is PHP so you will need to make a page template with it, or build it into a shortcode. It cannot be used as-is and is not a packaged plugin:

<?php
$exportposts = get_posts('posts_per_page=999'); // get all of them
foreach($exportposts as $exportpost) {
setup_postdata($exportpost);
the_title();
echo " >> ";
the_permalink();
}
?>

Will output posts in a

TITLE >> PERMALINK

form.

3
  • Instead of 'posts_per_page=999' (which will cut it short if you have 1000+ posts), you can use 'posts_per_page=-1', which get all the posts. See codex.wordpress.org/Class_Reference/… .
    – Pat J
    May 7, 2013 at 14:36
  • Hi I created page template ,but something missed check output at placementmantra.com/all May 8, 2013 at 4:59
  • template used was <?php /* Template Name: all */ $exportposts = get_posts('posts_per_page=999'); // get all of them foreach($exportposts as $exportpost) { setup_postdata($exportpost); the_title(); echo " >> "; the_permalink(); } ?> May 8, 2013 at 5:00
-2

Consider using an XML sitemap generator. It's quick, easy and complete for all but no index, no follow pages

1
  • 2
    Please add details/explanation to back your answer. Dec 10, 2013 at 15:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.