Users Page NOT Working 404 error
I’ve send you my theme via Wetransfer two days ago but you haven’t downloaded it yet. Can you please take a look?
Ok. Added this to list. Will be added in next release 4.1.6
I replied to you in email.
Hello Tom, I was very busy lately, so I was not able to write the tutorial. Let me describe it in short here. As single question page is rendered using a shortcode under the hood so it was hard to edit it using shortcode. To overcome this issue you have to override single question page template. Follow below steps: Firstly you must remove action hook: anspress()->add_action( ‘loop_start’, ‘AP_QA_Query_Hooks’, ‘loop_start’ ); Now if you go to single question page it will look like a normal post. Create a file in your template single-question.php and copy all contents from single.php. Now inside the loop call this : ap_get_template_part(‘single-question’); After this you’ll be able to edit the single question page as well. Cheers.
Well, for some reason the search feature is not working on my installation. Any ideas why it might not be working?
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.