rc_90_2000
Forum Replies Created
-
Yes, i need the post list offset from current post.(e.g. user read the 1000th post. the list shows post without next post(NO 999th post or other newer post), just only showing previous post.)
But i can’t use while loop & count++ method to find the index number of current post for offset. Because there are over 10000 posts on my website. If many user read the 1000th post. While loop & count++ method with hangup my web server.
I have bought it, but this add-on just shows only one post on a time, i need 10 previous post lists on a time.
code :
http://pastebin.com/LF97g6PWForum: Fixing WordPress
In reply to: how to get the index number of current post ?the program now I limited query 100 post and using while loop & count++ method to find out what the index number of current post.
but there are over 10000+ post, it is not perfect if the user read the old post like as 101st post.
if I can get index number of current post.
instead of ‘$postCount’. it is the best.Forum: Fixing WordPress
In reply to: how to get the index number of current post ?I would like to use the index number of current for offset the loop post list.
Forum: Fixing WordPress
In reply to: how to get the index number of current post ?Forum: Fixing WordPress
In reply to: how to get the index number of current post ?it can’t use while post and count++ method,
becuase my site have over 10000+ post. this method will make the server hangup.Forum: Fixing WordPress
In reply to: how to get the index number of current post ?yes
I have tried to running the shortcode in the content editor (created a page, the page idis 71485 ). and then add below code to the custom repeater template
echo do_shortcode(get_post_field('post_content', 71485));It isn’t workable on ajax request.
Here is the code of custom repeater template :
<div class="post col-md-4 col-sm-6 col-xs-12 magazine-video"> <?php echo do_shortcode("[sam id=1 codes='false']"); ?> <figure class="mag-video"> <a href="<?php the_permalink(); ?>"> <?php echo the_post_thumbnail( array(960, 640) ); ?> </a> </figure> <div class="caption"> <h3 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3><br/><?php the_excerpt(); ?> </div> </div>the “echo do_shortcode(“[sam id=1 codes=’false’]”);” is only workable on-preloaded content.