Noticias

[insert_php]
$sql3 = “SELECT post_content,post_title,post_name,guid, imagen, id FROM wp_posts where post_type=’post’ and tipo=’noticia’ and post_status=’publish’ order by rand()”;
$result3 = mysql_query(“$sql3”);

if (!$result3) {
echo ‘No se pudo ejecutar la consulta: ‘ . mysql_error();
exit;
}
echo ‘

‘;

echo ‘

‘;

//$cont=0;while ($row3 = mysql_fetch_row($result3) /*and $cont<4*/ ){

$enlace=”https://africaactual.com/$row3[2]”;

echo ‘

“;

$cont=$cont+1;

if ($cont % 2 == 0) echo ”

“;

}

echo “

“;

echo ‘


‘.$row3[1].’‘;

$sql4 = “SELECT t.name, t.slug, t.term_id FROM wp_posts p , wp_terms t, wp_term_relationships tt WHERE tt.term_taxonomy_id=t.term_id AND p.ID=tt.object_id and post_type=’post’ and p.id=$row3[5]”;

$result4 = mysql_query(“$sql4”);

while ($row4 = mysql_fetch_row($result4)){

echo ‘‘.$row4[0].’‘;

}

if (strlen($row3[1])<25){

echo ”
“;}

echo ”
“;

echo ”

“;

//echo substr($row3[0],0,90);

echo substr($row3[0],0,201);

echo ”

“;

echo ‘Ver más‘;

echo ”

‘;
[/insert_php]