Forum Replies Created

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter antropomorfic

    (@antropomorfic)

    and why is the post duplicated if the code says:

    $do_not_duplicate = $post->ID; ?>

    ??

    =/

    Thread Starter antropomorfic

    (@antropomorfic)

    Thank 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!!

    Thread Starter antropomorfic

    (@antropomorfic)

    just noticed that if I use the code I said before it doesn’t load all the posts,
    any idea why? =/

    thanks

    Thread Starter antropomorfic

    (@antropomorfic)

    Hey,
    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/64sj66r

    and 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!!!

Viewing 4 replies - 16 through 19 (of 19 total)