Title: benjamin_sp's Replies | WordPress.org

---

# benjamin_sp

  [  ](https://wordpress.org/support/users/benjamin_sp/)

 *   [Profile](https://wordpress.org/support/users/benjamin_sp/)
 *   [Topics Started](https://wordpress.org/support/users/benjamin_sp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/benjamin_sp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/benjamin_sp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/benjamin_sp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/benjamin_sp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/benjamin_sp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 31 total)

1 [2](https://wordpress.org/support/users/benjamin_sp/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/benjamin_sp/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/benjamin_sp/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Display a “You comment has been marked as Spam” Message](https://wordpress.org/support/topic/display-a-you-comment-has-been-marked-as-spam-message/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/display-a-you-comment-has-been-marked-as-spam-message/#post-1227466)
 * Samboll, that’s just changing the message. The line before that still detects
   if the comment is being held in moderation:
 * <?php if ($comment->comment_approved == ‘0’) : ?>
 * I need to know what line detects if the comment has been marked as spam. That’s
   what I was asking for.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [I have no idea what is going on with my site…](https://wordpress.org/support/topic/i-have-no-idea-what-is-going-on-with-my-site/)
 *  [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/i-have-no-idea-what-is-going-on-with-my-site/#post-1227304)
 * > I’m not really sure how WordPress works, but if I reinstall everything, will
   > I lose all my old posts?
 * Not if you backup your current database. If you are using Godaddy hosting then
   you also have access to PHPmyadmin. If you don’t know how to backup your DB using
   that then use a database backup plugin.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Your comment is awaiting moderation – how to make this appear](https://wordpress.org/support/topic/your-comment-is-awaiting-moderation-how-to-make-this-appear/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/your-comment-is-awaiting-moderation-how-to-make-this-appear/#post-1225476)
 * Thanks for answering, but I figuered it out. My theme used a custom list comments
   function. I just had to grab:
 *     ```
       <?php if ($comment->comment_approved == '0') : ?>
       		<em><?php _e('Your comment is awaiting moderation.') ?></em>
       		<br />
       <?php endif; ?>
       ```
   
 * from wp-includes/comment-template.php and added it to my custom comment code 
   that was in functions.php and now it works.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Include tags in search results](https://wordpress.org/support/topic/include-tags-in-search-results/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/include-tags-in-search-results/#post-1210426)
 * Thanks t31os_ but I’m afraid all this code stuff is a little over my head, I’m
   only beginning to learn wordpress at the moment.
 * I tried adding &tag=tagname at the end of the search url and it appears to narrow
   down a search term by a specific tag. Like the term “iphone” can be narrowed 
   down as appearing in a post tagged with “apple”. But this doesn’t exactly allow
   tags to be searched like a regular search term.
 * It seems like this shouldn’t even be a problem as tags actually appear textually
   in a post. But unlike the rest of the post content tags aren’t picked up in a
   search. I guess it’s because tags and posts are stored in separate tables in 
   the database. I hope they make searching tags an inbuilt feature with an upcoming
   release.
 * I searched everywhere and so far it seems the only way to search tags is to use
   the Search Everything plugin. It just sucks to use a huge plugin just for one
   of it’s sub-features…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Include tags in search results](https://wordpress.org/support/topic/include-tags-in-search-results/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/include-tags-in-search-results/#post-1210421)
 * I mean a user should be able to find posts by searching tags. If a user enters
   a word in the search bar that happens to be a tag, it should return all the posts
   that are ascribed to that tag. Like searching “technology” would return the posts“
   Mac vs PC” and “Microsoft in talks to buy Yahoo” since I tagged those two posts
   with the word “technology”.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Include tags in search results](https://wordpress.org/support/topic/include-tags-in-search-results/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/include-tags-in-search-results/#post-1210407)
 * t31os_, do you know of any places that gives the exact method? In a desperate
   attempt, I opened up the search everything’s plugin page and tried to locate 
   the bits of code that were responsible for the search tags feature which I then
   pasted into the functions file but it didn’t exactly work.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Include tags in search results](https://wordpress.org/support/topic/include-tags-in-search-results/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/include-tags-in-search-results/#post-1210358)
 * Any ideas guys, would really like to know if this can be done without a plugin.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to combine these two queries?](https://wordpress.org/support/topic/how-to-combine-these-two-queries/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/how-to-combine-these-two-queries/#post-1206917)
 * Hey it worked, thanks man.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to prevent direct viewing of the robots.txt file?](https://wordpress.org/support/topic/how-to-prevent-direct-viewing-of-the-robotstxt-file/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/how-to-prevent-direct-viewing-of-the-robotstxt-file/#post-1203743)
 * The only reason I want to do that (and I wish I didn’t have to) is because I’ve
   read many sploggers use a blog’s sitemap to scrap content. This is why I renamed
   my sitemap (I use the google sitemap plugin) from the usual sitemap.xml to somethingobscure.
   xml. But now I’m not sure if search engines will pick up this renamed file as
   the actual sitemap. Plus I saw on this page:
 * [http://codex.wordpress.org/Search_Engine_Optimization_for_WordPress](http://codex.wordpress.org/Search_Engine_Optimization_for_WordPress)
 * that the site map should be defined in the robots.txt file like so:
 * Sitemap: [http://www.example.com/sitemap.xml](http://www.example.com/sitemap.xml)
 * The problem is, if anyone can see my robots.txt file then renaming the sitemap
   would make no sense. This is the dilemma, I’m afraid of scrapers so I want to
   hide viewing of this file.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Don’t show latest posts from this category in the homepage](https://wordpress.org/support/topic/dont-show-latest-posts-from-this-category-in-the-homepage/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/dont-show-latest-posts-from-this-category-in-the-homepage/#post-1195591)
 * It works, thanks Michael.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Allow visitors to choose background color](https://wordpress.org/support/topic/allow-visitors-to-choose-background-color/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/allow-visitors-to-choose-background-color/#post-1179976)
 * Thank you so much The5sisters!!! I just saw your post after being away a while
   and it was the perfect solution. Now my visitors are able to choose a background
   with a single click. I’m not sure if it leaves a cookie but the color remains
   even when the visitor goes to different pages which is good enough.
 * Thanks again.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make this code appear on certain posts and not on others?](https://wordpress.org/support/topic/how-to-make-this-code-appear-on-certain-posts-and-not-on-others/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/how-to-make-this-code-appear-on-certain-posts-and-not-on-others/#post-1178008)
 * Worked! – many thanks to both of you.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to make this code appear on certain posts and not on others?](https://wordpress.org/support/topic/how-to-make-this-code-appear-on-certain-posts-and-not-on-others/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/how-to-make-this-code-appear-on-certain-posts-and-not-on-others/#post-1177991)
 * > Move your header to right after the “if” statement (before “while”).
 * See, I have no idea what that means, I only know html/css. Can you please give
   an example?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [What is the template tag to display only the first tag in a post?](https://wordpress.org/support/topic/what-is-the-template-tag-to-display-only-the-first-tag-in-a-post/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/what-is-the-template-tag-to-display-only-the-first-tag-in-a-post/#post-1177336)
 * Thank You + Thank You x 1,000,000!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [What is the point of this tag: <?php the_ID(); ?>](https://wordpress.org/support/topic/what-is-the-point-of-this-tag-ltphp-the_id-gt/)
 *  Thread Starter [benjamin_sp](https://wordpress.org/support/users/benjamin_sp/)
 * (@benjamin_sp)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/what-is-the-point-of-this-tag-ltphp-the_id-gt/#post-1169359)
 * > Why are you considering removing it
 * I just don’t like having anything extra that’s all. I know I can assign the same
   post to multiple categories. But search engines can penalize a website for that(
   duplicate content). So it is recommended that only one category be used. I was
   just wondering if this tag can be used so that I can assign posts to multiple
   categories and still not have to worry about the duplicate content issue.

Viewing 15 replies - 1 through 15 (of 31 total)

1 [2](https://wordpress.org/support/users/benjamin_sp/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/benjamin_sp/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/benjamin_sp/replies/page/2/?output_format=md)