Hi Guys..sorry for the delays..I had to get some sleep.
s1r0n...are you on a Windows Box? What's the server configurations?
If you are getting huge amount of traffic then you need to reduce the amount of plugins you use on the site. They must be hand coded into your theme. WordPress as is a heavy script adding 15 or 20 scripts on top makes it a NONO script to run on shared hosting servers. Moving to a VPS box is one way to avoid suspension but with that you are still sharing your site with 5 or 6 accounts...one of then can be a very heavy traffic site and can take all the juice the server has to offer. So really a VPS box can be slow too.
Having said that, some themes are poorly written and can run extremely bad with other scripts. Most common issue is looping. I suggest checking your error log and find out of any is maxing the server memory. (exhausting the server memory).
I also did tell you about including different headers in your theme!! Well for that you have to study your theme really good and know what loads into each page.
NOTE: there are so many different methods to achieve this.By default all plugins uses <?php get_header(); ?> to insert whatever they need for it to work. they use other tags too...in the page.php, footer.php and so forth.
You can use <?php include (TEMPLATEPATH . '/header-home.php'); ?> on your home or index page instead of <?php get_header(); ?>. You have to create header-home.php first
In the header-home.php you can add whatever you want (js, css, and so forth) to make your theme functional (menu, flash). That's why I said you need to study your theme first. Off course none of the plugins will be functional unless you want them to. (hand code the plugin JS, CSS) into the header-home.php.
You can leave the rest of the theme pages to load the default header.php or you can customize each page to load different header and footer.
Let's say you don't need any of the plugins to be loaded into your home, contact us, about us, info pages..just use the customized header and none of the plugin will load. So you have clean fast pages. (You still need to use WP loop)
- Code: Select all
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(''); ?>
<?php endwhile; else: ?>
<?php endif; ?>
Or you can search Google of how to use content outside the loop
The most important pages I think S2m are (signup page, login page, welcome) or any page that requires S2m to work, like the Pro forms in pages. (s2m setup)
Having said that, there are some scripts that you can use in your function.php to stop certain plugins from loading in certain page) Google it and you will find bunch.
Others:
You can hide anything you want in certain pages by using this:
- Code: Select all
<?php if( !is_page(array('pageID', 'pageID')) ) :?>
Any code you don't want to show on the above pages goes in here. I use that to hide some parts of the header like menus, use logo with no link back....
<?php } ?>
<?php endif;?>
I would first check the error log and then move toward other solutions.
Sam