Add last edited date to WordPress comments - wordpress

Does anyone know a way to display the timestamp for when a WordPress comment was last edited? (For example, see comments on the Moz blog.) I've searched the Codex and Google, and can't seem to find anything... It doesn't appear to be available in the list on this page: http://codex.wordpress.org/Function_Reference/get_comment
Thanks!

Unfortunatelly, there are no built-in way to output the date of edit, because wordpress don't store this info in database.
You have to use some plugin, that will store edit-time in commentmeta (or some another place) and then you will be able to output it.

Related

Wordpress how to generate list of revisions (post and pages) for public

I need to implement to Wordpress something like Public Revisions. The idea is that for every post and page there'll be a list of revisions (public, not only for logged-in) that allows reader to click to display previous version of post or page. So, I guess there should be a loop to check if there is a revision and print them while there are some. Making the list clickable, and showing the revisions would be awsome.
There was a plugin to do that, but it's abandoned and it doesn't work anymore. In fact, you can't even get it from the official list of plugins for WP.
Please help me achieve it the best (easiest) possible way. Unfortunately, my knowledge of PHP is only basic.
Dunno if you still need it but perhaps you could have a look at this?
https://developer.wordpress.org/rest-api/reference/post-revisions/#list-post-revisions
Seems like you could retrieve the data and create a page with it.

Algolia Wordpress plugin not indexing post content

Just wondering if you guys could help me. I have indexed all my content from WP and when using the instant search only a few posts are showing any sort of excerpt. I have reindexed a few times to see if it resolved it to no luck.
I am looking on algolia's dashboard and when searching for specific items they have only specific attributes filled in. screenshot from algolia dashboard
Any help is appreciated.
By default the plugin will split the post's content into multiple Algolia records.
Then when displaying results, we display the most relevant matched record as the excerpt.
You could customize this behaviour by following this guide: https://community.algolia.com/wordpress/customize-search-page.html
Let us know if there is something you would like to achieve that does not seem supported or easy to implement.
Update:
It seems like some users are more satisfied with putting the post_title as last in the ranking. That way, the displayed excerpt will be relevant.
the only cases where this would not be ideal is if you want the post title to be more important as the content of your post.

showing more than 100 users in wordpress

I'm trying to show more than 100 users profile in my website it's like a list that every user has he's own specification and some fields like major or etc
that I need to put filter for them which if I select a filter all of users with that filter shows.
I've searched wordpress.org and google for it but I coudn't find a usefull plugin for this job.
Any idea how to do this ?
Thanks in advance.
You can write a php code to filter or search those users for you from mysql and load this code with iframe into your post, i've did this once and worked perfectly for me.

Link to a weekday in WordPress

I'm in need of a number of small graphics that link to specific weekdays (last Friday and Saturday).
However I'm struggling to find if there's a pre-built way of doing this. The codex don't seem to give anything away.
If it's not possible, I think a wp_query that targets posts may be needed.
If anyone has any ideas how you'd fetch items from a custom post type from a specific day of the week that would be amazing.
Thanks.
Create a querystring for your links that includes the day of the week. Check the codex pages on get_permalink and add_query_arg if you need them. Perhaps create a page template for the page you link to.
On your page, create a new instance of WP_Query and set the time parameters accordingly.
Post back with code if you still can't get it to work.

Wordpress: Comment on Archive Pages

I'm currently developing a Wordpress site/theme for a client.
He has a specific requirement to be able to add comments to an archive page - it actually needs to be a comment on the page itself, rather than the posts/products within that archive.
I effectively need a way to add comments.php to the bottom of archive.php, although I understand this won't work because an archive page doesn't have an ID for the comments to associate with.
Is there any way to give a category archive page an ID based on the category, and then hook the comments template into this ID for each archive?
Thanks so much in advance for any advice you can offer - it's been a long process and this is the last bit remaining to finalise the project!
Unfortunately it would seem this isn't directly possible, however for anyone who would like to do something similar, there is a third party comment solution called IntenseDebate which is suitable to be added to the archive pages.
If you use DISQUS, you can call the comments template using PHP to bypass WordPress checks and have comments on archives pages.
include 'comments.php';

Resources