Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Home page showing full post, not summaryThe feed has a one hour cache. If you just changed it, you’ll probably have to wait a bit.
Forum: Fixing WordPress
In reply to: WordPress Changing URL ErrorCheck out the Codex:
If you have moved changed your WordPress install directory name from “wordpress” to “blog,” you’ll need to update
siteurlto behttp://www.mysite/blogand
hometo be whatever you want the home page URL to be, probably eitherhttp://www.mysite/blogorhttp://www.mysite.I generally use the wp-login.php trick (see Moving WordPress) so I don’t have to mess with the database. But either way is fine.
Forum: Fixing WordPress
In reply to: Proper Category and Tag base 301 redirectionI found the easiest way to to this is to use the WordPress Redirection plugin.
I added a new redirection for tag (from default “tag” to new “tag2”):
Source URL: ^/tag/([a-z0-9_-]+)/$ Match: URL only Action: Redirect to URL Regex: on Target URL: /tag2/{$1}/You could also use the more common
Source URL: ^/tag/(.*)/$
if [a-z0-9_-] is too limiting.
Obviously change “tag2” with your new tag base. Should work for categories as well.
Forum: Fixing WordPress
In reply to: Best Way to Redirect 301Did you remove this line?
Redirect 301 / http://www.new-site.com/Forum: Fixing WordPress
In reply to: Can't upload swf files to wordpress anymore.The sample code in the previous post is incorrect. It replaces all other mime types with only swf and exe. It needs to add the missing types to the existing allowed mime types:
function demo($mimes) { if ( function_exists( 'current_user_can' ) ) $unfiltered = $user ? user_can( $user, 'unfiltered_html' ) : current_user_can( 'unfiltered_html' ); if ( !empty( $unfiltered ) ) { $mimes['swf'] = 'application/x-shockwave-flash'; } return $mimes; } add_filter('upload_mimes','demo');I left out “exe” because that wasn’t asked for and I wouldn’t allow it normally. If you want that as well, just add this line:
$mimes['exe'] = 'application/x-msdownload';Forum: Fixing WordPress
In reply to: Best Way to Redirect 301No, but you should be able to use this (to the top of .htaccess file) if the page names and directory structure are identical, with the only difference being the domain name:
RewriteEngine On # Redirect Entire Site to New Domain RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR] RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]Forum: Fixing WordPress
In reply to: Best Way to Redirect 301It’ll depend on what web server your old site is using, but the easiest way to find out is to create a file:
.htaccessand put it in the root of your web directory (on your old server).
Just add this one line (replacing “new-site” with the domain of your actual new site):
Redirect 301 / http://www.new-site.com/You can FTP the file up to your old server if need be, but check if your old server already has an .htaccess file (since it starts with a dot, it might be hidden from view).
Forum: Fixing WordPress
In reply to: Can't modify Header Woe'sYou can alway try the Safe Mode plugin, but I think we’re pretty sure it’s a theme issue. But this would at least guarantee it’s the theme or a plugin (it deactivates plugins and changes to a default theme, if one is available, on a per page request basis).
Actually changing the theme temporarily and leaving plugins as is would at least tell you for certain that it’s the theme. If theme is not being maintained, it’s highly likely that it’s the problem. I’d also worry about security at some point if it’s not being updated. (and of course WordPress core and plugins need to be kept up to date)
Forum: Fixing WordPress
In reply to: Best Way to Redirect 301You need to set redirects or rewrites in the .htaccess of your old site.
Forum: Fixing WordPress
In reply to: database repairGenerally that means your tables are corrupted.
See Rebuilding or Repairing Tables or Indexes
Restoring from backup may work as well.
Before attempting a repair, make a backup first.
Forum: Fixing WordPress
In reply to: Can't modify Header Woe'sHave you tried switching to a default WordPress theme? If the error goes away at least then you would know it’s definitely a problem with the theme. If that doesn’t work, try disabling all your plugins as well. It could be possible something is trying to set a header (often it’s setting a cookie) after the headers have been sent but during output of HTML.
You could comment our line 2284, but it may not actually be the cause of the problem, especially if it’s not a white space issue.
Forum: Fixing WordPress
In reply to: Can't modify Header Woe'sWhen you say there’s no space between the two I assume you mean the line with the if statement and the final line with the closing tag. If so, it’s fine to have space in between, there just can’t be any space after the closing ‘?>’ on the final line.
This is the most normal culprit, though certainly not the only one.
Forum: Fixing WordPress
In reply to: Limit RSS Feeds to s Specific Number of WordsIt can go anywhere in the theme’s functions.php as long as it’s not inside any other functions in the file. I generally just put it near the top above the other code. (and best to make a backup)
Looks like your code snippet will limit to 4 words, not 40, though should see what needs to be changed.
Also, have you tried setting feeds to use a summary instead of full text, set in Settings->Reading?
Forum: Fixing WordPress
In reply to: How to add a filter for this Real State Theme?Have you checked with the theme author?
Forum: Fixing WordPress
In reply to: What is this code called?: %username%In WordPress, they’re called (and used as) Structure Tags.