eddioot
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: using php variable in loopok, thanks for the advise. I will look into that. 🙂
Forum: Fixing WordPress
In reply to: using php variable in loopYes i put the query in the loop so every post has his $postscore .
I was just wondering if i am able to sort the posts to be displayed in descending order for the $postscore.Forum: Fixing WordPress
In reply to: using php variable in loopNo there is a table in the database where i get the value from. It is the sum of all votes for the post id, my code is:
<?php $post_id = $post->ID; $score = $wpdb->get_var( $wpdb->prepare( " SELECT sum(rating_rating) FROM pp_ratings WHERE rating_postid =%s ", $post_id ) ); $postscore = "{$score}"; ?>Forum: Fixing WordPress
In reply to: multiple custom loops and paginationMaybe you can try the following:
$temp = $wp_query; $wp_query= null; $wp_query = new WP_Query('offset=2&paged=' . $paged);And then for the query:
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>Forum: Fixing WordPress
In reply to: Can't get wp-admin login page to resolveRemoving the plugins through FTP resolved this issue for me a couple of times.
After that you can upload them one by one to see which one gave the problem.
Forum: Fixing WordPress
In reply to: Change the language of wordpress installationWow, sometimes it can be that simple 🙂
Thank you very much, saved a lot of time!
Forum: Plugins
In reply to: [Plugin: WP-PostRatings] Create a hotpageNo ideas about this? I really like this plugin but really need a page with the top-voted posts.
If anyone can help i would really appreciate it 🙂
Forum: Fixing WordPress
In reply to: edit the sidebarThanks! works perfectly