tedgoas
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Another "Cannot modify header information – headers already sent by"Many thanks Rev. Voodoo and Dreyer. The source of the error was extra space between two PHP functions. Exactly what’s in Rev. Voodoo’s example above. Removed the extra tags and space, now all seems fixed.
Thanks again!
Forum: Fixing WordPress
In reply to: Another "Cannot modify header information – headers already sent by"Thanks guys. I have checked for extraneous white-space in both
wp-config.phpandwp-login.php.I haven’t checked out
functions.php, which I’ve added code to. I’ll experiment with that to see if it’s the culprit.Forum: Fixing WordPress
In reply to: if child page helpWow, just wanted to thank everyone in this thread. I was able to use the code above to single out all first children pages of specific parent pages:
<?php if (is_page('About') || $post->post_parent=="20") : ?>Thanks everyone! – Ted Goas
Forum: Plugins
In reply to: Display content on single posts only using conditional tagsJust solved it… I had another loop on the same page and needed to reset. This is the code that eventually did it:
`<?php wp_reset_query(); ?>
<?php while (have_posts()) : the_post(); ?>
<?php if ( is_single() && !is_home() && !empty($post->post_excerpt) ) {
echo “<div class=’block snapshot’><h4>Snapshot</h4>”;
the_excerpt();
echo “</div>”;
} ?>
<?php endwhile; ?>’Thank you ESMI and this page – http://ww.wp.xz.cn/support/topic/264242?replies=5
Forum: Plugins
In reply to: Display content on single posts only using conditional tagsUnfortunately that didn’t work either. This is weird, it’s like WordPress isn’t acknowledging conditional tags. I tried adding an extra class to the sidebar on the homepage using this code:
<div id="sidebar" class="col-right <?php if (is_home()) {echo 'sidebar-homepage';} ?>">That didn’t work either. I just displays nothing. Seen anything like this before?
Forum: Plugins
In reply to: Display content on single posts only using conditional tagsHmm, it didn’t take.
I do not have the index of the blog set up in the root directory, but rather in http://www.website.com/blog. But WordPress is installed to the folder /blog/.
Would that make a difference? Could it confuse wordpress into thinking website.com/blog/index.php is actually a single page rather than the homepage?
-Ted
Forum: Fixing WordPress
In reply to: Main page works, but all other WP pages 404-ingHandySolo, that makes total sense. I don’t understand how it worked in the first place. But thank you for the help. I followed your instructions and all seems to be well again!
Thank you for the response!
-Ted
Forum: Fixing WordPress
In reply to: Main page works, but all other WP pages 404-ingI should probably add that my permalinks were working for a while before this happened. My .htaccess file (644) is as follows
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .aspForum: Fixing WordPress
In reply to: .htaccess permissions, how strict?Done and done. Thanks for the advice Otto42!
Forum: Fixing WordPress
In reply to: How to stop WordPress from editing .htaccess?I had a similar problem and just 777’d my .htaccess. My permalinks now work. However, am I granting too much acccess and leaving my site open for outsiders?
Forum: Fixing WordPress
In reply to: Homepage Displays, All Other WP Pages Not Founddeepfrydaniel, I am not sure we were having the same problem. My subpages (the whole page) for posts and pages were not displaying, they were 404-ing.
However, I have resolved that this had to do with permissions to my .htaccess file. I have changed them and that seems to have solved my problem.
Forum: Fixing WordPress
In reply to: Homepage Displays, All Other WP Pages Not FoundI just upgraded to the latest version of WP. Although everything seems to have come over fine, the errors have come as well. I still have the same exact problem running 2.1.2.
No subpages appear (pages, blog posts, comments, etc.).
Forum: Fixing WordPress
In reply to: Homepage Displays, All Other WP Pages Not FoundSame here. I Uploaded a new theme yesterday, that’s when I noticed it. However, no themes work, even the ones that came with WP. deepfrydaniel, what version of WP are you running?
I am thinking of upgrading, but am not sure that will solve the problem.
Forum: Fixing WordPress
In reply to: Homepage Displays, All Other WP Pages Not FoundHas anyone else had this problem lately? I have seen several similar posts, but not exact match.
Forum: Fixing WordPress
In reply to: Homepage Displays, All Other WP Pages Not FoundHaha, yes, I am not too happy with my host these days and am looking for a new one.
I checked out my .htaccess file, which contains the following:
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .aspHowever, when I added anything to this, or replaced with the info from the link above, it caused an internal server error. I tried pasting in a few variations of the following:
<Directory http://www.tedgoas.com/>
Options +FollowSymLinks
AllowOverride All# the rest of this directories configuration
</Directory>Any idea what I am doing wrong?