37 thoughts on “WordPress tips and tricks – comments, trackbacks, and query_post Leave a comment

  1. Thanks a lot for this post! I’ve already used two of the ideas (comment response and query_posts) at a site I’m developing for a community event. It’s not a blog, but it uses WP! It’s the site I linked to with this comment.

    Thank you!

  2. I’m trying to separate my trackbacks and feedbacks but dude, the instructions above make no sense at all.You should specifically write out where all that coding should go.Should it all go in the functions.php file or is some of that meant for the comments.php file of your theme? What goes where is just not explained well and now my head hurts ๐Ÿ™

    ๐Ÿ™‚

  3. Pingback: LP3Records » Tips and Tricks….
  4. I must admit I find it a bit strange that this works, since I would have thought everyone would see the message, but it appears to work fine, so Iรขโ‚ฌโ„ขm not going to complain

    Well if the comment hasn’t been moderated it won’t appear to anybody but the author, therefore the message will display to everyone who sees it, it’s just that that is only the author.

  5. Josie, I agree, this is a little difficult to follow. For separating comments from trackbacks, from what I understand, add the first block of code to the functions.php file, and the next two blocks of code are to replace the comment functions in your comments.php or comments-popup.php, whichever you are using, in your WordPress Theme. This is great but it does need to be a little clearer for the less code experienced.

    Another note needs to be added to warn people that if they upgrade WordPress, they lose this function completely as the functions.php will be overwritten. Therefore, a warning to everyone to backup their functions.php and make sure they make plenty of notes about the changes so they can put them back in after an upgrade.

    I use a more cumbersome technique, but all of the code goes into the WordPress Theme, which separates it from the core programming and out of harm’s way from upgrades. Too bad this beautiful coding can’t be set right into the Theme template files. Is it possible?

  6. This article wasn’t written for less experienced users. It was assumed people wanting to do this sort of thing knew what they were doing. I should have made that clear.

    As for functions.php it doesn’t get overwritten on upgrade since it IS a theme file and only gets changed if you update a theme – again I should have made that clear. Not being a wordpress programmer I wasn’t aware there was a functions.php as part of the wordpress core.

    All of the tips in this article are designed to be usable when you upgrade without any problems (assuming the wordpress internals don’t go and change drastically).

  7. Pingback: Ryan’s Life » Separate Trackbacks and Comments in Wordpress
  8. Pingback: apexad.net » Blog Archive » Separate Trackbacks and Comments in Wordpress
  9. Pingback: apexad.net » Blog Archive » I am using Ella now!
  10. Pingback: Ryan’s Life » Blog Archive » Separate Trackbacks from Comments Revisited
  11. Pingback: blogu’ lu’ ciops » Blog Archive » Wordpress: Separati trackbacks de comentarii
  12. Pingback: WordPress Wednesday: Easter Eggs, Editor Extras, WordPress Plugins, and more WordPress 2.1 at The Blog Herald
  13. Hi Ben, thanks very much for this – took me a while to find it, but was exceptionally useful when I did! Was rather disappointed to find no real mention of a similar technique in the WordPress documentation.

    Much appreciated!

  14. Pingback: Wordpress tips and tricks - functions.php » Binary Moon » The home of Ben Gillbanks
  15. Can someone tell me how to include the number of blog views (like in blogspot.com)… wordpress.com doesnt’ have a feature.. can someone give me any code known to show this… just curious how popular one can get…
    thanks…

  16. Pingback: Wordpress tips and tricks - custom templates » Binary Moon » The home of Ben Gillbanks
  17. Pingback: Wordpress tips and tricks - custom 404 (error) pages » Binary Moon » The home of Ben Gillbanks
  18. John – funnily enough I am working on just this thing at the moment. Check back next week and it should be released ๐Ÿ™‚

  19. Pingback: Managing Trackbacks and Pingbacks in Your WordPress Theme | OPOWAE
  20. Pingback: Make Youself Stand Out: Styling Author Comments in WordPress — Connor Wilson
  21. Pingback: Weblog Tools Collection » Blog Archive » Managing Trackbacks and Pingbacks in Your WordPress Theme
  22. I’d love to use this and consider myself fairly experiences, but I struggled to get it to work without destroying my comments file. Is the plugin available yet?

    here’s hoping *crosses fingers*

  23. I downloaded and installed it straight away, I promise I won’t tell! And it seems to work with 2.5

    Thanks – I think I have all your plugins now ๐Ÿ™‚

    Dawn

  24. Dawn – that’s great – I’m glad it works. I am going to write about it soon so you don’t have to remain silent for long ๐Ÿ˜‰

  25. Pingback: Felicidades, WordPress (creo) | Mangas Verdes
  26. thanks for the tips and tricks. I have updated my 404 and added some new page templates. Such a simple thing to do and I would probably never have found it if it wasnt for this site.

  27. Hi there,
    Know anyone which plugin to use if I want only the first part (first paragraph) of the article to be displayed? If someone want to read more there will be a “read more” link…
    On my blog right now is displayed all of article content and I don’t want this…
    I’m talking about the latest 10 articles displayed on the first page of my blog.
    I’m using WordPress.
    Can anyone help?

  28. I was curious where do I add in the comment loop, the message notifying individuals that their comments are being notified? Thank you!

  29. Pingback: bm trackPing – comments, trackbacks and pingbacks separated
  30. Pingback: WordPress query_posts Tips
  31. I have added the moderation comment message code but do not know what to right in place of trackback display code. What to write there? just trackback function?

  32. Thanks so much for this – dead straightforward and works like a charm.

    Props for making it elegant, too. You’re not wrong about much of the code floating around out there being a mess.

Leave a Reply to johnCancel Reply

Your email address will not be published. Required fields are marked *