Title: Scriptrunner (Doug Sparling)'s Replies - page 21 | WordPress.org

---

# Scriptrunner (Doug Sparling)

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 301 through 315 (of 520 total)

[←](https://wordpress.org/support/users/scriptrunner/replies/page/20/?output_format=md)
[1](https://wordpress.org/support/users/scriptrunner/replies/?output_format=md) 
[2](https://wordpress.org/support/users/scriptrunner/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/scriptrunner/replies/page/3/?output_format=md)…
[20](https://wordpress.org/support/users/scriptrunner/replies/page/20/?output_format=md)
21 [22](https://wordpress.org/support/users/scriptrunner/replies/page/22/?output_format=md)…
[33](https://wordpress.org/support/users/scriptrunner/replies/page/33/?output_format=md)
[34](https://wordpress.org/support/users/scriptrunner/replies/page/34/?output_format=md)
[35](https://wordpress.org/support/users/scriptrunner/replies/page/35/?output_format=md)
[→](https://wordpress.org/support/users/scriptrunner/replies/page/22/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do I hide page titles?](https://wordpress.org/support/topic/how-do-i-hide-page-titles-1/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-do-i-hide-page-titles-1/#post-4177327)
 * Nah, it keeps me on my toes…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do I hide page titles?](https://wordpress.org/support/topic/how-do-i-hide-page-titles-1/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-do-i-hide-page-titles-1/#post-4177324)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do I hide page titles?](https://wordpress.org/support/topic/how-do-i-hide-page-titles-1/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-do-i-hide-page-titles-1/#post-4177317)
 * 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 in `page.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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Remove word HOME from Menu Bar and change to Welcome](https://wordpress.org/support/topic/remove-word-home-from-menu-bar-and-change-to-welcome/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/remove-word-home-from-menu-bar-and-change-to-welcome/#post-4177292)
 * Sorry, I was using the WordPress Twenty Eleven (2011) theme, so no, it won’t 
   be the same. If you can find `show_home` in your theme, then you can modify that(
   probably) where ever it is. If not, then disregard my answer. 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Remove word HOME from Menu Bar and change to Welcome](https://wordpress.org/support/topic/remove-word-home-from-menu-bar-and-change-to-welcome/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/remove-word-home-from-menu-bar-and-change-to-welcome/#post-4177242)
 * In 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Missing argument 2 for wpdb::prepare()](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-26/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/missing-argument-2-for-wpdbprepare-26/#post-4176257)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Too many SQL queries](https://wordpress.org/support/topic/too-many-sql-queries-1/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/too-many-sql-queries-1/#post-4176689)
 * I’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](http://wordpress.org/plugins/db-cache-reloaded-fix/)
   where the standard caching plugins weren’t improving performance as much as I’d
   hoped.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP_error messages](https://wordpress.org/support/topic/wp_error-messages/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/wp_error-messages/#post-4175680)
 * Looking 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [RSS feed doesn't show xml, but it show content.](https://wordpress.org/support/topic/rss-feed-doesnt-show-xml-but-it-show-content/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rss-feed-doesnt-show-xml-but-it-show-content/#post-4176166)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proper Category and Tag base 301 redirection](https://wordpress.org/support/topic/proper-category-and-tag-base-301-redirection/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/proper-category-and-tag-base-301-redirection/#post-4166415)
 * Yes, it needs to go above any of the WordPress specific htaccess lines.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [RSS feed doesn't show xml, but it show content.](https://wordpress.org/support/topic/rss-feed-doesnt-show-xml-but-it-show-content/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rss-feed-doesnt-show-xml-but-it-show-content/#post-4176157)
 * 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proper Category and Tag base 301 redirection](https://wordpress.org/support/topic/proper-category-and-tag-base-301-redirection/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/proper-category-and-tag-base-301-redirection/#post-4166405)
 * This 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)
    [http://www.example.com/oldcat/](http://www.example.com/oldcat/)
 * to
 * [http://www.example.com/newcat](http://www.example.com/newcat)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Proper Category and Tag base 301 redirection](https://wordpress.org/support/topic/proper-category-and-tag-base-301-redirection/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/proper-category-and-tag-base-301-redirection/#post-4166404)
 * I believe something like this will work:
 *     ```
       RedirectMatch 301 ^/oldcat/(.*)$ /newcat/$1
       ```
   
 * It should redirect:
 * [http://www.example.com/oldcat/something](http://www.example.com/oldcat/something)
   
   [http://www.example.com/oldcat/something/](http://www.example.com/oldcat/something/)
 * but not
 * [http://www.example.com/oldcat](http://www.example.com/oldcat)
    [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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Home page showing full post, not summary](https://wordpress.org/support/topic/home-page-showing-full-post-not-summary/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/home-page-showing-full-post-not-summary/#post-4173779)
 * One 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](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Home page showing full post, not summary](https://wordpress.org/support/topic/home-page-showing-full-post-not-summary/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/home-page-showing-full-post-not-summary/#post-4173773)
 * Ah, right, when I saw Settings->Reading I assumed the OP was talking about feeds,
   even though he wasn’t 🙂

Viewing 15 replies - 301 through 315 (of 520 total)

[←](https://wordpress.org/support/users/scriptrunner/replies/page/20/?output_format=md)
[1](https://wordpress.org/support/users/scriptrunner/replies/?output_format=md) 
[2](https://wordpress.org/support/users/scriptrunner/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/scriptrunner/replies/page/3/?output_format=md)…
[20](https://wordpress.org/support/users/scriptrunner/replies/page/20/?output_format=md)
21 [22](https://wordpress.org/support/users/scriptrunner/replies/page/22/?output_format=md)…
[33](https://wordpress.org/support/users/scriptrunner/replies/page/33/?output_format=md)
[34](https://wordpress.org/support/users/scriptrunner/replies/page/34/?output_format=md)
[35](https://wordpress.org/support/users/scriptrunner/replies/page/35/?output_format=md)
[→](https://wordpress.org/support/users/scriptrunner/replies/page/22/?output_format=md)