Sam Scholfield
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: See only the first date in the loopTry changing the_date() to the_time() < I’ve found that fixes quite a few of this type of problem.
Sam
Forum: Fixing WordPress
In reply to: Problem acessing wp-adminCheck 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
In reply to: See only the first date in the loopHi Tom,
I can’t help without seeing the code. Can you paste the loop you’re using please.
Thanks,
SamForum: Fixing WordPress
In reply to: wp_new_user_notification pluggable functionNevermind 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
In reply to: The description is missing in the head section of the page.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
In reply to: Using Custom fields / Text in Archive PagesThere 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!
SamForum: Fixing WordPress
In reply to: The description is missing in the head section of the page.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
In reply to: The description is missing in the head section of the page.Hey Qwertyboy – try installing the WordPress SEO plugin – http://ww.wp.xz.cn/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!
SamForum: Themes and Templates
In reply to: Weird slider shadow next to imageTry 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
In reply to: Cost of Premium ThemeIf you are on a .org site, they are normally one off payments. I don’t recall seeing a pay monthly fee.
Forum: Plugins
In reply to: [Redirection] Warning messages after update to WordPress 3.5Hi Naziman,
Yes it’s in models, sorry! /wp-content/plugins/redirection/models/group.php.
The function it’s in is get_for_select().
Regards,
SamForum: Plugins
In reply to: [Redirection] Warning messages after update to WordPress 3.5Hi 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->prepareto$wpdb->queryThat’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
In reply to: Custom Post Type labels in searchI 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
In reply to: [Plugin: Gravity Forms] tw-sack Javascript syntax errorOK 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
In reply to: [Plugin: Gravity Forms] tw-sack Javascript syntax errorThank 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