How to use custom object field value as parameter in query_posts
-
Hi there,
I’ve created a custom field which links to the page object of another page using the plugin advanced custom fields. I now want to use query_posts to return all of my posts that link to a particular page using that page object custom field.
The value I would like to filter is found using:
`$field = get_field(‘on_page’); // my custom field
echo $field->post_title;`Can I use $field->post_title as a parameter in query_posts? If so is it possible to show me how I would do it?
Many thanks,
Ben
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to use custom object field value as parameter in query_posts’ is closed to new replies.