BongSong
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PostRatings] Where to insert php functions?Lester,
Thanks. This works.
One final question if I could…
How could I add a title to that block of code you provided so it gives the top three highest scored posts a title?
Something like “Check out these other posts and vote!”
Then underneath are the three postsThanks for your patience and help. 🙂
Forum: Plugins
In reply to: [WP-PostRatings] Where to insert php functions?Lester,
Thanks, that works.
I have updated my single-loop.php by placing the php function for highest rated posts.
However this line:
Default: get_most_rated(‘post’, 0, 3)
is being echoed out into the post. I can’t understand why and I assume I need that part of the code so it knows about the 0 and 3 value on displaying the posts.
I copied exactly as it was in your faq page.
What am I doing wrong? Paste the code I need to use please?
Thanks.
Forum: Plugins
In reply to: [WP-PostRatings] Where to insert php functions?Lester,
First of all thanks for your assistance. And sorry for the duplicate posts earlier. Had an issue with my browser.
I am frankly confused. I am looking for the php code:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
in the single.php file. It doesn’t exist in index.php either as instructed on the faq.
I am using wp 3.1.2 and using the twentyten theme.
I understand that once I find this:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
I need to paste the php code as instructed on the faq for inserting most rated posts.
I understand that I could do this within a widget but this is not an option I want to use.
I’m hoping to insert it directly after the [ratings] shortcode in the post.
More guidance please?