[wp-hackers] CPT VS Plugin
Pauli Price
pauli.price at gmail.com
Wed Nov 16 23:55:12 UTC 2011
Leo,
With respect to the pretty URLs, review the following links, which provide
examples of using WordPress's API to create custom URL formats. You are
not limited to either using a CPT or resorting to .htaccess and php.
http://wordpress.stackexchange.com/questions/9870/how-do-you-create-a-virtual-page-in-wordpress
http://theme.fm/2011/11/wordpress-internals-the-rewrite-api-2684/
http://planetozh.com/blog/2011/01/pretty-login-url-a-simple-rewrite-api-plugin-example/
Pauli
On Wed, Nov 16, 2011 at 3:55 PM, Leo Baiano <ljunior2005 at gmail.com> wrote:
> >> You can make the URLs however you want with a little PHP coding effort.
>
> First desclpa difficulty in expressing myself, my English is not great.
>
> So, with respect to friendly URL's I think would have to use PHP
> and. Htaccess, WP already has some rules in. Htaccess and my concern is to
> generate conflict between the rules.
>
> Thanks for listening, I'm starting to lean the construction based
> on CPT right, I'm riding a diagram here on this basis to have a better idea
> of what will be.
>
> 2011/11/16 Mike Schinkel <mikeschinkel at newclarity.net>
>
> > On Nov 16, 2011, at 3:06 PM, Leo Baiano wrote:
> > > Mike Oops, I understood everything you said but I got the impression
> > > that the structure will be a little complex,
> >
> > Your requirements are also a little complex.
> >
> > > it may be difficult to
> > > organize so that the customer can create relations in a simple and,
> above
> > > all, relationships between the entities will becomes poor.
> >
> > Depends on your implementation skills. For some people, yes, very
> > difficult.
> >
> > > You suggested using post_parent for one to many relationships, but I
> > would
> > > not be as simple as not always the same entities are part of the CPT.
> > For example,
> > > course and class have a one to many relationship, because one can
> > > have an ongoing series ofclasses, but I can not change any of
> > > the taxonomies of two, soon they would have to be TLC, as I would say
> > > that a post is class CPTson of a post of the CPT course? Is it
> possible?
> >
> > I realize that English is not your primary language and since I can only
> > speak English I appreciate how a 2nd language is difficult, but still
> that
> > paragraph is incomplete so I don't know what you meant, and I don't
> > recognize "TLC."
> >
> > > The CPT is a good alternative, but would be back one of doubts
> > > and difficulties in connecting the entities that worry me, because it
> > > can become too complicated to list the information in front
> > > and in back manage.
> >
> > I just explained how I would do it to try to help you. If you dislike the
> > suggestions I'm sure you can come up with other ways that work for you.
> >
> > > The alternative of creating the tables behind the advantage of having
> the
> > > freedom to shape the bank, but I worry about the URL's as you would to
> > > generate the URLs in a friendly, following the pattern of the site?
> >
> > You can make the URLs however you want with a little PHP coding effort.
> >
> > -Mike
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
>
>
>
> --
> Amplexos,
>
> Leo Baiano
> http://www.leobaiano.com
> http://www.blog.ljunior.com
> http://www.mcelebridades.com
> http://www.twitter.com/leobaiano
> _______________________________________________
> 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