Title: Scriptrunner (Doug Sparling)'s Replies - page 27 | 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 - 391 through 405 (of 520 total)

[←](https://wordpress.org/support/users/scriptrunner/replies/page/26/?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)…
[26](https://wordpress.org/support/users/scriptrunner/replies/page/26/?output_format=md)
27 [28](https://wordpress.org/support/users/scriptrunner/replies/page/28/?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/28/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Admin login layout page messed up – cant login](https://wordpress.org/support/topic/admin-login-layout-page-messed-up-cant-login/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/admin-login-layout-page-messed-up-cant-login/#post-4161025)
 * You’ve resolved this, so I’m not sure if you still an answer for your last question.
   For the most part, everything other wp-content directory (and all its contents)
   and wp-config.php are the files you want to keep. In theory, you could just re-
   upload core WordPress files, but since you’re running an older version of WordPress,
   you might try doing an upgrade on one of the sites…if you’re comfortable with
   that. Perhaps you can create a test site by copying one of the sites (and DB)
   that you’re dealing with and do the upgrade in a dev environment. Not matter 
   what, make a backup!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Backend Error](https://wordpress.org/support/topic/backend-error-1/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/backend-error-1/#post-4163205)
 * [@tara](https://wordpress.org/support/users/tara/), nice list of links.
 * I’ve had cases of slow load time that had to do with an excessive amount of database
   queries (in one case, it was a poorly written theme). When that happens, I’ve
   sometimes had better with [DB Cache Reloaded Fix](http://wordpress.org/plugins/db-cache-reloaded-fix/)
   than with the standard caching plugins.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Custom Permalinks](https://wordpress.org/support/topic/custom-permalinks-14/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/custom-permalinks-14/#post-4163686)
 * Pages are hierarchical, so that’s normal behavior. Permalinks are for posts (
   pages and posts are the same, but they’re not :).
 * I take it from your post that perhaps you have your site set up so the front 
   page displays a static page (set in Settings->Reading), and the name of that 
   page is “sample-pages.” So, if you set the parent page of your test page to be
   sample-pages, then you will get the URL you have described due to the hierarchical
   nature of pages.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [RSS Feeds into a page question…](https://wordpress.org/support/topic/rss-feeds-into-a-page-question/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rss-feeds-into-a-page-question/#post-4163201)
 * RSS feeds come in two flavors – those with full articles and those with just 
   a summary with a link to the full aritcle. You can only get what the site provides.(
   if just using straight RSS) There are other “scarfing” options, but that’s a 
   whole different thing.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [RSS error: Extra content at the end of the document](https://wordpress.org/support/topic/rss-error-extra-content-at-the-end-of-the-document/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rss-error-extra-content-at-the-end-of-the-document/#post-4157766)
 * Is your website the one the feed is attached to? (Not sure I’m following you 
   here…)
 * Are you using a filter on `the_content` anywhere?
 * And anyway you could comment out the loop in your website to test?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Site Stats](https://wordpress.org/support/topic/site-stats-20/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/site-stats-20/#post-4162663)
 * No, stats are not part of Slim Jetpack. I’m pretty sure stats require a WordPress.
   com account regardless (ties into stats.wordpress.com).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Admin login layout page messed up – cant login](https://wordpress.org/support/topic/admin-login-layout-page-messed-up-cant-login/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/admin-login-layout-page-messed-up-cant-login/#post-4161021)
 * SxOne,
 * I should have mentioned wp-login.php as a last resort, but wp-login.php is a 
   core file and shouldn’t be modified (unless you’re restoring it as you are). 
   If your clients want a customized login page, there are plugins that will do 
   that.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Server Overload (Shared Hosting) Since Upgrade to 3.6.1](https://wordpress.org/support/topic/server-overload-shared-hosting-since-upgrade-to-361/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/server-overload-shared-hosting-since-upgrade-to-361/#post-4162653)
 * You can disable all plugins and use default theme for a single page view (so 
   it won’t effect your users) by using the [Safe Mode](http://wordpress.org/plugins/safe-mode/)
   plugin.
 * [@esmi](https://wordpress.org/support/users/esmi/) is right. The first level 
   of WordPress debugging/troubleshooting almost always starts with disabling all
   plugins (which can be done by simply renaming the plugins directory temporarily).
   But Safe Mode may make it easier for you without effecting your site for normal
   users.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Query Posts syntax](https://wordpress.org/support/topic/query-posts-syntax/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/query-posts-syntax/#post-4163119)
 * OK, looks like you need to use the category slug:
 * `'category_name' => 'my-category-slug'`
 * or category id:
 * `'cat' => 22`
 * Sorry about that…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is there anyway to moderate use of shortcodes in wordpress?](https://wordpress.org/support/topic/is-there-anyway-to-moderate-use-of-shortcodes-in-wordpress/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/is-there-anyway-to-moderate-use-of-shortcodes-in-wordpress/#post-4163110)
 * Best I can think of is to use `add_filter` with `wp_insert_post_data` hook and
   use a regular expression to prevent shortcodes (opening and closing square brackets
   and content in between) from begin saved. Probably no good way to stop user from
   actually typing them.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [RSS error: Extra content at the end of the document](https://wordpress.org/support/topic/rss-error-extra-content-at-the-end-of-the-document/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/rss-error-extra-content-at-the-end-of-the-document/#post-4157764)
 * Have you tried deactivating all your plugins? I’ve typically seen this happen
   with plugins that don’t take into account for non-html output (like an XML/RSS
   or JSON feeds).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Admin login layout page messed up – cant login](https://wordpress.org/support/topic/admin-login-layout-page-messed-up-cant-login/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/admin-login-layout-page-messed-up-cant-login/#post-4161017)
 * See [Codex: Customizing the Login Form](http://codex.wordpress.org/Customizing_the_Login_Form)
 * Odds are it’s a plugin or in functions.php of your theme.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Query Posts syntax](https://wordpress.org/support/topic/query-posts-syntax/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/query-posts-syntax/#post-4163083)
 * The code in the bought out theme isn’t using parameterized queries, and could
   be susceptible to SQL injection:
 * So to address that and answer your question, change:
 *     ```
       if ( is_page() ) {
           $paged = get_query_var('paged') ? get_query_var('paged') : 1;
           query_posts( 'post_type=post&paged=' . $paged );
       }
       ```
   
 * to
 *     ```
       if ( is_page() ) {
           $paged = get_query_var('paged') ? get_query_var('paged') : 1;
           query_posts( array ( 'post_type' => 'post', 'category_name' => 'Collaborations', 'posts_per_page' => 5, 'paged' => $paged ) );
       }
       ```
   
 * Big caveat, I wrote this in the forum text area (I haven’t tried running it),
   so I’ll make sure it’s valid when I get back in front of my work computer.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Admin login layout page messed up – cant login](https://wordpress.org/support/topic/admin-login-layout-page-messed-up-cant-login/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/admin-login-layout-page-messed-up-cant-login/#post-4161014)
 * It looks like you’re trying to “brand” you login page and have some bad HTML.
 * This is broken:
 * `<h1><a href="Canadian Music Circuit</a></h1>`
 * it should be:
 * `<h1><a href="http://www.canadianmusiccircuit.com/">Canadian Music Circuit</a
   ></h1>`
 * And yes, you should update your WordPress.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Replacing text phrases sitewide](https://wordpress.org/support/topic/replacing-text-phrases-sitewide/)
 *  [Scriptrunner (Doug Sparling)](https://wordpress.org/support/users/scriptrunner/)
 * (@scriptrunner)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/replacing-text-phrases-sitewide/#post-4162612)
 * I just did a quick test with [Search and Replace](http://wordpress.org/plugins/search-and-replace/),
   and found that it works as advertised. It will show you what it’s going to change
   before it does, and you can get the generated SQL if you want to inspect it.

Viewing 15 replies - 391 through 405 (of 520 total)

[←](https://wordpress.org/support/users/scriptrunner/replies/page/26/?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)…
[26](https://wordpress.org/support/users/scriptrunner/replies/page/26/?output_format=md)
27 [28](https://wordpress.org/support/users/scriptrunner/replies/page/28/?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/28/?output_format=md)