[wp-hackers] Page with only articles from category x.

Otto otto at ottodestruct.com
Wed Aug 29 16:36:18 GMT 2007


On 8/29/07, Alex Polite <mylists at polite.se> wrote:
> I use K2.
>
> I want all posts from a specific category collected on one page, with
> a sticky post on top. And I want a link for that  page to be displayed
> in the K2 menu just like any other page.
>
> Google tells me I could use PHPExec or runPHP or some other plugin to
> insert php code into a static page. But Google also tells me that
> putting code into pages is to be avoided at great length.
>
> So what are my other alternatives?

Page Templates: http://codex.wordpress.org/Pages#Page_Templates

While these aren't necessarily the best use of them, IMO, if you want
to make a single Page that does PHP code, this is the best way.
PHPExec and runPHP and such should be avoided unless absolutely
necessary.


More information about the wp-hackers mailing list