Hi,
Is there no ‘AP recent posts’ widget? (Either just Questions or both Questions and Answers)
Or is there any other (simple) way to do it?
Thanks
WARNING: this will break things if your question have more than one page of answers!!! Do not use in production!
By default, you get links like http://localhost/question/example/?show_answer=201#answer_201. This is bad for many reasons:
- caching plugins may fail
- page getting reloaded instead of just jumping around if clicked
- default answers order getting mixed (especially bad if you, like me, are using “oldest first” to make it look like a forum)
- some possible SEO issues
The only benefit of such querystring, is reordering of answers (I consider it a bad thing, but some may like it)
To remove querystrings, leaving just the hashtag part, use snippet:
add_filter('ap_answer_post_type_link', 'd_ap_answer_post_type_link', 10, 2); function d_ap_answer_post_type_link($link, $post) { if ($post->post_type == 'answer' && $post->post_parent != 0) { $link = get_permalink($post->post_parent) . "#answer_$post->ID"; } return $link; }
Now it will be http://localhost/question/example/#answer_201.
I also highly recommend using CSS like the one I use:
:target { background-color: rgba(34, 168, 216, 0.1) !important; border: 3px dashed #22A8D8 !important; } .target-id-fullwidth:target { padding-left: 20px; } #answers .type-answer:target { padding: 12px; margin-left: -15px; margin-right: -15px; }
Example usage: http://dima.stefantsov.com/q/prisedaniya-dlya-mh-v-myshtsah/#answer_2117
We can either make the user give the role of anspress participant or the website blog subscriber. How can I make all the anspress participant also get updated with the website blog?
I’d like to remove the ‘0 answers | 0 votes’ and so on…
Which file please?
Thank you
Can transliteration be provided
https://developers.google.com/transliterate/v1/getting_started?hl=en
Will require adding minor piece of code at all text areas and providing for admin settings.
Just wondering if anybody has a solution to automatically tweet questions out to the community?
M