| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/clients/client2/web6/web/wp-content/themes/hso-theme/ |
Upload File : |
<?php
global $post;
$tmp_post = $post;
$args = array( 'post_type' => 'produkte', 'posts_per_page' => 4, 'meta_key' => 'premium', 'order' => 'ASC' );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<div class="span3 loop-item<?php if($tmp_post->ID == $post->ID) echo " active-item"; ?>">
<?php if($tmp_post->ID == $post->ID) { ?><div>Sie lesen gerade</div><?php } ?>
<?php if($tmp_post->ID != $post->ID) { ?><a href="<?php the_permalink() ?>" title="<?php the_title(); ?> kaufen"><?php } the_post_thumbnail('thumbnail'); if($tmp_post->ID != $post->ID) { ?></a><?php } ?>
<?php if($tmp_post->ID != $post->ID) { ?><a href="<?php the_permalink() ?>" title="<?php the_title(); ?> kaufen"><?php } ?><h3><?php the_title(); ?></h3><?php if($tmp_post->ID != $post->ID) { ?></a><?php } ?>
<?php
// EXCERPT ausgeben
/*if($tmp_post->ID != $post->ID) {
$content = substr(strip_tags(strip_shortcodes(get_the_content())),0, 160);
echo $content;
}*/
?>
</div>
<?php endforeach; $post = $tmp_post; ?>