12-06-2007, 11:50 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Location: Newcastle, UK
Posts: 113
Thanks: 3
|
Passing a variable to a function
I'm trying to pass a variable to a function in my wordpress skin.
Basically the function (which is a plugin) selects the latest articles from a certain category. What I want to do is define the category number when I call the function.
To call the function I would write:
Code:
<?php echo posts_by_category(); ?>
Is there something I could add so I can define the category number when I call it?
|
|
|