Support » Fixing WordPress » how do i add this to my home page

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    First, you should create a child theme so any changes you make are not lost every time you update your theme. Find the template where your theme outputs the page navigation, probably index.php .

    Copy the file to your child theme. Replace the current page navigation with:

    <?php
    $args = array('show_all' => True, 'type' => 'list', 'add_fragment' => ' '); //see codex for other parameters to define
    echo paginate_links( $args )
    ?>

    This will get you close, but you’ll need to tweak the $args parameters to get exactly what you want. You may need to have the function return an array instead of a list, then use a foreach loop to control exactly how each link is output.

    Thread Starter finesse185

    (@finesse185)

    im not great at coding can i post my index php here to show u?

    Thread Starter finesse185

    (@finesse185)

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Thread Starter finesse185

    (@finesse185)

    thats my home page index

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how do i add this to my home page’ is closed to new replies.