rendered paste body<?phpget_header();?><?php $querystr = "SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'paragraf' AND wposts.post_status = 'publish' AND wposts.post_type = 'post' ORDER BY wpostmeta.meta_key ASC";$pageposts = $wpdb->get_results($querystr, OBJECT); ?><?php if ($pageposts): ?><?php foreach ($pageposts as $post): ?><?php setup_postdata($post); ?><h1 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h1><h2><?php echo get_post_meta($post->ID, "gdzie", true); ?></h2><?php the_content(__('(more...)')); ?><div class="post_info">Dodane: <?php the_date(); ?> |Folder: <?php the_category(',') ?> |Komentarze: <?php comments_popup_link(__('(0)'), __('(1)'), __('(%)')); ?> |<?php edit_post_link(__('Edit This')); ?></div><?php comments_template(); // Get wp-comments.php template ?><?php endforeach; ?><?php else : ?><?php _e('Sorry, no posts matched your criteria.'); ?><?php endif; ?><?php posts_nav_link(' ', __('« Previous Page'), __('Next Page »')); ?><?php get_footer(); ?>