Added advance form system in AnsPress 2.0. Now it will be much easier to add new fields or modify existing form fields.
Now you can use filters to modify or add new fields.
Here is an example
$args = array( 'name' => 'ask_form', 'is_ajaxified' => true, 'fields' => array( array( 'name' => 'title', 'label' => __('Title', 'ap'), 'type' => 'text', 'placeholder' => __('Question in once sentence', 'ap'), 'value' => sanitize_text_field(@$_POST['title'] ) ), array( 'name' => 'category', 'label' => __('Category', 'ap'), 'type' => 'taxonomy_select', 'value' => sanitize_text_field(@$_POST['category'] ), 'taxonomy' => 'question_category' ), array( 'name' => 'is_private', 'label' => __('Private', 'ap'), 'type' => 'checkbox', 'desc' => __('This question ment to be private, only visible to admin and moderator.', 'ap'), 'value' => sanitize_text_field(@$_POST['is_private'] ) ), ), ); $form = new AnsPress_Form($args); echo $form->get_form();
At last user profile page is completed.
After doing some more little fix and I will release first preview of 2.0
Hi,
Please advice.
I have active social login and all API done but none of login button coming on ask/question page automaticly.
I have managed to add in ask page but i would like to add within login or signup box.
Can you please let me know HowTo add within inside of the ask and question page/all login boxes like attached: https://www.dropbox.com/s/9pih3ducaaqdoy7/Screen%20Shot%202014-12-31%20at%2011.02.00.png?dl=0
check my site its not within inside of the post : http://goo.gl/3vYtHZ
Currently the user is only prompted to register ‘after’ they have typed out their question only to lose the question after registering. Is there a way to store the content of the question so they don’t lose it?
Just a suggestion but it would be great if new questions could be automatically sent as a tweet with a link back. Possible?
Rahul, is there a way to expose a link to a user’s Favorite questions page within their user profile that can be added to the site’s main navigation menus?
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?
I also reported this on Github here: https://github.com/wp3/anspress/issues/241
When a question is held in moderation status, it is still visible to users (and logged-out users) on the Browse Questions page. When the link is clicked, it browses correctly to the question, but displays an error of You do not have permissions to view this question. This creates a disconnect for the users, especially when there are a number of questions still in moderation.
You can see this in effect here: http://dev.prometheusfire.me/interview-hacks/questions/ The question What did you do today is currently in moderation status. These questions should not be appearing on the front end until they are published.
When I activate AnsPress it conflicts with the portfolio in my current theme and replaces it. Hoping that this can be fixed in the upcoming version.
Here is another shot of AnsPress 2.0
Let me know your feedback.