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
 
Thread Tools Display Modes
Share |
  #1  
Old 04-16-2008, 12:41 AM
DaHLiA's Avatar
DaHLiA DaHLiA is offline
Contributing Member
 
Join Date: 10-25-06
Location: India
Posts: 124
iTrader: 1 / 100%
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!

Last edited by DaHLiA; 04-16-2008 at 12:53 AM.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 04-16-2008, 01:27 AM
Locomotive's Avatar
Locomotive Locomotive is offline
Contributing Member
 
Join Date: 12-05-06
Posts: 313
iTrader: 0 / 0%
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?
 
Reply With Quote
  #3  
Old 04-16-2008, 01:46 AM
DaHLiA's Avatar
DaHLiA DaHLiA is offline
Contributing Member
 
Join Date: 10-25-06
Location: India
Posts: 124
iTrader: 1 / 100%
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?
 
Reply With Quote
  #4  
Old 04-18-2008, 10:55 AM
Izzmo's Avatar
Izzmo Izzmo is offline
v7n Mentor
 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
This may be a stupid question, but did you register an account on Google, Live and Yahoo!?
 
Reply With Quote
  #5  
Old 04-18-2008, 11:07 AM
DaHLiA's Avatar
DaHLiA DaHLiA is offline
Contributing Member
 
Join Date: 10-25-06
Location: India
Posts: 124
iTrader: 1 / 100%
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
 
Reply With Quote
  #6  
Old 04-24-2008, 07:32 AM
teampower's Avatar
teampower teampower is offline
Contributing Member
 
Join Date: 06-08-07
Location: Hire-Maid
Posts: 159
iTrader: 2 / 100%
why dont just use wp sitemap pluggin
 
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

Forum Jump

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 05:17 AM
Blog software to create subdomain on website agent14 Blogging Forum 2 07-07-2006 10:10 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:35 PM.
Powered by vBulletin
Copyright © 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC