benjamin_sp
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display a “You comment has been marked as Spam” MessageSamboll, 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
In reply to: I have no idea what is going on with my site…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
In reply to: Your comment is awaiting moderation – how to make this appearThanks 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
In reply to: Include tags in search resultsThanks 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
In reply to: Include tags in search resultsI 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
In reply to: Include tags in search resultst31os_, 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
In reply to: Include tags in search resultsAny ideas guys, would really like to know if this can be done without a plugin.
Forum: Fixing WordPress
In reply to: How to combine these two queries?Hey it worked, thanks man.
Forum: Fixing WordPress
In reply to: How to prevent direct viewing of the robots.txt file?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:
https://codex.www.ads-software.com/Search_Engine_Optimization_for_WordPress
that the site map should be defined in the robots.txt file like so:
Sitemap: https://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
In reply to: Don’t show latest posts from this category in the homepageIt works, thanks Michael.
Forum: Fixing WordPress
In reply to: Allow visitors to choose background colorThank 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
In reply to: How to make this code appear on certain posts and not on others?Worked! – many thanks to both of you.
Forum: Fixing WordPress
In reply to: How to make this code appear on certain posts and not on others?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
In reply to: What is the template tag to display only the first tag in a post?Thank You + Thank You x 1,000,000!
Forum: Fixing WordPress
In reply to: What is the point of this tag: <?php the_ID(); ?>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.