Hello Frank AnsPress prevents setting base page as front page. If you set base page as home page then our permalink will not work. If you want to show AnsPress in home then simply create differnt page with anspress shortcode and select it for home page.
Hello Frank, This query runs whenever a question or questions are fetched. This query must run on category page. As there are list of questions need to be shown on that page. This query is called by WP_Query and is altered for AnsPress needs.
Hello Frank, No, nothing like that is planned yet. We will think about it.
What I did so far : Ok so I found a way to add featured images, also called ‘thumbnails”, in Anspress questions, by doing the following : Added this code to my theme’s functions.php : add_action(‘init’, ‘my_custom_init’); function my_custom_init() { add_post_type_support( ‘question’, ‘thumbnail’ ); On the Anspress file question.php, added this to display the thumbnail : <?php if (has_post_thumbnail()) { // display the featured image ?> <div id=”thumbnailquestion”><?php the_post_thumbnail(); ?> It works but the admin has to upload images in the backend for them to show has featured images. What I’d like to do now : I’d like users (and not only the admin) to be able to upload featured images too (the images uploaded through the attachment box would be automatically set as featured images). How I think it could be done : I Imagine there’s something to be changed in the upload form https://github.com/anspress/anspress/blob/b2b86fc8f91b6c96a065ffbf14212e7967610fb9/includes/upload.php but I can’t exactly figure out what. I’ve been trying lots of things myself :/ And yet I’m sure it’s not that hard ! Thanks for your help !
You can add your rating code in answer.php (and create a folder in yourtheme/anspress to store it so that it resists new updates)
Update : it takes the content of the right answer as og:description only if you hack Anspress core to delete the # parameter in the answer of the url (which I did in the past). But now for many reasons I have to go back to the normal urls as they were designed originally by the Anspress team. And if you do, it will always take the content of the second answer (which is the answer that would normally appear on top of the page) Exemple : Let’s assume my question url is : mysite.com/q/my-question/ and I have 3 answers, with ID 1, 2 and 3, appearing in the following order on my page : ID1 appears above ID2 which appears above ID3. If I type this in Facebook debugguer : mysite.com/q/my-question/?show_answer=2#answer_2 it will take the description of the shared content from the answer 1 and not from the answer 2. But if I type this in FB debugguer : mysite.com/q/my-question/?show_answer=2 (that means, removing the # parameter) facebook takes properly the content of the answer 2 (see *NB below on how I achieved this) Now I tried on a normal FAQ page (not Anspress) on my website to see if that was due to Facebook not handling # properly or if was a bug belonging to Anspress. And it works properly there, so there is something in Anspress that makes it buggy… (*NB : You must also know that Anspress originally uses canonical urls for both mysite.com/q/my-question/?show_answer=2#answer_2 and mysite.com/q/my-question/?show_answer=2, in both […]
What version are You using, 3.0.7? If that is the case, there’s a bug in the categories plugin. You need to go to the AnsPress git page, download fix and replace on Your WordPress installation. Commit with fix: here File with the fix: here (right click and save as)
Can’t you add like this? <a href=”https://anspress.io/”>theword</a> I tried it on your site but don’t know the result, because I guess my answer is waiting for moderation. I didn’t understand Dutch.