antropomorfic
Forum Replies Created
-
Forum: Themes and Templates
In reply to: how to load all posts in the single.phpand why is the post duplicated if the code says:
$do_not_duplicate = $post->ID; ?>
??
=/
Forum: Themes and Templates
In reply to: how to load all posts in the single.phpThank you for the answer again ;D
yes now it show the posts, the only problem is that the infinite scroll is not working anymore because the navigation to present posts wont work and I think its because of wp_query (‘showposts=20’)
the code is like this now:
‘<div id=”sort”>
<?php $my_query = new WP_Query(‘showposts=20’);
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<div class=”box”><?php the_content(”); ?>
<div class=”aDate”><?php the_time(get_option(‘date_format’)); ?></div>
</div>
<?php endwhile; ?>
</div>’thanks again!!
Forum: Themes and Templates
In reply to: how to load all posts in the single.phpjust noticed that if I use the code I said before it doesn’t load all the posts,
any idea why? =/thanks
Forum: Themes and Templates
In reply to: how to load all posts in the single.phpHey,
thank you for you’re answer.
I used the multiple loops now, and yes it loads the posts but I still have problems.it repeats the loops twice, and cant find why…you can see it here:
https://tinyurl.com/64sj66rand any idea on how can I query to only call the posts with the date (time) after the post you’re actually in!?
something like this:
if this post was done day 14th January at 17.00h show all post after 14th january at 17.00h not including the actual.
the code is like this right now:
<?php query_posts(”); ?>
<div id=”sort”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”box”>
<?php the_content(”); ?>
<div class=”aDate”><?php the_time(get_option(‘date_format’)); ?></div>
</div>
<?php endwhile; endif; ?>
</div>thanks!!!