Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 04-16-2008, 01:41 AM   #1 (permalink)
Contributing Member
 
DaHLiA's Avatar
 
Join Date: 10-26-06
Location: India
Posts: 120
iTrader: 1 / 100%
DaHLiA is liked by many
Send a message via Yahoo to DaHLiA
How to create sitemap for wordpress blog?

I tried Google XML Sitemap generator plug-in but it keeps giving me the error:

There was a problem while notifying Google. View result
There was a problem while notifying MSN.com. View result
There was a problem while notifying Ask.com. View result


When clicked on the view result link, it takes me to my blog's 404 page not found page!

So, i tried this another approach which I found via google.

1. Installed and activated RunPHP plug-in. Set the permission for Admin
2. Created a new Page via Wordpress admin panel and entered the below code

PHP Code:
<?php
global $wpdb;

$allposts $wpdb->get_results(”SELECT FROM wp_posts WHERE post_type=’post’ AND post_status=’publish’ ORDER BY post_date DESC”);

foreach(
$allposts as $ap) {
$perma get_permalink($ap->ID);
print 
<a href=” $perma >” $ap->post_title </a><br/>;
}

?>
Now my page's content area is blank.

Any idea how can I resolve this?
Thanks!
__________________
Cheers,
DaHLiA
___________________________________
My Virtual Shelter
“Knowing is not enough; we must apply. Willing is not enough; we must do.”

Last edited by DaHLiA; 04-16-2008 at 01:53 AM..
DaHLiA is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-16-2008, 02:27 AM   #2 (permalink)
Contributing Member
 
Locomotive's Avatar
 
Join Date: 12-05-06
Posts: 291
iTrader: 0 / 0%
Latest Blog:
None

Locomotive is liked by many
DaHLiA, it is quite difficult to understand. Have you tried to ask the same on the WP support forums? It seems that you are trying to edit wrong file.
BTW what sitemap are you trying to install? Google or ordinary one?
Locomotive is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-16-2008, 02:46 AM   #3 (permalink)
Contributing Member
 
DaHLiA's Avatar
 
Join Date: 10-26-06
Location: India
Posts: 120
iTrader: 1 / 100%
DaHLiA is liked by many
Send a message via Yahoo to DaHLiA
Nope Locomotive, have not yet asked the WP Support forum. I shall do that.
I want to generate a Google Sitemap that is why I used that plug-in but that was not working for me. So in the meantime, I wanted to create a simple sitemap and that is why I tried that second method which I mentioned above. Now neither that works.

Can anyone help me with generating a simple sitemap for my blog if you have no idea with that plug-in issue, please?
__________________
Cheers,
DaHLiA
___________________________________
My Virtual Shelter
“Knowing is not enough; we must apply. Willing is not enough; we must do.”
DaHLiA is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-18-2008, 11:55 AM   #4 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,330
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
This may be a stupid question, but did you register an account on Google, Live and Yahoo!?
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is online now  
Add Post to del.icio.us
Reply With Quote
Old 04-18-2008, 12:07 PM   #5 (permalink)
Contributing Member
 
DaHLiA's Avatar
 
Join Date: 10-26-06
Location: India
Posts: 120
iTrader: 1 / 100%
DaHLiA is liked by many
Send a message via Yahoo to DaHLiA
Are you referring to the Gmail, MSN and Y!Mail accounts Izzmo? Yup, I have.

Meanwhile I raised this query with WP Support forum. One of the moderators there advised me that this could be a problem with my host which probably is not allowing outgoing links. I don't understand what he exactly meant tho. I have again raised a query there
__________________
Cheers,
DaHLiA
___________________________________
My Virtual Shelter
“Knowing is not enough; we must apply. Willing is not enough; we must do.”
DaHLiA is offline  
Add Post to del.icio.us
Reply With Quote
Old 04-24-2008, 08:32 AM   #6 (permalink)
Contributing Member
 
teampower's Avatar
 
Join Date: 06-08-07
Location: Hire-Maid
Posts: 160
iTrader: 2 / 100%
teampower is liked by many
Send a message via AIM to teampower Send a message via MSN to teampower Send a message via Yahoo to teampower
why dont just use wp sitemap pluggin
teampower is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How create a sidebar on my blogger blog?? rony888 Blogging Forum 2 12-19-2006 01:43 AM
Looking for a dynamic xml sitemap generator (sitemap.xml) for Google Sitemap beta2 Luca L. Google Forum 0 07-30-2006 06:17 AM
Blog software to create subdomain on website agent14 Blogging Forum 2 07-07-2006 11:10 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 08:02 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.