need to pass a variable to an array
-
I’m trying to do this:
$myVPname = get_the_title();
$vpArgs = array(
‘post_type’ => ‘loan_closings’,
‘meta_key’ => ‘originator’,
‘meta_value’ => $myVPname //if I use ‘Fred Smith’ it works
);$vpLoop = new WP_Query($vpArgs);
Thoughts?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘need to pass a variable to an array’ is closed to new replies.