Microsoft
Software
Hardware
Network
Question : WP Loop: Incorrect Number of Posts on Home Page - How to Reset Loop Counter
Wordpress 2.92
Here are my settings of how many posts to show on the home page:
wp Admin > Settings > Reading > Blog pages show at most [15] posts
However, after running the following custom loop condition in 'home.php', there are only 11 posts being displayed on the home page instead of the required 15.
The conditional simply excludes posts in certain categories from showing up on the home page. But the side-effect is that it is reducing the post count on the home page.
What I need is some way to advance the post "array pointer" but not the "post count." Or any way you can think of to still display 15 posts (or whatever the setting is) on the home page.
Suggestions, please?
<?php if ( have_posts() ) {
while ( have_posts( )) {
the_post() ;
if ( in_category( array(1,2,3,4) ) ) {
// Do Not display these categories, do nothing.
} else {
// Display other posts
?>
Answer : WP Loop: Incorrect Number of Posts on Home Page - How to Reset Loop Counter
Hi Geert. Why Delphi Programming?
Random Solutions
how to change the format of the capture in Adobe Premier Elements
Copying CUSTOM.DIC to new machine - can't add words and how to handle file ExcludeDictionaryEN0409.le
x
How to convert a binary file to Hex string? (Perl)
mySQL join query how do I write
MSACCESS: Change BackColor of textbox on report with VBA
Storage and Cluster
3 monitors on i5-650 on Gigabyte GA-H55M-UD2H
Event ID 364 when synchronizing WSUS 3.0 SP1
Setup Webmail on MS SBS 2003
Netboot "Client not currently booted"