Hallo,
ich habe das Problem, dass ich bei "post_content" erst den code "[imdb:id(" dann die formdata auslesen möchte und dann wieder den code schließen ")]". Es funktioniert aber nicht so wie ich es möchte habe schon mehrere Sachen versucht, bin jetzt leider auch nicht der Profi.
Code
if ( $cfdata->id() == '118738') {
$newpublish = array(
'post_title' => $formdata['posttitle'],
'post_content' => ("[imdb:id("), $formdata['imdbform'], (")]"),
'post_status' => 'publish', // Status
'post_type' => 'post', // Post Type
);
Und wie mache ich den Code am besten wenn ich mehrere solcher "Codefolgen" hintereinander abfragen möchte ?
Hier ein kleines Beispiel was ich genau meine:
Code
if ( $cfdata->id() == '118738') {
$newpublish = array(
'post_title' => $formdata['posttitle'],
'post_content' => ("[imdb:id("), $formdata['imdbform'], (")]""[imdb:id2("), $formdata['imdbform2'], (")]"),
'post_status' => 'publish', // Status
'post_type' => 'post', // Post Type
);
usw.
Hoffe das mir da jemand weiterhelfen kann.
Vielen dank schonmal im vorraus