I have register custom field for single-question.php template, “embed_video” and am trying to pass custom field from AnsPress ask form to this field.
function embed_video_field( $form ) {function embed_video_field( $form ) { // Record Button field. $form['fields']['record'] = array( 'html' => '<div class=""><h3>A simple header</h3></div>',);
// Video field. $form['fields']['video'] = array( 'type' => 'input', 'subtype' => 'text', 'label' => __( 'Embed Video' ), 'attr' => array( // custom HTML tag attributes. 'id' => 'videourl', 'class' => 'embed_video' ), 'sanitize' => '', // Comma separated list of sanitization filters 'validate' => '', // Comma separated list of validation methods); return $form;}add_filter( 'ap_question_form_fields', 'embed_video_field' );
function hooks_save_meta_value($post_id,$post)function hooks_save_meta_value($post_id,$post){ $form = anspress()->get_form( 'form_question' ); // Get all sanitized values. $values = $form->get_values(); { if ( ! add_post_meta( $post_id, 'embed_video', $values['embed_video']['value'], true ) ) { update_post_meta( $post_id, 'embed_video', $values['embed_video']['value'] ); } }add_action( 'ap_after_new_question', 'hooks_save_meta_value' );
Can anyone help me with this?
In website it only says license for single site, 2 -5 sites and unlimited, please inform us that if we would like to buy AskBug Theme the license will expire until 1 year and we need to repurchase it again to get the new update !
Hi,
I have searched on the website and I know this has been asked many times in the past. I imagine the reason why there is no solution is because it is too much work for you guys to fully integrate it.
Description of site:
I have a buddypress website and want to replace bbpress with anspress in the groups. Every group has its own anspress category which matches the buddypress group category. This is embedded via shortcode manually into buddypress template groups page – see below
https://1drv.ms/u/s!AuL-SQTe2QpwhXvDOazlU-oRGGpl
So everything is good up til now, but when you click on a question you are taken out of the buddypress group template page. i need the next page to remain within buddypress group. Almost like an iframe embedded into the red box.
So I’m looking for some sort of work around to get it to appear correct. For example, when creating a anspress category, admin inputs buddypress group ID relationship (can be done in php-myadmin if need be) or every anspress category has its own template page (which I don’t mind doing as there are not too many groups. Is this possible, and I was wondering if you can point me the right direction.
I have also played with the permalink of each category using this post
I will be paying devs on upwork to do this and will share their modifications on here for the anspress community, but just need to know if this is viable and to point the devs in the right direction so i can estimate the dev costs.
I’d like to have a custom version of the ask page where the user doesn’t have to select the category and/or tags. I would automatically pick a category in the backend. That way I could embed the page on another page where I only want questions asked in a certain category.
I’m not comfortable enough customizing the PHP files to figure this out, but it seems like it shouldn’t be too hard to simply omit some fields and hard-code them. Can anyone help me?
How does AskBug work with KnowAll — the knowledge base theme?
Hi guys, looking through Quora, I came across dhosting.com, a web hosting with automatic scaling of server resources without the need to restart the server and at a reasonable price. At the moment I’m using SiteGround, but I have some problems with their hosting, and I would like to move somewhere else.
For now, I have 14 days of free trial, and I have not decided yet, but I like the performance and their admin panel (UX <3). I talked to their support, and they can move me between servers for free, so I would not have to do it alone.
Does any of you have any experience with them? I wonder if AnsPress will work well on their servers, and this option of automatically scaling resources is tempting. What do you think?
By the way, Rahul, when full support for guests? ? You know, an option to ask questions and add answers without the need to log in and with notifications by email?
Hello,
I found there are some Js from CDN with the address: https://cdnjs.cloudflare.com/, which caused our server delay, since our server is in Asia. Also there are always some limits to access external resouce by sever providers, and we always receive warning notification up external links.
Is it possible to host those external rescource on local server please?
Alex