<?php
/*
get_post_meta($post_id , $key, $single)
$post_id → identyfikator posta
$key → klucz pola, do ktorego chcemy sie odniesc
$single → wartosc boolean
true → zwraca stringa
false → zwraca tablice wartosci
*/
$rate = (int)get_post_meta($post_id , 'ranking' , true);
?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.