No, it was just an example…
I want to get posts from a specific author, and additionally where my custom field has a specific value. Like this:
<?php
$args = array(
'author_name' => 'Bedrich',
'post_type' => 'my-custom-post',
'meta_key' => 'color',
'meta_value' => 'blue');
$the_query = new WP_Query( $args ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<!-- the loop -->
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<h1 href="<?php the_permalink(); ?>"><?php the_title(); ?></h1>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
I dont know, how to implement such a query in TotalPress.