Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Subscribe to Forum

@newtech1

Participant

Thank you for your ongoing help we are almost there.
But I am sorry I am not understanding this new information regarding the fish_caught field.
I understand I would replace
`$afc_replace = array(
‘{catch_date_time}’ => get_field( ‘catch_date_time’, $topic_id),
‘{anglers}’ => get_field( ‘anglers’, $topic_id )
);`

with this code
`$afc_replace = array(
‘{catch_date_time}’ => get_field( ‘catch_date_time’, $topic_id),
‘{anglers}’ => get_field( ‘anglers’, $topic_id )
‘{fish_caught}’ => $fish_caught
);`

But not understanding where I would put this code

$fish_caught = get_field('fish_caught');

if( is_array( $fish_caught ) && isset( $fish_caught['label'] ) ){
	$fish_caught = $fish_caught['label'];
}else{
	$fish_caught = '';
}

in the midst of this code. I am sure I am getting ( ) { } in the wrong places.

if( !function_exists('acf_email_bbp_subscription_mail') ){
	function acf_email_bbp_subscription_mail( $message, $topic_id, $forum_id, $user_id ) {
		if ( function_exists( 'get_field' ) && $topic_id != 0 ) {
Skip to toolbar