rragle
Forum Replies Created
-
I have just installed it and have the very latest version. If you haven’t been able to fix the pagination issue is there a way I can turn off the link to older posts?
Forum: Fixing WordPress
In reply to: PHP Error — What is causing this?Ok- In case anyone else has this problem in the future, The support team from my ISP got back to me with this”Yes. PHP was upgraded.One of the changes to this version of PHP was to tighten up the directory security.
Net result:
You can no longer legally use”./” in a path name at the root level.
‘./wp-blog-header.php’…needs to be…
‘wp-blog-header.php'”
I made the change and viola. Whew!
Forum: Fixing WordPress
In reply to: PHP Error — What is causing this?Erik-
If you are subscribing to the feed for this topic. . .I see your site is back up and running. Can you tell me what you did?
Thanks!
Forum: Fixing WordPress
In reply to: PHP Error — What is causing this?I have exactly the same problem. Nothing on the site has changed at all. I actually tried the above since I had created a custom theme but changing to a default theme didn’t work.
My site is for a candidate two weeks from election so this is fairly serious
Forum: Developing with WordPress
In reply to: Trouble with getting comment_excerpt() to showFor some reason they are in chronological order latest at the bottom.
But your code was very helpful. At least I have only one comment showing. Not the latest – here is the latest code
<?php if ($comments) : ?> <ul> <?php $commentcount=0 ?> <?php foreach ($comments as $comment) : ?><?php $commentcount++;?> <?php if($commentcount==1){ ?> <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>"> <cite><?php comment_author_link() ?></cite> says: <?php if ($comment->comment_approved == '0') : ?> <em>Your comment is awaiting moderation.</em> <?php endif; ?> <?php comment_excerpt() ?> <?php } ?> </li> <?php /* Changes every other comment to a different class */ $oddcomment = ( empty( $oddcomment ) ) ? 'class="alt" ' : ''; ?> <?php endforeach; /* end for each comment */ ?> </ul> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?>
Forum: Developing with WordPress
In reply to: Trouble with getting comment_excerpt() to showI did get it to work actually using this cobbled together from comments-popup.php and comments.php. The part I want to solve now is getting just one to show -preferably the latest. I think it will be hard to show the latest without a custom query directly to the database which I havent tried but if anyone has any ideas that would be great. `<?php if ($comments) : ?>
<?php
foreach ($comments as $comment) :
?>
<li <?php echo $oddcomment; ?>id=”comment-<?php comment_ID() ?>”>
<cite><?php comment_author_link() ?></cite> says:
<?php if ($comment->comment_approved == ‘0’) : ?>
Your comment is awaiting moderation.
<?php endif; ?>
<?php comment_excerpt() ?><?php
/* Changes every other comment to a different class */
$oddcomment = ( empty( $oddcomment ) ) ? ‘class=”alt” ‘ : ”;
?><?php endforeach; /* end for each comment */ ?>
<?php else : // this is displayed if there are no comments so far ?>
<?php if (‘open’ == $post->comment_status) : ?>
<!– If comments are open, but there are no comments. –><?php else : // comments are closed ?>
<!– If comments are closed. –>
<p class=”nocomments”>Comments are closed.</p><?php endif; ?>
<?php endif; ?>`Forum: Developing with WordPress
In reply to: Trouble with getting comment_excerpt() to showHmm I wonder if it is possible to fiddle with the comments loop – add it into The Loop?
Forum: Developing with WordPress
In reply to: Trouble with getting comment_excerpt() to showI placed it in index.php. I pasted the loop which includes the comment excerpt tag into the pastebin: https://wordpress.pastebin.ca/738623