• I have one category i do not want to show as i use these posts for some special sliders only. On the english version of the site everything works fine but the german version does not show any posts anymore.

    <?php
    if (have_posts()) :
    query_posts('cat=-19');
    while (have_posts()) : the_post();?>
    
    		<div class="post" id="post-<?php the_ID(); ?>">
    
    			<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
    			<div class="the_date"><?php the_date(); ?></div>
    			<div class="entry">
    
    				<?php the_content(); ?>
    			</div>
    		</div>
    <?php
    
    endwhile; endif;
    wp_reset_query();
     ?>

    If i remove the query_posts i get all posts in both languages again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cmss

    (@cmss)

    Oh i forgot, for the translation i use “WMPL”.

    Then this is most likely an issue with the plugin you are using. Have you contacted the developer?

    Thread Starter cmss

    (@cmss)

    Yeah i think so too now, i solved it with just reading out all categories and skipping posts in the desired categories manually.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘query_posts('cat=-19'); – translation lost’ is closed to new replies.