Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Google Books API Function triggers unwanted topic submission

@tharsheblows

Participant

Ah – I think it’s because you have the Google form (and its submit button) in your topic form and bbPress doesn’t check to see that the submit being clicked is its submit. I’m not completely sure on that, so it’s just a guess.

Unfortunately, the hook bbp_theme_before_topic_form doesn’t actually go before the topic form, it’s just after the opening form tag so you shouldn’t use that. But I think you’re editing the template? If that’s the case, just add the Google book search before the opening form tag eg :
<form id=”new-post” name=”new-post” method=”post” action=”<?php the_permalink(); ?>”>

You might need to re-style but I think that might work.

Skip to toolbar