version2_1
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Google XML Sitemaps] Including lots of external pages in sitemapShould have read the manual:
Adding other pages to the sitemap via other plugins
This plugin uses the action system of WordPress to allow other plugins
to add urls to the sitemap. Simply add your function with add_action to
the list and the plugin will execute yours every time the sitemap is build.
Use the static method “GetInstance” to get the generator and AddUrl method
to add your content.Sample:
function your_pages() {
$generatorObject = &GoogleSitemapGenerator::GetInstance(); //Please note the “&” sign for PHP4!
if($generatorObject!=null) $generatorObject->AddUrl(“http://blog.uri/tags/hello/”,time(),”daily”,0.5);
}
add_action(“sm_buildmap”,”your_pages”);Forum: Everything else WordPress
In reply to: Link own poststhanks, but a bit too late ^^
I solved it myself – wrote my own plugin:
http://familie-ottenhaus.de/simon/blog/2009/02/wordpress-eigenes-plugin-schreiben-post-functions/
http://familie-ottenhaus.de/simon/blog/2009/02/post-functions-jslink-printfile-fold/my links are like [link:ueber-mich|Über mich] (internal)
and [link:example.com/post] (external)perhaps we can benefit from each others plugins 😉 – my source code is available on my blog (links above)
but i have to warn you: my code is a bit undocumentated and my blog is in german…