alexlr
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Aggregate posts from different categories on the front pageWell, that worked fine for two loops but I forgot I needed a third. I tried your code above uwiuw but it kept spitting out other data besides the actual post content. Guess I still need some help with this.
Forum: Fixing WordPress
In reply to: Aggregate posts from different categories on the front pageThis is what I ended up doing. It seems to work. Not sure if it’s the best way or the right way but it appears to be working. Any feedback would be appreciated.
<div class="frontpage"> <h3>What's New</h3> <?php $the_query = new WP_Query('cat=6&showposts=4&orderby=post_date&order=desc'); while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?> <div class="story"> <?php the_excerpt('Read more...'); ?> </div> <?php endwhile; ?> <h3>Ask the Doc</h3> <?php $the_query = new WP_Query('cat=5&showposts=4&orderby=post_date&order=desc'); while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?> <div class="story"> <?php the_excerpt('Read more...'); ?> </div> <?php endwhile; ?> </div>Forum: Fixing WordPress
In reply to: my website doesn’t work anymore!! this is a real strange one…Yeah, try that and keep us posted. Hopefully that works.
Forum: Fixing WordPress
In reply to: my website doesn’t work anymore!! this is a real strange one…If you look at the source in a browser you’ll see that before the doctype declaration you have a busted up javascript file that’s not closed. That is the root of your problem. It appeared that it was because of that photo plugin but apparently it’s not. You have to track down what is injecting that script into the very top of the page and either fix it or remove it.
Forum: Fixing WordPress
In reply to: my website doesn’t work anymore!! this is a real strange one…The two scripts that seem to be giving you trouble belong to the eht-photos plugin and the two scripts that plugin is calling (XMLRequest.js and Functions.js). Try disabling it and see if the site works again. If it does, delete the plugin and reinstall it. Those two JS files are broken as they stand right now.
Forum: Fixing WordPress
In reply to: my website doesn’t work anymore!! this is a real strange one…According to firebug in Function.js you have an unclosed string. The very last function call is missing a “}” after the semicolon. Try adding that to see if it works.
Forum: Fixing WordPress
In reply to: Strange Page BehaiviorIn your dashboard, under Settings/Reading do you have it set to a static page or latest posts? Do you have a home.php file in your theme directory?
Forum: Fixing WordPress
In reply to: Making Sociable Icons “Brighter”?Put this into your custom.css file:
.sociable-hovers {
opacity: 1;
-moz-opacity: 1;
filter: alpha(opacity=100);
}This overrides the socialable.css file, which is giving those icons opacity.
Can you post what your .htaccess file looks like for the redirection? You can change the domain names to protect the innocent but I want to see what you have written in there.
Forum: Fixing WordPress
In reply to: my website doesn’t work anymore!! this is a real strange one…Actually you have an unclosed script at the very top right before your doctytpe declaration that’s not closed with a </script> and it’s running right into that doctype declaration. It doesn’t actually become closed until the page loads the jquery script (which also means that it’s not loading jquery either, along with your sytle sheet, doctype, etc etc.
Forum: Fixing WordPress
In reply to: my website doesn’t work anymore!! this is a real strange one…And the Addthis sytlesheet is coming from the Addthis widget you have installed on your site (Share This With Your Homies).
Forum: Fixing WordPress
In reply to: my website doesn’t work anymore!! this is a real strange one…Your problem is there’s no “head” section. You’re closing it at the bottom but it’s never been opened at the top. Open up your header.php file and make sure thre’s a <head> as well as your </head>
Crap, the top example is wrong. Needs an escape for .com. Top example should read:
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]Usually you do the www or non-www via the .htaccess file. For example:
# mod_rewrite in use
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.domain.com [NC]
RewriteRule ^(.*)$ http://www.domain2.com/$1 [L,R=301]First example redirects the domain to the “www.” version.
The second example redirects the “www.” version to the non “www.” version.
Third example redirects the first domain to a second domain.Forum: Fixing WordPress
In reply to: How do I test out a new page?You probably should use Theme Test Drive, especially if you’re messing around with index.php file. The way the plugin works is everyone else sees the untouched theme while you (if you’ve logged in through the backend and activated theme test drive) see the modified theme. That is what you’re wanting to do essentially.