ruimolar
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] does not post since last updateSame thing is happening to me. After the latest update it stopped auto-posting.
Forum: Plugins
In reply to: [Polylang] Query posts by categoryEverything’s working beautifully now. Thank you!
Forum: Plugins
In reply to: [Polylang] Query posts by categoryYes. Sorry, I should have been more specific.
I’ve created a one-page only theme and I’m trying to display posts with different categories. I’m using the following code:
<?php query_posts('category_name=team&order=asc'); if ( have_posts() ) : while( have_posts() ) : the_post(); ?> <div class="span3"> <div class="pic"> <?php if (( function_exists('has_post_thumbnail') ) && ( has_post_thumbnail() )) { the_post_thumbnail('thumbnail'); } else { ?> <img src="<?php echo get_template_directory_uri(); ?>/img/no-thumbnail.jpg" width="260" height="260"> <?php } ?> </div> <div class="id"> <h3><?php the_title(); ?></h3> <?php the_content(); ?> </div> </div> <?php endwhile; else: ?> <p><?php _e( 'No content was found', 'criativia' ); ?></p> <?php endif; ?>The problem is that the posts are not translated if I use
query_posts();. If I comment the query line they are translated. Perhaps there is another way to make it work or probably I’m doing something wrong. Thanks in advance! x)
Viewing 3 replies - 1 through 3 (of 3 total)