1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[GET] Export your Wordpress posts - ready to blast

Discussion in 'Blogging' started by magicmastermind, Feb 15, 2012.

  1. magicmastermind

    magicmastermind Registered Member

    Joined:
    Sep 11, 2010
    Messages:
    73
    Likes Received:
    26
    I wrote this little code snippet, you can extract all posts from your wordpress blog with the title in an ready-to-blast format.

    You just export all your posts from your wordpress blog and then you put them in to scrapebox and blast whatever XXk comments out with your deeplinks+title in it.
    Normally, you just point backlinks to your main page url.com but if you get deeplinks to url.com/abc/xyz with some relevant anchor, these pages will rank better too, your whole site appears much more natural to fu*king G and you can get some traffic trough longtail keywords from within you post titles !

    e.g.
    Code:
    http://www.mydomain.com/blog/my-post.html {My Post Title}
    Instructions:

    1. copy code to notepad
    2. save as "extract-posts.php"
    3. upload to "/wp-content/" folder on your wordpress blog
    4. open "yoururl.com/wp-content/extract-posts.php" in your browser
    5. tadaaa, there you go, paste the lines in your favorite submitter tool and blast the shit
    I created several versions of the code, chose the one which suits the best, if you need code for some submitter not listed below, just ask!

    Standard Link Code: <a href="URL">TITLE</a>
    Code:
    <?php
    
    require_once('../wp-blog-header.php');
    query_posts('&showposts=-1&order=ASC');
    
    while (have_posts()) : the_post(); ?>
    
    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    <br />
    
    <?php endwhile; ?>


    Advanced Links SickSubmitter Code
    URL##{TITLE}
    Code:
    <?php
    
    require_once('../wp-blog-header.php');
    query_posts('&showposts=-1&order=ASC');
    
    while (have_posts()) : the_post(); ?>
    
    <?php the_permalink(); ?>##{<?php the_title(); ?>}
    <br />
    
    <?php endwhile; ?>
    Scrapebox Code URL {TITLE}
    Code:
    <?php
    
    require_once('../wp-blog-header.php');
    query_posts('&showposts=-1&order=ASC');
    
    while (have_posts()) : the_post(); ?>
    
    <?php the_permalink(); ?> {<?php the_title(); ?>}
    <br />
    
    <?php endwhile; ?>
     
    • Thanks Thanks x 9
    Last edited: Feb 15, 2012
  2. moose123

    moose123 Regular Member

    Joined:
    Aug 5, 2011
    Messages:
    354
    Likes Received:
    86
    Occupation:
    selling/wholesale/dropship
    nice share, will try this
     
  3. noermanto

    noermanto Regular Member

    Joined:
    Nov 18, 2009
    Messages:
    305
    Likes Received:
    288
    Occupation:
    None
    Location:
    # JKT #
    Home Page:
    Niche PHP scrips, I usually playoaround using phpMyAdmin and do some manual editing using excel and Notepad++
     
  4. cstmprod

    cstmprod Registered Member

    Joined:
    Mar 6, 2010
    Messages:
    52
    Likes Received:
    15
    Brilliant thanks a lot!
     
  5. macmoneymaker

    macmoneymaker Registered Member

    Joined:
    Oct 21, 2011
    Messages:
    62
    Likes Received:
    9
    +rep for the effort! :)
     
  6. gr8divas

    gr8divas Registered Member

    Joined:
    Mar 28, 2009
    Messages:
    57
    Likes Received:
    7
    Great one, Can you do me a favour, generate the same list with tags instead of title.

    Never mind I was able to do that myself here is the code -

    Code:
    <?php
    
    require_once('../wp-blog-header.php');
    query_posts('&showposts=-1&order=ASC');
    
    while (have_posts()) : the_post(); ?>
    
    <?php the_permalink(); ?> {<?php the_tags('','|',''); ?>}
    <br />
    
    <?php endwhile; ?>
    This will generate list of post with Tags in Spin format next to it ready to be used in Scrapebox
     
    Last edited: Feb 15, 2012
  7. brseo

    brseo Registered Member

    Joined:
    Nov 4, 2011
    Messages:
    84
    Likes Received:
    34
    Occupation:
    Music Shop Owner
    Location:
    SP - Brazil
    Nice share mate, i´ll test it.
     
  8. dufc1983

    dufc1983 Power Member

    Joined:
    Apr 10, 2010
    Messages:
    504
    Likes Received:
    122
    Rep+

    nice share

    :)

    btw guyz how can i extract url & Title & tags

    my PHP not so good. soz
     
    Last edited: Feb 15, 2012
  9. alexjer12

    alexjer12 Registered Member

    Joined:
    Nov 4, 2011
    Messages:
    64
    Likes Received:
    16
    wow this is a great share
    :)Rep+
     
  10. magicmastermind

    magicmastermind Registered Member

    Joined:
    Sep 11, 2010
    Messages:
    73
    Likes Received:
    26
    You can see the code which generates title and/or tags on this post.
    But I am wondering how you want to extract both of em ?
    Spin it like: {Title|Tag|Tag|Tag} or what ?
     
  11. fmOzilla

    fmOzilla Power Member

    Joined:
    Nov 11, 2011
    Messages:
    714
    Likes Received:
    384
    Location:
    C:\Windows\System32
    how can i use this? o_O
     
  12. rickmancbr

    rickmancbr Newbie

    Joined:
    Aug 24, 2011
    Messages:
    3
    Likes Received:
    0
    Location:
    Fly Over Country
    Thanks Magic, works like . . . . Magic.