rarikola
Forum Replies Created
-
Forum: Plugins
In reply to: [MashShare - Social Media Share Buttons, Social Share Icons] Valid TokenThanks for the quick reply.
Yes I checked the token here https://developers.facebook.com/tools/debug/accesstoken/
and everything looks all right, moreover, FB doesn’t have expiring tokens so maybe that’s a problem https://haeha.net/fb-token.jpgForum: Plugins
In reply to: [MashShare - Social Media Share Buttons, Social Share Icons] Valid TokenI have the same problem. I’ve extended the token but still getting the error.
Yes, movies can be added but I need to sort them in categories,
unfortunately when I check “Movies” tab in admin dashboard or “Categories”(Posts-> Categories) there are no movies.
Sorry for my English…WOOHOOO ITS WORKING !!! THANK YOU! THANK YOU !THANK YOU!
OK I will try and let you know. Thanks so much ??
Were exactly should I put that code…here is my file
<?php query_posts(‘meta_key=asd&orderby=meta_value&order=ASC’); ?>
<?php /** * This file creates a blog-style layout of posts, useful if you are creating a generic blog. * This file is not to be loaded directly, but is instead loaded from different templates. * * @package Suffusion * @subpackage Templates */ global $suffusion, $query_string, $wp_query, $suffusion_current_post_index, $suffusion_full_post_count_for_view, $suffusion_blog_layout, $suffusion_duplicate_posts; $suffusion_blog_layout = true; if (!isset($suffusion_duplicate_posts)) $suffusion_duplicate_posts = array(); global $post; if (have_posts()) { $suffusion_current_post_index = 0; $suffusion_full_post_count_for_view = suffusion_get_full_content_count(); while (have_posts()) { the_post(); $original_post = $post; if (in_array($post->ID, $suffusion_duplicate_posts)) { continue; } $suffusion_current_post_index++; global $suf_category_excerpt, $suf_tag_excerpt, $suf_archive_excerpt, $suf_index_excerpt, $suf_search_excerpt, $suf_author_excerpt, $suf_show_excerpt_thumbnail, $suffusion_current_post_index, $suffusion_full_post_count_for_view, $suf_pop_excerpt, $page_of_posts; if (($suffusion_current_post_index > $suffusion_full_post_count_for_view) && ((is_category() && $suf_category_excerpt == "excerpt") || (is_tag() && $suf_tag_excerpt == "excerpt") || (is_search() && $suf_search_excerpt == "excerpt") || (is_author() && $suf_author_excerpt == "excerpt") || ((is_date() || is_year() || is_month() || is_day() || is_time())&& $suf_archive_excerpt == "excerpt") || (isset($page_of_posts) && $page_of_posts && $suf_pop_excerpt == "excerpt") || (!(is_singular() || is_category() || is_tag() || is_search() || is_author() || is_date() || is_year() || is_month() || is_day() || is_time()) && $suf_index_excerpt == "excerpt"))) { $show_image = $suf_show_excerpt_thumbnail == "show" ? true : false; $classes = array('excerpt'); } else { $classes = array('full-content'); } ?> <div <?php post_class($classes);?> id="post-<?php the_ID(); ?>"> <?php suffusion_after_begin_post(); ?> <div class="entry-container fix"> <div class="entry entry-content fix"> <?php suffusion_content(); ?> </div><!--entry --> <?php // Due to the inclusion of Ad Hoc Widgets the global variable $post might have got changed. We will reset it to the original value. $post = $original_post; suffusion_after_content(); ?> </div><!-- .entry-container --> <?php suffusion_before_end_post(); ?> </div><!--post --> <?php } suffusion_before_end_content(); } else { get_template_part('layouts/template-missing'); } ?>
Exactly. That’s what I want.
Hello Kamal,
Thanks for superfast reply ?? and sorry for my English.
Basically what I want to do is to order posts by post rating.
Usually they are ordered by date.Actual meta_key in my case is “asd”…I should give it more descriptive name , like “rating” or something but that’s not a point.
What I want to do is to assign kk-star-rating value for each post, to my meta_key as value., so when user rates movie with say 5 star movie (post) goes up, if user rates with 1 star post it goes down…
hopefully I explained more clearly this time ??
Thanks
I’m guessing i have to use
<?php update_post_meta($post_id, $meta_key, $meta_value, $prev_value); ?>
in kk-ratings.php file but I don’t know where and how exactly…Thanks again for your help…