In 4.1.5, I’m sure users can edit the answer, however the following error is occurring when users try to edit the answer. Rahul, do you have any idea to fix this? Warning: Creating default object from empty value in /***/wp-content/plugins/anspress-question-answer/lib/class-form.php on line 521
Hello Kevin, If you are comfortable with plugin modifications, here is my workaround to fix the tag filter: On /anspress-question-answer/addons/free/tag.php: A wrong query var is being used. It should be qtag instead of tag Replace: $current_filter = ap_get_current_list_filters( ‘tag’ ); with: $current_filter = ap_get_current_list_filters( ‘qtag’ ); On /anspress-question-answer/includes/common-pages.php: When the Tag filter is being used with the Category filter, its search result will be appended to the Category search result. I think it should intersect instead Replace: ‘OR’ with: ‘AND’ If you decided to change the ‘OR’ with ‘AND’ as suggested above, if $tax_relation is ‘AND’, it does not need to be added to tax_query because ‘AND’ is the default value Replace the first occurrence of: $args[’tax_query’] = array( ‘relation’ => $tax_relation ); with: if( $tax_relation == ‘OR’ ) As described on developers.wordpress.org, tax_query’s relation parameter shall not be used with a single inner taxonomy array Add: if( $tax_relation == ‘OR’ && count( $args[’tax_query’] ) < 3 ) { unset( $args[’tax_query’][’relation’] ); } below: $args = apply_filters( ‘ap_main_questions_args’, $args ); On /anspress-question-answer/includes/qaquery-hooks.php: If you don’t want questions and answers from the session cookies to appear on search results: Comment out: if ( ! empty( $ap_type ) ) { // Include user’s session questions. $session_posts = anspress()->session->get( $ap_type . ‘s’ ); $ids = sanitize_comma_delimited( $session_posts ); if ( ! empty( $ids ) ) { $sql[’where’] = $sql[’where’] . $wpdb->prepare( ” OR ( {$wpdb->posts}.ID IN ({$ids}) […]
From Fast 1 week There error whenever someone clicks on their profile it redirects to our Homepage ?
What have you changed since the last time profiles worked? Have you updated AnsPress? Have you installed new plugins or updated old ones? The simplest answer is you author archive page is disabled by your SEO plugin, if you are using Yoast SEO it is automatically set to disabled so you don’t get page duplicate. Flow this guide to enable it: How to disable or enable the author archives. If you are using other SEO plugin do a google search.
Thanks for workaround. Created a FAQ here: TinyMCE fails to load when using autoptimize plugin.
Hello, Issue with AskBug theme only? I am unsure about this plugin kindly report to its author.
This is awesome! Would it also be possible to have featured posts per category?
Hello Michael, Search is working fine. You can try it on demo: Search. 4.1.5 is not published to wp.org because I discovered few bugs yesterday which was fixed but will wait for contributors input. Thanks for your patience.
Hello, Issue was already resolved in 4.1.5. Kindly get latest from GitHub https://github.com/anspress/anspress/archive/master.zip. 4.1.5 is not yet published in wp.org but safe to use.
Hello Mark, Not sure how myCred works but if you can share myCred hook then I will be able to help with AnsPress part.
Here is the solution: How to add category to AnsPress question permalink