Darrell Schauss
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to remove posted date and by…With HTML comment
<!-- -->the PHP will still run but will be hidden on the page.
<?php //twentyten_posted_on(); ?>or<?php /* twentyten_posted_on(); */ ?>will comment out the PHP so it won’t run at all.Forum: Fixing WordPress
In reply to: Mass Rename PermalinksI have made permalink changes in the database on very small amount of pages and changes were instant. Maybe cleaning up all the revisions can help. Not sure.
DELETE FROM wp_posts WHERE post_type ='revision'I know manually changing a permalink to one that already exists elsewhere; it wont change. Do some post URLs end up matching when they have all their -2 removed? With 900+ a wild guess you might so happen to have two posts same name?
Forum: Fixing WordPress
In reply to: Mass Rename PermalinksFor SQL:
UPDATE [table_name] SET [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');Something like.. example (not tested!). Don’t forget wp_prefix_ if have one.
UPDATE wp_posts SET post_name = replace(post_name,'-2','');This might be better so you only get the -2 on the ends and not ones that have it in between.
UPDATE wp_posts SET post_name = replace(post_name,'-2','') WHERE post_name LIKE '%-2';Forum: Fixing WordPress
In reply to: Avatar ComplaintDid you make a WordPress.com account at some point, even just for a API key?
http://en.gravatar.com/site/faq/#answer-1-0
“It’s possible that you registered a WordPress.com account (either for a blog or for an Akismet API key,) which automatically now gives you a Gravatar.com account.”Forum: Fixing WordPress
In reply to: Post titles overlap article text. How do I fix?Comment out
/*line-height:#px;*/or remove the line-height from
“.post-left {and#content h3 {in style.css. Then add somemargin-top: 10px;or so to the h3 to get it away from the border. Also removing the height from .post-left will fix the overlap, but then you need increase the length of the left and right borders continue down in this image. http://mmachalet.com/wp-content/themes/brownline/images/entry_title.jpgI would make it 150px; tall at to give any slack for how ever big the title may be.
Firebug is a Firefox add-on that will allow you to see what css is effecting what and to edit CSS live in the browser for testing / troubleshooting. It does much more…
http://getfirebug.com/Forum: Fixing WordPress
In reply to: Visual Editor Stripping All My html FormattingThe TinyMCE Advanced plugin has been useful to me in giving more button fuctionality in the toolbar. You may have to decide what buttons to display based on your clients needs. Mostly Ive just added the table editing buttons.
It also has a checkbox option to turn off the stripping of P and BR tags. Until I use this option, I would get the same issues of fixing then hitting save or viewing HTML only to have P or BR stripped even though it was saved and working just earlier.
Forum: Fixing WordPress
In reply to: Reoccuring 'Call to undefined function' errorsIs it just certain pages? Does it happen only on posts or pages?
have you also tried fresh copies of files in the root?
http://ww.wp.xz.cn/support/topic/411446Forum: Fixing WordPress
In reply to: How to remove posted date and by…Post long code in http://pastebin.com/ so its easier to read and no markup mistakes from the forum.
Forum: Fixing WordPress
In reply to: browser downloading a file when I enter my blog URLYou may have an issue with htaccess or the server. Your php files aren’t being handled by PHP and I can see the code.
Can you post your htaccess? http://pastebin.org/
What are you permissions try 644 or 755 for files.
Forum: Fixing WordPress
In reply to: Optimising my website?For your style.css or others you can compress with this. Just add back your theme information at the top of the style.css after compress. Don’t need double spacing on every line.
http://www.cssdrive.com/index.php/main/csscompressoradvanced/
Modify the defaults…
Uncheck “Leave space between selectors”, “Leave space between properties”. Check “Remove all newlines”. Check “Strip ALL comments”I usually uncheck the colors codes compression just to not take any chance in messing up my colors.
It will be hard to read the css after compressed so keep a uncompressed_style.css copy for development.
Forum: Fixing WordPress
In reply to: Can't link out to other sites(or internally)from postsAre you putting
http://at the beginning of external links?
Starting from root of site with a slash/when linking internally/another-page/Using plugin(s) that manipulate URLs?
Forum: Fixing WordPress
In reply to: Tried to remove 7,000 spam commentsTry just deleting a few at a time. If it works then maybe the servers resources just arent very good.
delete from wp_comments WHERE comment_approved ="0" LIMIT 100
Then try LIMIT 500, then LIMIT 1000. If 500 or 1000 still work just repeat until they are all empty.Forum: Fixing WordPress
In reply to: Can't get rid of Archive for the Category messageCheck in your archive.php or category.php you should find something like
Archive for the '<?php single_cat_title(); ?>' CategoryForum: Fixing WordPress
In reply to: wp_page_menu documentation incompleteIt looks like it performs the same as wp_list_pages() except that it includes link to Home. So probably why it is incomplete instead of duplicating the same documentation over again.
http://codex.ww.wp.xz.cn/Template_Tags/wp_list_pagesForum: Fixing WordPress
In reply to: Why is my site name showing after post title in google?In your header.php you should see
bloginfo('name');which you could wrap with conditional statements to not show blog name if it is a post.http://codex.ww.wp.xz.cn/Conditional_Tags
<?php if(!is_single()){ bloginfo('name'); } ?>