Plugin Directory


Opened 8 years ago

Closed 8 years ago

#1033 closed enhancement (worksforme)

API for plugins to add dynamic pages

Reported by: usermrpapa Owned by: arnee
Priority: normal Severity: normal
Plugin: google-sitemap-generator Keywords:
Cc: usermrpapa



Mr Papa form Simple:Press Forum (http://simplepressforum.com) here. Our WP plugin is for including a forum in your wordpress blog. Our plugin dynamically generates all of its content on a single wordpress page.

With your plugin, that wordpress page is found, but obviously none of the pseudo pages using url rewriting and permalinks are found. It would be great if there was some sort of API for plugins to add their dynamically generated content (permalinks with rewrite) pages to your generated xml sitemap.

Hopefully, that makes sense. Thanks.

Change History (5)

comment:1 @arnee8 years ago

  • Resolution set to fixed
  • Status changed from new to closed


thats already possible :-)

function your_pages() {
  $generatorObject = &GoogleSitemapGenerator::GetInstance(); //Please note the "&" sign!
  if($generatorObject!=null) $generatorObject->AddUrl("http://blog.uri/tags/hello/",time(),"daily",0.5);

The documentation.txt contains (a little bit) more explanation. Let me know if you need more details!

Best regards,


comment:2 @usermrpapa8 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

really? going to have to read up on that!

but does it work with dynamically generated page? in our case, everything appears on a single wp page, eg http://yoursite.com/myforum

every pageview is dynamically generated with pretty permalinks, eg http://yoursite.com/myforum/some-forum/some-topic

but its all really just content output through the_content() on that single wp page...

or are you saying, that when our action routine is called (your example of your_pages()) we should loop through all of our topics and execute the AddUrl() function?

sorry, really should read up before asking these questions...

reopening just to get your attention ;) feel free to reclose...

comment:3 @usermrpapa8 years ago

  • Cc usermrpapa removed

comment:4 @usermrpapa8 years ago

  • Cc usermrpapa added

comment:5 @usermrpapa8 years ago

  • Resolution set to worksforme
  • Status changed from reopened to closed

a little reading does the mind good! got it working! thanks!

Note: See TracTickets for help on using tickets.