Report this

What is the reason for this report?

Website doesn't show next/previous page button php code

Posted on May 3, 2018

The code looks like this code

        <div class="clearfix"></div>
        <div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
        <div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div>
        <?php endif; ?>
	</section>
	<!-- /NEWS --> ```code```

It is a pre built website theme for WordPress, the syntax is wrong as i can see. The website used to show the buttons, and suddenly they disappeared. I don’t know how to code so if anyone could help me, I would be more than happy



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
<?php endif; ?>

This line indicates that the lines above it are only shown if the current conditions match the if statement that starts this block. Your buttons are likely not showing up because the if statement that starts this block is returning false.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.