[wp-hackers] Passing arguments to wp_list_pages

Mike Schinkel mikeschinkel at gmail.com
Mon Jan 12 10:06:13 GMT 2009


Ade:

Interesting.  Can you produce a standalone file in a pastebin that when
dropped in the root of a v2.7 install will execute by calling the php file
via URL (i.e. test.php to be called with http://example.com/test.php) that
will result the in problem you've found?  If so, I could debug it for you
(but I'll bet you'll figure it out by going through the process of preparing
such a test file...)

-Mike Schinkel
http://mikeschinkel.com


On Mon, Jan 12, 2009 at 4:05 AM, Ade Walker <photofantaisie at gmail.com>wrote:

> Hi all,
>
> I'm trying to write a function which can pass certain user-definable
> arguments (via a theme options page) to wp_list_pages().
>
> In my function I have this:
>
> function (mypagesfunction) {
>
> // code to pull in theme options and set variables
>
> $args = array ( "depth" => $page_depth,
>                    "exclude" => $exclude_output,
>                    "sort_column" => $sort_column,
>                    "tite_li" => '',
>                );
> $newpages = wp_list_pages($args);
> echo $newpages;
> }
>
> The variables in the array are pulled from theme options (I've left this
> code out, above).
>
> All works fine EXCEPT the title_li argument (I don't want a title_li) which
> is being ignored. I'm sure I've missed something blindingly obvious - I
> just
> can't see what it is. :-)
>
> Any ideas?
>
> Thanks.
>
> Ade.
> _______________________________________________
> 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