HTML&PHP

Veteran
Înscris
24 Feb 2011
Mesaje
1.070
eu am codul,
Cod:
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
pentru a pune postrating, cui ii place sa acorde stelute, eu acest cod ar trebui sa il pun sa apara sup titlul postari, mai exact intre Titlu si Edit post
locul si codul pentru a edita postarea este

Cod:
if (current_user_can('edit_post')) {
			$postheader .= '<a class="post-edit-link" href="' . get_edit_post_link($id) . '" title="' . __('Edit Post', 'arras') . '">' . __('(Edit Post)', 'arras') . '</a>';
		}

cum introduc eu primul cond in al 2-lea si sa mai si mearga?
ca sa vedeti este vorba despre http://www.miez.me
 
Membru
Înscris
8 Iun 2010
Mesaje
126
Cred ca trebuie sa pui si fnctia the_ratings si sa ne mai explici odata... Eu pe acel site nu am vazut vreo problema...
 
Membru
Înscris
24 Iul 2011
Mesaje
213
Cod:
if (current_user_can('edit_post') . function_exists('the_ratings')) { the_ratings() . $postheader .= '<a class="post-edit-link" href="' . get_edit_post_link($id) . '" title="' . __('Edit Post', 'arras') . '">' . __('(Edit Post)', 'arras') . '</a>';
      }

Ar trebui să meargă !
 
Sus