Well it can be done, but still a little messy. Maybe this should be looked at in 3.1? It could be a one line fix. Something like 'index' => true in the arguments. All I want to do is query post_type but I want my url to stay pretty.
I think the template could be made as a short code. That would make upgrades on themes go easier, and make the plugin easier to move between themes. On Thu, Mar 25, 2010 at 22:57, Dion Hulse (dd32) <[email protected]>wrote: > Yes it would mean 1 page & 1 template per post_type. > > A smart person could create a single template which based the post_type off > the current pages name or a custom field, or, the body of the post. > > > On Fri, 26 Mar 2010 11:43:25 +1200, Azizur Rahman < > [email protected] <prodevstudio%[email protected]>> > wrote: > > Wouldn't creating a page to list custom post types means you'd need to >> create a page per custom post type and custom page templates. >> >> Aren't custom post type meant to be different from post and pages? Am I >> missing something here? >> >> I am sure the rewrite would be better. >> >> Kind Regards, >> Azizur Rahman >> >> ---- >> Do you need cost effective web hosting solution and Domain name try >> http://prodevstudio.com >> >> >> On Thu, Mar 25, 2010 at 3:22 PM, Daniel Morrison <[email protected] >> >wrote: >> >> It still isn't working. Maybe I didn't clarify what was going on. For an >>> individual post the permalink is >>> http://beta.danstechstop.com/sermons/random. That is what I want, but if >>> I >>> want an index of every post in the custom type it is still >>> http://danstechstop.com/?post_type=sermons which I don't want. >>> >>> I think I am going to have to use the custom templates. That will work. >>> >>> Thanks. >>> >>> On Thu, Mar 25, 2010 at 08:19, John Blackbourn >>> <[email protected] <johnbillion%[email protected]> < >>> johnbillion%[email protected] <johnbillion%[email protected]>>< >>> johnbillion%[email protected] <johnbillion%[email protected]> < >>> johnbillion%[email protected] <johnbillion%[email protected]>>> >>> > wrote: >>> >>> > Or just create a page called 'Sermons' and give it a custom template >>> > that only shows your 'sermon' post types. >>> > >>> > On Thu, Mar 25, 2010 at 2:54 PM, Ezwan Aizat Bin Abdullah Faiz >>> > <[email protected]> wrote: >>> > > On Thu, Mar 25, 2010 at 10:45 PM, Daniel Morrison < >>> [email protected] >>> > >wrote: >>> > > >>> > >> Hello all, >>> > >> >>> > >> Is there any way to get the custom posts to display as a directory >>> for >>> > >> example instead of http://beta.danstechstop.com/?post_type=sermons >>> > >> http://beta.danstechstop.com/sermons. >>> > >> >>> > > >>> > > You will need to create a rewrite rule if you want that to happen, >>> and >>> > then >>> > > enable permalinks. >>> > > >>> > > >>> > >> Another question. Is there any way to change the index meta data >>> > >> (single-sermons.php I think) from a plugin? >>> > > >>> > > >>> > > Index meta data? I'm not so sure what you mean. >>> > > >>> > > Regards, >>> > > Aizat >>> > > >>> > > -- >>> > > http://aizatto.com >>> > > _______________________________________________ >>> > > wp-testers mailing list >>> > > [email protected] >>> > > http://lists.automattic.com/mailman/listinfo/wp-testers >>> > > >>> > _______________________________________________ >>> > wp-testers mailing list >>> > [email protected] >>> > http://lists.automattic.com/mailman/listinfo/wp-testers >>> > >>> _______________________________________________ >>> wp-testers mailing list >>> [email protected] >>> http://lists.automattic.com/mailman/listinfo/wp-testers >>> >>> _______________________________________________ >> wp-testers mailing list >> [email protected] >> http://lists.automattic.com/mailman/listinfo/wp-testers >> >> > > -- > Dion Hulse / dd32 > Contact: > e: [email protected] > Web: http://dd32.id.au/ > > _______________________________________________ > wp-testers mailing list > [email protected] > http://lists.automattic.com/mailman/listinfo/wp-testers > _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
