[wp-hackers] Best way to create a "page" with plugin?

Rob r at robm.me.uk
Mon Nov 27 19:30:12 GMT 2006


On 27/11/06, Matt Mullenweg <m at mullenweg.com> wrote:
>
> Rob wrote:
> > Is there a better way to create what is in effect a page? I'm thinking
> no,
> > since themes vary so much, but here's hoping! :k
>
> What I've seen done that is neat is simply asking people to put in a
> static string, like %%CONTACTFORM%%, in any post/page they want your
> stuff to appear. Then just strstr for that, and if it's there
> str_replace in a filter on post_content.
>
> --
> Matt Mullenweg
>   http://photomatt.net | http://wordpress.org
> http://automattic.com | http://akismet.com
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>

This is actually what I ended up doing for the new plugin I'm working on,
since I prefer the customisation it offers. It's not practical for every
plugin, though--certainly nothing massively complex or dynamic.

-- 
Rob Miller
http://robm.me.uk/


More information about the wp-hackers mailing list