Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Admin login layout page messed up – cant loginYou’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
In reply to: Backend Error@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 than with the standard caching plugins.
Forum: Fixing WordPress
In reply to: Custom PermalinksPages 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
In reply to: RSS Feeds into a page question…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
In reply to: RSS error: Extra content at the end of the documentIs your website the one the feed is attached to? (Not sure I’m following you here…)
Are you using a filter on
the_contentanywhere?And anyway you could comment out the loop in your website to test?
Forum: Fixing WordPress
In reply to: Site StatsNo, 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
In reply to: Admin login layout page messed up – cant loginSxOne,
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
In reply to: Server Overload (Shared Hosting) Since Upgrade to 3.6.1You 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 plugin.
@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
In reply to: Query Posts syntaxOK, looks like you need to use the category slug:
'category_name' => 'my-category-slug'or category id:
'cat' => 22Sorry about that…
Forum: Fixing WordPress
In reply to: Is there anyway to moderate use of shortcodes in wordpress?Best I can think of is to use
add_filterwithwp_insert_post_datahook 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
In reply to: RSS error: Extra content at the end of the documentHave 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
In reply to: Admin login layout page messed up – cant loginSee Codex: Customizing the Login Form
Odds are it’s a plugin or in functions.php of your theme.
Forum: Fixing WordPress
In reply to: Query Posts syntaxThe 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
In reply to: Admin login layout page messed up – cant loginIt 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
In reply to: Replacing text phrases sitewideI just did a quick test with 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.