• Resolved Abhimanyu

    (@princeeternity)


    I want a simple offline file with a list of all my posts. Preferably in a text format. How can I do this kind of export (or any other process)?

Viewing 10 replies - 1 through 10 (of 10 total)
  • All your post content is saved in the posts table in your database. You could export from there but you may have to do a little cleaning up to get it how you want.

    If you or your hosts has wp-cli you can do this:

    wp post list --fields=ID,post_title

    which gives you:

    +----+------------------------------------------------+
    | ID | post_title                                     |
    +----+------------------------------------------------+
    | 14 | Natus eum reprehenderit id                     |
    | 11 | Aspernatur amet id harum distinctio            |
    | 13 | Itaque maiores vero quo consequatur atque enim |
    | 12 | Facere nemo repellendus non                    |
    | 15 | Vel impedit iusto maiores                      |
    | 1  | Hello world!                                   |
    +----+------------------------------------------------+
    Thread Starter Abhimanyu

    (@princeeternity)

    @dave.
    You have to understand that most of us are actually beginners.

    “you can do this”

    Of course I see that’s a piece of code, but you got to tell me where exactly I type that code so that I see that result…

    Take a look at the wp-cli site to see if your set-up matches the requirements.

    https://wp-cli.org/

    It’s an amazingly easy tool to use.

    Thread Starter Abhimanyu

    (@princeeternity)

    Oh, so that’s a tool. See how confusions arise?

    So it needs Unix operating systems. Well, I have Linux, so I’ll give that a try. Thanks.

    Thread Starter Abhimanyu

    (@princeeternity)

    I did the steps, but wp --info doesn’t work: wp: command not found, says the Terminal.

    Where did you copy the wp executable? Maybe /usr/local/bin/ (the default location) isn’t in your path on your Linux distro. You could try copying it to /usr/bin instead.

    sudo mv wp-cli.phar /usr/bin/wp

    Thread Starter Abhimanyu

    (@princeeternity)

    I moved it to a different directory. Won’t that work? I moved that to home/desktop/exodata (exodata is a folder).

    If exodata is in your path, yes. If not, you’d have to supply the full path when using wp.

    Moderator keesiemeijer

    (@keesiemeijer)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘I want a simple offline file with a list of all my posts’ is closed to new replies.