0

CiviCRM 4.6.6 Wordpress 4.2.4

The code in my wordpress page:

[insert_php]
// Perform bootstrap
civicrm_initialize();

$result = civicrm_api3('Event', 'get', array(
  'sequential' => 1,
  'return' => "title,summary,custom_31",
  'event_type_id' => "",
));

print_r($result);
[/insert_php]

the ouput on my page:

Array
(
[is_error] => 0
[version] => 3
[count] => 0
[values] => Array
(
)

)

There should be data.

What am I doing wrong?

Thanks.

1

Just messed up with my code:

[insert_php]
// Perform bootstrap
civicrm_initialize();

$result = civicrm_api3('Event', 'get', array(
  'sequential' => 1,
  'return' => "title,summary,custom_31"
));

print_r($result);
[/insert_php]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.