wp_list_pages Syntax with meta_key & meta_value Parameters?
-
I’m trying to use wp_list_pages with the meta_key and meta_value parameters, but I’m messing it up. I searched and searched for this, but couldn’t find it posted previously. I have read the wp_list_pages() page from Codex over and over, but I guess I’m just thick-headed.
I created Pages with a Custom Field Key of “cluster” (no quotes) and a value of “info” (no quotes). I’m trying to use wp_list_pages to list only the pages containing that key/value pair.
So far, I have:
<ul> <?php wp_list_pages('title_li=&sort_column=post_title&include=4&meta_key=cluster&meta_value=info' ) ?> </ul>
I’ve tried the meta_key and meta_value = with quotes and without, but it doesn’t work.
Anyone know how to format these parameters correctly??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_list_pages Syntax with meta_key & meta_value Parameters?’ is closed to new replies.