Scriptrunner (Doug Sparling)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Replacing text phrases sitewideWhile I won’t recommend a plugin I haven’t tried, I will mention plugins that have good download numbers, a fairly high rating, and a good track support record. Search and Replace seemed to qualify.
Forum: Fixing WordPress
In reply to: Replacing text phrases sitewideNo, I don’t. I would definitely make a backup first, regardless of the method or plugin. If I get some time this evening, I can see how they perform.
Forum: Fixing WordPress
In reply to: Site StatsYou’ll need to use Jetpack, which now includes WordPress.com Stats.
Forum: Fixing WordPress
In reply to: Replacing text phrases sitewideHave you tried any plugins like Search and Replace or Find Replace?
Forum: Fixing WordPress
In reply to: redirect after registerAs far as your first question, it would be problematic to redirect a newly registered user because they can’t get to the admin section until after they receive the new user confirmation email. However, you could try to redirect them on their first login. I’m not sure if any plugins do that, but I could post some code if that’s of interest.
For local listing websites, I would think there would be plugins for that. You search at the WordPress.org Plugin Directory.
Forum: Fixing WordPress
In reply to: Duplicate category pagesWhat version of WordPress are you running? I want to make sure I’m using the same version. (it sounds like from the Permalinks wording we may have different versions)
Forum: Fixing WordPress
In reply to: Need help with code error found on w3c@jaycee29 You’re quite welcome. Good luck and happy coding!
Forum: Fixing WordPress
In reply to: Duplicate category pagesIn WordPress 3.6.1, I use:
Custom Structure http://localhost/%category%/%postname%in Settings->Permalinks.
I only get one page. I get a 404 if I remove the category from the URL.
Forum: Fixing WordPress
In reply to: unable to login t admin page@thatsananths – You’re quite welcome!
Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?A quick note for anyone who may try using this. You’ll probably need to add a priority to the add_filter function so it’ll run last:
add_filter( 'get_pages','include_current_page_if_hidden', 1000 );Forum: Fixing WordPress
In reply to: Syntax Errordefine('DB_CHARSET', 'utf8');is valid. It could be the line right before or after that line. (like a missing semi-colon on the preceding line).Forum: Fixing WordPress
In reply to: How to make page visible in the menu only if staying at that page?OK, this is something I threw together real quick, not thoroughly tested, but seems to work for me. Add this to the
functions.phpfile in your theme:add_filter( 'get_pages','include_current_page_if_hidden' ); function include_current_page_if_hidden( $pages ) { global $post; if ( !is_page() ) return $pages; for ( $i = 0; $i < count( $pages ); $i++ ) { $included_ids[] = $pages[$i]->ID; } if ( !in_array( $post->ID, $included_ids ) ) { $pages[] = get_post( $post->ID ); } return $pages; }If it’s remotely useful for anyone, I may create a plugin.
Forum: Fixing WordPress
In reply to: unable to login t admin pageIf you reset your password in the database via phpMyAdmin or MySQL console, make sure you use the MD5 hash of your plain text password.
To see more information on how to do that, or other methods of resetting the password, read this section of the Codex:
Forum: Fixing WordPress
In reply to: Need help with code error found on w3cTake a look here for general explanations of your validation errors:
Explanation of the error messages for the W3C Markup Validator
Looking at your snippet, I imagine it’s complaining that you’re using a
spantag directly after aultag, which is invalid. Off the top of my head, I’m pretty sure only anlitag is allowed there.It needs to be more like this:
<ul> <li><span class="arri"></span><span class="arri2"></span></li> </ul>Forum: Fixing WordPress
In reply to: Add HTML to WordPress homepage?Generally you’ll want to enqueue your javascript in the theme’s functions.php file:
The basic way to do this is as follows:
function load_my_js() { wp_register_script('myscript', 'http://www.example.com/myscript.js'); wp_enqueue_script('myscript'); } add_action('wp_enqueue_scripts', 'load_my_js');If you want to load the Javascript at the bottom of the page (and the above doesn’t do it), then you can try this:
function load_my_js() { wp_enqueue_script('myscript', 'http://www.example.com/myscript.js', '', '', true); } add_action('wp_enqueue_scripts', 'load_my_js');