Nichtschwimmer
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Navigation and own WP Queryfound a workin’ solution for me 🙂
<!-- Schlagzeilen --> <div id="schlagzeilen-cat"> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('post_type=os_schlagzeilen&post_status=publish&showposts=5'.'&paged='.$paged); ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <div class="schlagzeile"> <span class="date"><?php echo get_the_date('d.m.Y'); ?></span> <h3 class="title-schlagzeile"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3> <?php echo schlagzeile_excerpt(); ?> </div> <?php endwhile; // End the loop. Whew. ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« ältere Artikel') ?></div> <div class="alignright"><?php previous_posts_link('neuere Artikel »') ?></div> </div> <?php $wp_query = null; $wp_query = $temp;?> </div>Forum: Fixing WordPress
In reply to: Navigation and own WP Queryi tried this, but that doesn’t work too…
<!-- Schlagzeilen --> <div id="schlagzeilen-cat"> <?php $schlagzeilen = new WP_Query(array('post_type' => 'os_schlagzeilen', 'posts_per_page' => '5')); while ($schlagzeilen->have_posts()) : $schlagzeilen->the_post(); ?> <div class="schlagzeile"> <span class="date"><?php echo get_the_date('d.m.Y'); ?></span> <h3 class="title-schlagzeile"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3> <?php echo schlagzeile_excerpt(); ?> </div> </div> <?php endwhile; ?> <?php /* Display navigation to next/previous pages when applicable */ ?> <?php if ( $schlagzeilen->max_num_pages > 1 ) : ?> <div id="nav-below" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- #nav-below --> <?php wp_reset_query(); ?> <?php endif; ?> <!-- // Schlagzeilen -->Forum: Fixing WordPress
In reply to: Navigation and own WP Querysorry, something went wrong including the template code, don’t know why.. okay here another try
<?php
/**
* Template Name: Schlagzeilen/Sammlung
*
*/get_header(); ?>
<div id="container">
<div id="content" role="main"><h1 class="site-title">Aktuelle Schlagzeilen</h1>
<div class="breadcrumbs">
<?php
if(function_exists('bcn_display'))
{
bcn_display();
}
?>
</div><!-- Schlagzeilen -->
<div id="schlagzeilen-cat"><?php
$schlagzeilen = new WP_Query(array('post_type' => 'os_schlagzeilen', 'posts_per_page' => '5'));
while ($schlagzeilen->have_posts()) : $schlagzeilen->the_post();
?><div class="schlagzeile">
<span class="date"><?php echo get_the_date('d.m.Y'); ?></span>
<h3 class="title-schlagzeile">" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></h3>
<?php echo schlagzeile_excerpt(); ?>
</div><?php endwhile; wp_reset_query(); ?>
</div><?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $schlagzeilen->max_num_pages > 1 ) : ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
</div><!-- #nav-below -->
<?php endif; ?><!-- // Schlagzeilen -->
</div><!-- #content -->
</div><!-- #container --><?php get_sidebar(); ?>
<?php get_footer(); ?>Forum: Plugins
In reply to: [Plugin: Search Everything] SE is just searchin attachment file namethanks for your awnsers but i don’t want to see the complete gallery in the search results, just the specific images.
when i search for the filename of the image i find the single image in the search results. thats what i want, when i search for the description of the image.
when ich search for the description i find the complete page where i embbed the gallery. thats wrong.is there any solution?
or i didn’t understand your awnsers?