[wp-hackers] Integrate URLs from custom plugins?
Boris Anthony
lists.permutype at gmail.com
Fri Jun 1 23:51:45 GMT 2007
Thanks again Alex. I'm affraid I am not making myself clear. sorry
about that.
In my examples, map and stats are not categories but modifiers I
attach... like
/category/foobar/feed
the reason I want to forward to another template is because, for the
map for example I would incude all the stuff I need to display a map
(and the whole layut wuld be different anyways), and for stats as well.
another example is I've been wanting to write a trackback plugin that
allows for category trackbacks.
/category/foobar/trackback
in this case I'd forward to a wp-cat-trackback.php script
etc. :)
thnx again!
B.
On 1-Jun-07, at 7:07 PM, Alex Günsche wrote:
> On Fri, 2007-06-01 at 18:57 -0400, Boris Anthony wrote:
>> two possible uses I am looking at:
>> /category/foobar/map -> full window map of posts pinned to places
>> /category/foobar/stats -> posting stats thingy
>
> Maybe you could simply omit the WP loop for that special purpose in
> your
> category.php (or index.php if you don't have a category.php):
>
> if ( is_category('map') )
> {
> map stuff;
> }
> elseif ( is_category('stats') )
> {
> stats stuff;
> }
> else
> {
> Da Loop;
> }
>
> Alex
>
> --
> Alex Günsche, Zirona OpenSource-Consulting
> http://www.zirona.com/ | Hilfe für das HQ AC: http://www.prohq.de
> PubKey for this address: http://www.zirona.com/misc/ag.ml2007.asc
>
> _______________________________________________
> 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