Title: Sam Scholfield's Replies | WordPress.org

---

# Sam Scholfield

  [  ](https://wordpress.org/support/users/sam-s/)

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 104 total)

1 [2](https://wordpress.org/support/users/sam-s/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/sam-s/replies/page/3/?output_format=md) …
[5](https://wordpress.org/support/users/sam-s/replies/page/5/?output_format=md) 
[6](https://wordpress.org/support/users/sam-s/replies/page/6/?output_format=md) 
[7](https://wordpress.org/support/users/sam-s/replies/page/7/?output_format=md) 
[→](https://wordpress.org/support/users/sam-s/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [See only the first date in the loop](https://wordpress.org/support/topic/see-only-the-first-date-in-the-loop/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/see-only-the-first-date-in-the-loop/#post-3895568)
 * Try changing the_date() to the_time() < I’ve found that fixes quite a few of 
   this type of problem.
 * Sam
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem acessing wp-admin](https://wordpress.org/support/topic/problem-acessing-wp-admin/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/problem-acessing-wp-admin/#post-3895387)
 * Check your .htaccess file. There is probably a bit of code that works on a demo
   version of the site but not on the live one.
 * Just try commenting out everything that isn’t WordPress generated.
 * Sam
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [See only the first date in the loop](https://wordpress.org/support/topic/see-only-the-first-date-in-the-loop/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/see-only-the-first-date-in-the-loop/#post-3895386)
 * Hi Tom,
 * I can’t help without seeing the code. Can you paste the loop you’re using please.
 * Thanks,
    Sam
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp_new_user_notification pluggable function](https://wordpress.org/support/topic/wp_new_user_notification-pluggable-function/)
 *  Thread Starter [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/wp_new_user_notification-pluggable-function/#post-3895384)
 * Nevermind I figured it out. You can’t put the code into functions.php. It has
   to go into a plugin.
 * Thanks anyway 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [The description is missing in the head section of the page.](https://wordpress.org/support/topic/the-description-is-missing-in-the-head-section-of-the-page/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/the-description-is-missing-in-the-head-section-of-the-page/#post-3461385)
 * Just thought – One thing to check is that you have <?php wp_head(); ?> just before
   your </head> tag in your header.
 * Otherwise the meta tags might not be generated.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using Custom fields / Text in Archive Pages](https://wordpress.org/support/topic/using-custom-fields-text-in-archive-pages/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/using-custom-fields-text-in-archive-pages/#post-3465959)
 * There are a few options to complete this:
 * 1. Create a new page in pages – you would then need to create another loop on
   your archive template that looks for the ID of that page and returns the results.
 * 2. create an admin option form with a text area. They enter the text in here 
   and you modify the template to pull that text in.
 * 3. You could create a custom post type for it, but that would be a little overkill–
   Like option 1, you would need another loop on your archive page that pulls in
   the new custom post type.
 * Personally – I think option 2 is the best if you want a short chunk of text (
   and only text). Option 1 is better if you want formatting etc. Option 3 is just
   an option, I wouldn’t bother with it 🙂
 * Hope that helps!
    Sam
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [The description is missing in the head section of the page.](https://wordpress.org/support/topic/the-description-is-missing-in-the-head-section-of-the-page/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/the-description-is-missing-in-the-head-section-of-the-page/#post-3461378)
 * Hi Mark,
 * Ok that’s interesting. The SEO plugin you are currently using should be fine.
 * Basically – the SEO plugins will add the meta tags into your header for you, 
   but the search engines will say you don’t have any content if you haven’t entered
   any.
 * In the code you gave above, you have content=”” < inside these quotes is where
   the description of your page should exist e.g.
 * <meta name=”description” content=”My website will take over the world” />.
 * As I say, the plugin should do this automatically for you, so double check that
   your settings are correct.
 * I hope that helps!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [The description is missing in the head section of the page.](https://wordpress.org/support/topic/the-description-is-missing-in-the-head-section-of-the-page/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/the-description-is-missing-in-the-head-section-of-the-page/#post-3461332)
 * Hey Qwertyboy – try installing the WordPress SEO plugin – [http://wordpress.org/extend/plugins/wordpress-seo/](http://wordpress.org/extend/plugins/wordpress-seo/)–
   that will put all of the meta tags you need into your pages.
 * You can then go into each individual page (within the admin) and customise the
   text that’s shown.
 * Hope that helps!
    Sam
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Weird slider shadow next to image](https://wordpress.org/support/topic/weird-slider-shadow-next-to-image/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/weird-slider-shadow-next-to-image/#post-3425616)
 * Try removing the shadow in your CSS file on 1395, I’m not too sure what’s actually
   causing the space, it could be a bug with the slider.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Cost of Premium Theme](https://wordpress.org/support/topic/cost-of-premium-theme/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/cost-of-premium-theme/#post-3425607)
 * If you are on a .org site, they are normally one off payments. I don’t recall
   seeing a pay monthly fee.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Redirection] Warning messages after update to WordPress 3.5](https://wordpress.org/support/topic/warning-messages-after-update-to-wordpress-35/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/warning-messages-after-update-to-wordpress-35/#post-3264211)
 * Hi Naziman,
 * Yes it’s in models, sorry! /wp-content/plugins/redirection/models/group.php.
 * The function it’s in is get_for_select().
 * Regards,
    Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Redirection] Warning messages after update to WordPress 3.5](https://wordpress.org/support/topic/warning-messages-after-update-to-wordpress-35/)
 *  [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/warning-messages-after-update-to-wordpress-35/#post-3264208)
 * Hi All,
 * This fix will get rid of the error, please be aware that it is changing the plugin
   files directly, so it will be overwritten the next time an update is released(
   which will hopefully contain the fix!)
 * Go to /wp-content/plugins/redirection/group.php line 70
 * Change `$wpdb->prepare` to `$wpdb->query`
 * That’s it. prepare is the wrong function here because there isn’t a where clause,
   so you can’t pass it through a value to sanitise with the prepare function.
 * Hope that helps someone!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Custom Post Type labels in search](https://wordpress.org/support/topic/custom-post-type-labels-in-search/)
 *  Thread Starter [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-labels-in-search/#post-3265243)
 * I thought that would be the case. I was hoping there might be a filter or hook
   I could link into.
 * So your thinking something like:
    if event is within the search term, then add
   the event link to the results.
 * The only problem with that is that it would always be at the top of the results,
   but I think I could live with that…
 * I know that the plugin Relevanssi can search for taxonomy terms (with the premium
   version) but it doesn’t have anything for custom post types.
 * Thanks for your help James.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Gravity Forms] tw-sack Javascript syntax error](https://wordpress.org/support/topic/plugin-gravity-forms-tw-sack-javascript-syntax-error/)
 *  Thread Starter [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-gravity-forms-tw-sack-javascript-syntax-error/#post-2970362)
 * OK I have solved it.
 * After removing almost everything from my themes function.php file, it turned 
   out to be the line that was adding the theme-options file.
 * Within that file there was a little bit of commented out html right at the end
   of the file e.g. <!– use this code in the templates –>.
 * As it wasn’t a PHP comment, it was being output before the doctype in the HTML
   and therefore breaking the page!.
 * So double check that any php files you are including (or requiring) don’t have
   any HTML that is running (commented out or not) outside of a function.
 * I hope that helps someone else 🙂
 * Sam
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Gravity Forms] tw-sack Javascript syntax error](https://wordpress.org/support/topic/plugin-gravity-forms-tw-sack-javascript-syntax-error/)
 *  Thread Starter [Sam Scholfield](https://wordpress.org/support/users/sam-s/)
 * (@sam-s)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-gravity-forms-tw-sack-javascript-syntax-error/#post-2970353)
 * Thank you Jeffvand, you have been a lot of help. The plugin is working in the
   2010 theme, so there must be a conflict with my code somewhere.
 * I will let you know if I manage to identify the problem.
 * Thanks again,
    Sam

Viewing 15 replies - 1 through 15 (of 104 total)

1 [2](https://wordpress.org/support/users/sam-s/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/sam-s/replies/page/3/?output_format=md) …
[5](https://wordpress.org/support/users/sam-s/replies/page/5/?output_format=md) 
[6](https://wordpress.org/support/users/sam-s/replies/page/6/?output_format=md) 
[7](https://wordpress.org/support/users/sam-s/replies/page/7/?output_format=md) 
[→](https://wordpress.org/support/users/sam-s/replies/page/2/?output_format=md)