List all URLs of publiswayhed posts and pages in WordPress in a convenient way – this URLs are the public URLs and intended for SEO, Promotion with AdWords etc. After 3 years or so, an informative website like the one gradually get “aged” and the needs to promote, organize, properly backlink, redesigning becomes an important work. The SEO part or AdWords management are separate topic, what we want to talk about is simply list all URLs of published posts and pages in WordPress.
Why to List All URLs of Published Posts and Pages in WordPress
Usually, hugely copy pasting by Made for AdSense websites creates the issue, as they are ‘fresh’, they can ride up in SERP. However, the image search result usually do not change that much. Off site SEO, at minimum is always required even if real, legit good backlinks are present. Plus, Google adds hundreds of bizarre exceptions to their algorithm to prevent spam. Practically, for a honest business; actually the domains should undergo for a whitelisting instead of changing these. These are usually done to keep Google’s AdWords business up and running. If you talk with any good SEO expert, they will always suggest you to go for backlinking instead of direct AdWords for long term benefit if the budget is lesser. Also, many website closes, many pages get deleted – these demands scheduled backlinking. Again, we are not going to the backlinking or web promotion strategy itself. Google will obviously state that they have the best technology – no one says against their product ! But the fact at the same time is – other Search Engines are far bad in terms of speed and logic of crawling, indexing.
It is quite normal life cycle of since Google Inc. is dominating and managing this time properly usually makes the website to get a stable position on SERP. This re-working is quite difficult by a single webmaster with 5000 or more posts. List all URLs of published posts and pages in WordPress also helps to directly edit the posts.
---
Irrespective of the reason of fetching the URLs, obviously the list of all URLs are important to the webmaster.
How to List All URLs of Published Posts and Pages in WordPres
Method 1
Here is a standalone PHP file that you can save into the root of your website and name it as export.php (for example) and when you call it with GET request, i.e. load the path on your browser it will send a tab-delimited plain text list of posts with the pretty permalink, the post title and the post type. Just load the URL in your browser and then “save as” to a text file you can then load in Excel or however else you need to process it :
Method 2
There is another method mentioned by David George by using MySQL Query :
1 | SELECT wpp.post_title, wpp.guid, wpp.post_date, CONCAT(wpo_su.option_value, REPLACE( REPLACE( REPLACE( REPLACE(wpo.option_value,'%year%',date_format(wpp.post_date,'%Y')) ,'%monthnum%',date_format(wpp.post_date,'%m')) ,'%day%',date_format(wpp.post_date,'%d')) ,'%postname%',wpp.post_name ) ) as permalink FROM wp_posts wpp INNER JOIN wp_options wpo on wpo.option_name='permalink_structure' and wpo.blog_id=0 INNER JOIN wp_options wpo_su on wpo_su.option_name='siteurl' and wpo_su.blog_id=wpo.blog_id WHERE wpp.post_type = 'post' AND wpp.post_status = 'publish' ORDER BY wpp.post_date DESC |
Another method is to Use phpmyadmin and export the wp_posts table from the database in any output format you want :
Use the query SELECT guid FROM wp_posts
and then export from that. You may need to raise the php memory allocation for a large query like that or limit the query, i.e. SELECT guid FROM wp_posts LIMIT 0 , 1000
at a time.
Method 3
Using a WordPress Template :
You can create a Template like this one :
Method 4
Attachment URls or modification :
Method 5
There is WordPress Plugin too! Here is the URL :
1 | http://wordpress.org/plugins/list-all-urls/ |