question about add()
-
I followed your code to programattically add a new pod to one of my POD collections. It creates the new pod, but does not publish the post. Can you please explain what I missed? Thank you!
add_shortcode( ‘add_pod’, ‘addPod’);
function addPod()
{
$pod = pods( ‘cust’ );
$data = array(
‘post_title’=>’Bill Bailey’,
‘cname’ => ‘Bill Bailey’,
‘phone’ => ‘222-333-4444’,
’email’ => ‘bb@aol.com’
);
$new_id = $pod->add( $data );
return $new_id;}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘question about add()’ is closed to new replies.