[wp-hackers] Map a custom url to its content.

Steve Pellham spellham at gmail.com
Tue May 18 12:35:43 UTC 2010


If the site visitor gets to a url where content already exists... the
single, page or archive templates in your theme would take over and render
that content.

Alternatively, if a visitor gets to a page with no existing content... it
may trigger the theme 404 functions. Maybe place your form in the 404
template of your theme, if it exists.  Not all themes have a 404 template

On May 18, 2010 6:58 AM, "Rajasekharan S" <rajasekharan.s at tcs.com> wrote:

Hi all,

Here's what I want my plugin to do:

I want my plugin to map a URL on the blog to some content that it will
generate like a form. The plugin generates the URL. For example:

http://www.myblog.com/my-app-reserves-this-url-automatically/

Visitng the URL generates shows a form. This web page is not a "page" of
any content type that was created using the wordpress admin panel.
Generating this page should not require the user to create a page or post
manually using the admin panel.

So my question is :

How can I map a URL to a function that will return some content that the
user will see at that URL?

Raj


Rajasekharan S
Tata Consultancy Services
Mailto: rajasekharan.s at tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.   IT Services
                       Business Solutions
                       Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list