AnsPress is intefering with my theme

4.46K viewsCore
0

I’m using the Make theme from Theme Foundry and when creating sections on a page unrelated to AnsPress I’m getting this error:

Warning: Missing argument 2 for anspress_theme::the_title() in /home/domain/public_html/mysite.com/wp-content/plugins/anspress-question-answer/includes/anspress-theme.php on line 120

In looking into the file, I see that you are using a public function called the_title() – using this function appears to be causing some problems elsewhere outside of AnsPress. This is a rather generic function name.

Can you look into this please?

1

there was actually problem in line 120 in anspress-question-answer/includes/anspress-theme.php and the solution is by replacing this line “120”:
public function the_title( $title, $id ) {
with this :
public function the_title( $title, $id = null ) {
to make the function work with null id

Thanks for pointing it out.

You are viewing 1 out of 2 answers, click here to view all answers.