Alkorr
Forum Replies Created
-
Forum: Themes and Templates
In reply to: No comments on specific category pages?Hi there! How can this code work for tags as well?
Thanks a lot! 🙂
Forum: Fixing WordPress
In reply to: Show latest comment on single postThanks you so much alchymyth! That’s exactly what I was *trying* to do.
Once again, you made my day 🙂
Forum: Fixing WordPress
In reply to: Show latest comment on single postSure, here my code to show the latest comment:
<?php $args = array( 'number' => 1, 'post_id' => $post->ID, 'status' => 'approve' ); $latest_comment = get_comments( $args ); if( $latest_comment ) foreach( $latest_comment as $comment ) { ?> Latest comment:<?php echo $comment->comment_author; ?>: <?php echo wp_html_excerpt( $comment->comment_content, 100 ); ?>..." <?php } ?>As you can see, I managed to trim the excerpt 🙂
Now I indeed want to link the comment excerpt to the full comment, that’s it!
Forum: Fixing WordPress
In reply to: Show latest comment on single postOk, forget about the ‘No comment’ thing, I will just show nothing if there is no comment.
I’m still ‘working’ on the link to the full comment!
Forum: Fixing WordPress
In reply to: Show latest comment on single postThanks alchymyth, your code works perfectly! 🙂
Last point: add a link on comment to read full comment.
Doesn’t seem to work since I have to define first $comment->ID I guess.
Also, if there is no comment for the post, I tried:
<? else {
echo “No comment”;
} ?>But it doesn’t seem to work…
I’m a persevering person even if I don’t always understand what I’m doing, at least I’m trying 🙂
Forum: Fixing WordPress
In reply to: Show latest comment on single postFor info, I have tried to use the code from this thread but they don’t work for me:
http://wordpress.org/support/topic/passing-parameter-to-get_comments-function
Forum: Fixing WordPress
In reply to: Show latest comment on single postHi alchymyth! As a matter of fact I did but I couldn’t find a way to show the latest post for the current post. If I use the post ID, then it is workong only for this post ID, not any other.
I’m still trying to make it work using my poor PHP knowledge. I always think what I’m looking for requieres ‘simple’ code but it apparently doesn’t 🙂
Forum: Fixing WordPress
In reply to: Show latest comment on single postI checked the WP Forums again and couldn’t find any information about what I’m looking for. I guess it is not a very common request…
If someone thinks of something, let me know 😉
Forum: Fixing WordPress
In reply to: Search Media Does Not WorkMe again, I found out eventually.
Thanks Esmi, you rock, as always! 🙂
Forum: Fixing WordPress
In reply to: Search Media Does Not WorkHi esmi! I just posted on this thread:
http://wordpress.org/support/topic/cant-search-in-media-libraryAre the two solutions the same ones? Because I don’t get where to put either you code or the other one… Damn, I wish I understood PHP better…
Thanks for your help!
Forum: Fixing WordPress
In reply to: can't search in media librarymaorb’s solution sounds great but I don’t understand where I should add that code, in which query/files in my theme?
Thanks for your help!
Forum: Plugins
In reply to: [GD Star Rating] [Plugin: GD Star Rating] Multi ratings on a pageHi sitwi, bch2453. I didn’t find anything yet. If be sure I’ll let you know if I do! 🙂
Forum: Plugins
In reply to: Most Commented PostsI know what’s wrong!! It is because of a special loop I use in my header! But I’m afraid only alchymyth can help me on this issue… If you read this thread my friend, could you please help me?
The problem is the 6 most commented posts are showning but above them appear my 3 sticky posts (from the loop in my header, remember this thread: http://wordpress.org/support/topic/do-not-duplicate-post-covering-2-queries).
I don’t want to exclude all stickies from the list of the most commented posts (because a sticky post can be among the most comments posts of course) but I just want the stickies not to show above this list only because they are stickies…
Geez, WordPress loops are killing me… But thanks for your help! 🙂
Forum: Plugins
In reply to: Most Commented PostsNo idea? I took a look at other codes to get the most commented posts but these codes are huge……… so many lines and database queries.
I’m puzzled!
Forum: Plugins
In reply to: [GD Star Rating] [Plugin: GD Star Rating] Multi ratings on a pageOk, so I found out how to create multi sets (a list of items to vote for) but this is not what I’m looking for. I want to be able to create a rating for each book listed on a page. So no multi sets but for each book, a different id so I can add as many as I want (and where I want) on the page. i.e:
-
Book1
Vote for it!Book2
Vote for it!And so on…
Thanks for your help!