doesn’t show the order, probably because the previous dev purchased it under his own account.
ah gotcha for some reason i thought this was the askbug theme that makes sense now. we have an existing license but no contact with the original developer who did some rather unorthodox things with the original install which is forcing us to rebuild so that we can actually know whats happening. is there away we can download the and use the theme in development environment or do we need to purchase another copy of it? thanks!
Not sure what you mean. Anspress is a PLUGIN and not a theme. Install it via your WordPress admin / plugin install.
Ok thanks !
Thanks for your reply Rahul. I tried to flush the rewrite rule after new question hook where I am changing the parent Id for the question, but its not working for me. I got the 404 error. In rewrite.php there is following function: public static function add_query_var($wp) { if ( ! empty( $wp->query_vars['question_name'] ) ) { $wp->set_query_var( 'ap_page', 'question' ); $question = get_page_by_path( sanitize_title( $wp->query_vars['question_name'] ), 'OBJECT', 'question' ); if ( $question ) { $wp->set_query_var( 'question_id', $question->ID ); } // Rediret to 404 page if question does not exists. else { global $wp_query; $wp_query->set_404(); status_header( 404 ); get_template_part( 404 ); exit(); } } if ( ! empty( $wp->query_vars['ap_user'] ) ) { $user = get_user_by( 'login', sanitize_text_field( urldecode( $wp->query_vars['ap_user'] ) ) ); if ( $user ) { $wp->set_query_var( 'ap_user_id', $user->ID ); } } } In this get_page_by_path return null, if I set the parent id for the question.
Please login with your ymail account to download it. Thanks
Hello Prashant, Make sure to flush rewrite rules after changing parent ID.
Tarrence, try your luck also with YUZO Related and see if it help you. Tremendous Related plugin. I’m also trying to make it work with Anspress.