Grillrezepte Blog Übersicht


‘name’,
‘parent’ => 0
);
$categories = get_categories( $args );
foreach ( $categories as $category ) {
echo ‘

Alle
Grillrezepte
Grill Desert
Grillsauce
Salate zum Grillen

“;
print “

“;

if (isset($_GET[‘cat’]))
{
$i=0;
$postlist = new WP_Query( ‘category_name=’.$_GET[‘cat’] );
if ( $postlist->have_posts() ) {
print”

“;
while ( $postlist->have_posts() ) {
$i++;
$postlist->the_post();
$content = get_the_content(‘Read more’);
$content=substr(strip_tags($content),0, 185) . “
…”;
$title= the_title(”,”,false);
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID, ‘full’) );
$zahl=rand(0,10);//
print”
“;$i=0;}
}
print”

“;?>
‘>

“>Mehr lesen

“;
if ($i == 3){print”

“;
}
}
else
{
$i=0;
/*print”

“;
$qry= “SELECT guid,post_title,post_content FROM $table WHERE post_type=’post’ AND post_status=’publish'”;
$q=mysqli_query($mysql,$qry) or die(mysqli_error($mysql));
while($x=mysqli_fetch_array($q))*/
$postlist = new WP_Query(‘post_type=post&order=desc&posts_per_page=-1’ );
if ( $postlist->have_posts() ) {
print”
“;
while ( $postlist->have_posts() )
{
$i++;
$postlist->the_post();
$content = get_the_content(‘Read more’);
//$content=substr(strip_tags($x[“post_content”]),0, 185) . “
…”;
$content=substr(strip_tags($content),0, 185) . “
…”;
$title= the_title(”,”,false);
//$link=str_replace(” “, “-“, $x[“post_title”]);
$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID, ‘full’) );
$zahl=rand(0,10);//
print”

“;
if ($i == 3){print”

“;$i=0;}
}
print”

“;?>
‘>

“>Mehr lesen

“;
}
}

/*
if (isset($_GET[‘cat’]))
{
$i=0;
$postlist = new WP_Query( ‘category_name=’.$_GET[‘cat’] );
if ( $postlist->have_posts() ) {
print”

“;
while ( $postlist->have_posts() ) {
$i++;
$postlist->the_post();
$content = get_the_content(‘Read more’);
$content=substr(strip_tags($content),0, 200) . “
…”;
$title= the_title(”,”,false);

print”

“;
if ($i == 3){print”

“;$i=0;}
}
print”

“.$title.”

“.$content.”

“;?>

“;
}
}
else
{
$i=0;
print”

“;
$qry= “SELECT guid,post_title,post_content FROM $table WHERE post_type=’post’ AND post_status=’publish'”;
$q=mysqli_query($mysql,$qry) or die(mysqli_error($mysql));
while($x=mysqli_fetch_array($q))
{
$i++;
$content=substr(strip_tags($x[“post_content”]),0, 200) . “
…”;
$link=str_replace(” “, “-“, $x[“post_title”]);

print”

“;
if ($i == 3){print”

“;$i=0;}
}
print”

“.$x[“post_title”].”

“.$content.”

Mehr lesen

“;
}*/
?>