Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How do I hide page titles?Nah, it keeps me on my toes…
Forum: Fixing WordPress
In reply to: How do I hide page titles?Well, yeah, but same result 🙂 Probably best to just delete the entire line. I don’t like to leave uncommented out PHP code inside of commented out HTML…
Forum: Fixing WordPress
In reply to: How do I hide page titles?I can’t guarantee it’ll be the same for your theme, especially as it’s not a WordPress.org theme, but the quick and dirty is you can comment out
the_title(), which may be inpage.php. This is one way you could do it with the default WordPress Twenty Thirteen theme:<h1 class="entry-title"><?php //the_title(); ?></h1>Forum: Fixing WordPress
In reply to: Remove word HOME from Menu Bar and change to WelcomeSorry, I was using the WordPress Twenty Eleven (2011) theme, so no, it won’t be the same. If you can find
show_homein your theme, then you can modify that (probably) where ever it is. If not, then disregard my answer. 🙂Forum: Fixing WordPress
In reply to: Remove word HOME from Menu Bar and change to WelcomeIn the Twenty Eleven theme functions.php, change line 379 from:
$args['show_home'] = true;to:
$args['show_home'] = 'Welcome';To show the change in context, here’s the same change, but showing the entire method.
Change:
function twentyeleven_page_menu_args( $args ) { if ( ! isset( $args['show_home'] ) ) $args['show_home'] = true; return $args; }to:
function twentyeleven_page_menu_args( $args ) { if ( ! isset( $args['show_home'] ) ) $args['show_home'] = 'Welcome'; return $args; }Note: This won’t work on all themes, but will on Twenty Eleven.
Forum: Fixing WordPress
In reply to: Missing argument 2 for wpdb::prepare()The theme probably needs updating.
wpdb::prepare() requires a minimum of 2 arguments as of WordPress 3.5. wpdb::prepare() now uses parameterized queries, so a second argument is required (in pre-WordPress 3.5 wpdb:prepare() only required one argument).
Forum: Fixing WordPress
In reply to: Too many SQL queriesI’ve had a bad theme use the wrong hook and create dozens of unnecessary database queries, so you might try a default theme like Twentytwelve or Twentythirteen. I also had great luck with DB Cache Reloaded Fix where the standard caching plugins weren’t improving performance as much as I’d hoped.
Forum: Fixing WordPress
In reply to: WP_error messagesLooking at the WP_Error class in core and looking at how WordPress itself uses it, I don’t see a way (other than modify the class itself, which you shouldn’t since it is part of core) that you can do what you want except in instances where you instantiate a WP_Error object yourself.
Forum: Fixing WordPress
In reply to: RSS feed doesn't show xml, but it show content.As esmi said, it’s best not to modify core files. WordPress uses Magpie to cache feeds for one hour (in wp-includes/rss.php). I will modify it at times when I’m working on a problem with feeds, but unless you need to, it’s best to wait the 60 minutes. The only way to change the cache time (or disable it) is in the core file itself.
Forum: Fixing WordPress
In reply to: Proper Category and Tag base 301 redirectionYes, it needs to go above any of the WordPress specific htaccess lines.
Forum: Fixing WordPress
In reply to: RSS feed doesn't show xml, but it show content.The feed is cached by WordPress for an hour. There is a way to disable that, but probably best to just wait.
Forum: Fixing WordPress
In reply to: Proper Category and Tag base 301 redirectionThis ended up working for me (and has to come before any other WordPress directives in .htaccess):
<IfModule mod_rewrite.c> RewriteEngine On DirectorySlash Off RewriteRule ^oldcat/?$ /newcat [L,R=301] RewriteRule ^oldcat/(.*)$ /newcat/$1 [L,R=301] </IfModule>But only if you care about redirecting:
http://www.example.com/oldcat
http://www.example.com/oldcat/to
Forum: Fixing WordPress
In reply to: Proper Category and Tag base 301 redirectionI believe something like this will work:
RedirectMatch 301 ^/oldcat/(.*)$ /newcat/$1It should redirect:
http://www.example.com/oldcat/something
http://www.example.com/oldcat/something/but not
http://www.example.com/oldcat
http://www.example.com/oldcat/I think that last rule you posts (
RewriteRule ^oldcat/?(.*)$ newcat/$1 [R=301,L]) tried to compensate for that, but it caused me issues…trying to fix.Forum: Fixing WordPress
In reply to: Home page showing full post, not summaryOne option would be to change the_content() to the_excerpt().
In content.php (in TwentyThirteen theme), I changed:
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?>to
<?php the_excerpt(); ?> <a href="<?php echo get_permalink(); ?>"> Read More...</a>Forum: Fixing WordPress
In reply to: Home page showing full post, not summaryAh, right, when I saw Settings->Reading I assumed the OP was talking about feeds, even though he wasn’t 🙂