benjaminducitoyen
Forum Replies Created
-
the home og my website is : http://www.lafabriqueducitoyen.fr/
More precisely, the page where I want to list all ideas by decreasing order in rating is : http://www.lafabriqueducitoyen.fr/les-idees-les-plus-appreciees/Benjamin
I’m not familiar with php code but I have tried to manipulate the GetTopRated() function without success.
In the following, this is the part of the code in GetTopRated() that I have changed (my modification in bold ):
switch ($type)
{
case “posts”:
case “pages”:
$id = RatingWidgetPlugin::Urid2PostId($urid);
$post = get_post($id);
$author = get_userdata($id[‘post_author’]);
$title = trim(strip_tags($post->post_title));
$excerpt = $this->GetPostExcerpt($post, 200);
$permalink = get_permalink($post->ID);
$thumbnail = $this->GetPostFeaturedImage($post->ID);
break;….
<h5>‘ . $short . ‘<hauthorbenjamin class> – display_name).’ >’.$author->display_name.’</hauthorbenjamin>
Can you give me some advice?
Benjamin