Plugin Author
bnfw
(@voltronik)
Hi ma001,
Thanks for your message.
Just to be sure, can you try adding the appropriate filter from this page to your functions.php file? Let me know how you get on.
Thanks,
Jack
Thread Starter
ma001
(@ma001)
Thank you for your response
I went back and tried every possible way.
Attempt 1:
function bnfw_insert_post_hook_for_theme( $themes ) {
$themes[] = ‘sydney’;
return $themes;
}
add_filter( ‘bnfw_insert_post_themes’, ‘bnfw_insert_post_hook_for_theme’ );
“sydney” because I use the Sydney theme from athemes
Attempt two:
function bnfw_insert_post_hook_for_theme( $themes ) {
$themes[] = ‘sydney’;
return $themes;
}
add_filter( ‘bnfw_insert_post_themes’, ‘bnfw_insert_post_hook_for_theme’ );
add_filter( ‘bnfw_trigger_insert_post’, ‘__return_true’ );
Adding the second filter with the first filter
Attempt 3:
function bnfw_insert_post_hook_for_theme( $themes ) {
$themes[] = ‘sydney’;
return $themes;
}
add_filter( ‘bnfw_trigger_insert_post’, ‘__return_true’ );
Replaced the “add_filter” with the second filter
Attempt 4:
add_filter( ‘bnfw_trigger_insert_post’, ‘__return_true’ );
Only adding the second filter
Unfortunately none of these attempts worked, can you please advise?
Thank you for your time
Thread Starter
ma001
(@ma001)
Another question.
Does your plugin work with WPForms?
Thank you
Plugin Author
bnfw
(@voltronik)
Hi ma001,
I haven’t tested it with WPForms but you can certainly give it a go.
Just to confirm, did you replace the curly apostrophes with straight ones in the code snippets above? Also, can you try using the full name of the theme as opposed to the theme slug?
Thanks,
Jack
Thread Starter
ma001
(@ma001)
Thank you for the response again.
Sorry may I ask you what do you mean by curly apostrophes. The code I pasted above is exactly how I have it. I didn’t change a thing
I’ll try and change the theme, but I saw in other parts of the coding only ‘sydney’ is used.
Thank you
Thread Starter
ma001
(@ma001)
Sorry I got what you meant
If you copy/past the code directly from your website, it makes the curly apostrophes. I corrected everything and tried it every single way as previously mentioned above.
I am sorry to report but it still didn’t work.
The “Sydney” is the theme name and slug
Thank you
Plugin Author
bnfw
(@voltronik)
Hi ma001,
In that case, it sounds like theme or plugin conflict.
Are you able to make your way through this help document and let me know how you get on?
Thanks,
Jack
Plugin Author
bnfw
(@voltronik)
Closing due to inactivity. If you need further help with this, please feel free to re-open this thread.