This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Variable for post ID | |
$pID = '"' . $post->ID . '"'; | |
// Query the relationship | |
$relpa = new WP_Query(array('post_type'=>'page','posts_per_page'=>'-1','post_parent'=>'6', | |
'meta_query'=>array( | |
array( | |
'key' => 'rel_attorney', // This is the custom field's name | |
'value' => "$pID", // This is the post ID of the current page you're on |
NewerOlder