WordPress – get List of all URLs of your Blog’s posts


Open Editor in your self-hosted wordpress blog.

1.Wordpress - Editor
1.Wordpress – Editor

Write following code in the editor after the line:

<!– POST ENTRY END –>

<h3>Last 1000 Articles</h3>

<ul>

<?php query_posts(‘showposts=1000’); ?>

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

<li><?php the_permalink() ?></li>

<?php endwhile; endif; ?>

</ul>

Open the Page in Browser to get Last 1000 URLs of your posts in your wordpress blog

If you encounter any error such as

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 131072 bytes) in /home/xxxxx/public_html/xxxxxxxxxx/wp-includes/wp-db.php on line 1242

 

It makes more sense to add the line: define(‘WP_MEMORY_LIMIT’, ’64M’);

to wp-config.php – wp-settings.php will be overwritten when you upgrade, but if the value is already defined in wp-config then it uses what is set there.

You can find wp-config.php in cpanel:

Open cPanel and Click on File Manager

2.Wordpress - cPanel
2.Wordpress – cPanel

Select Web Root

3.Wordpress - cPanel - Directory Selection
3.Wordpress – cPanel – Directory Selection

Select wp-config.php and click on Edit and add Line: define(‘WP_MEMORY_LIMIT’, ’64M’); at the end of File

4.Wordpress - cPanel - wp-config
4.Wordpress – cPanel – wp-config

Done.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s