0

I want to design the previous/next links on a fresh WP install with only the one single post but cannot see them and therefore cannot control my design.

How can I force WP to show the page navigation when there are not enough posts for more than one page?

I do not want to publish a series of placeholder posts.

8
  • Why would you not use the Theme Test data? Any reason not choosing the placeholder posts?
    – m4n0
    Commented May 13, 2015 at 5:00
  • 1
    Set yourself up with a proper local test install and then download and install this package Commented May 13, 2015 at 5:01
  • @ManojKumar I'm not happy with pu lishing fake posts because Google is crawling my domain every hour and the placeholders will appear in my search results.
    – user70421
    Commented May 13, 2015 at 5:24
  • @PieterGoosen Thanks a lot. I never even knew this existed.
    – user70421
    Commented May 13, 2015 at 5:25
  • Better work on local environment and then push the changes to live server.
    – m4n0
    Commented May 13, 2015 at 5:26

1 Answer 1

0

What I did was the following:

  1. Look in index.php for the name of the function that creates the older/newer posts links.
  2. Search (using the multifile search function of my text editor) for where that function is defined.
  3. Open that file and copy the HTML code from there to index.php, replacing the function call.
  4. Save index.php (but not close the file).
  5. Style the links.
  6. Replace the faux HTML code with the original function code again in index.php (since I left the file open in my text editor I only had to click "Undo" once and then save).
  7. Done.

Took me a few minutes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.