The MU forums have moved to WordPress.org

having problem with adding a page number plugin in. (11 posts)

  1. RichonWordpressMU
    Member
    Posted 12 years ago #

    I am trying to use WP Page Number Option plugin, but cannot find one of the files to install...

    It says, "Theme folder name
    Copy one of the theme folders
    Edit the 'wp-page-numbers.css' to make your changes
    Rename your folder copy to a theme name
    Upload your folder into 'wp-content/plugins/wp-page-numbers/'
    Set your 'Theme folder name' in admin 'Settings / WP Page Numbers'
    'Update settings'. Done!
    "

    Can anyone help me?

    Thanks in advance...

  2. RichonWordpressMU
    Member
    Posted 12 years ago #

    It also says, "Instructions - Code to add to your theme
    Add the code where you find previous_post() and next_post() functions. If you can't find these tags, place the code between endwhile; and endif; in the_loop.

    Code to add in your theme
    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>"

    but, I cannot find it...

  3. SteveAtty
    Member
    Posted 12 years ago #

    Any link to the plugin page?

    Which file can't you find?

  4. RichonWordpressMU
    Member
    Posted 12 years ago #

    Hey Steve Atty:

    Thank you for replying to me! (Sorry for reposting the top, but it might be more clear if I do.) This is the instructions:

    "Instructions - Code to add to your theme
    Add the code where you find previous_post() and next_post() functions. If you can't find these tags, place the code between endwhile; and endif; in the_loop.

    Code to add in your theme
    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>

    Advanced (optional) settings

    Syntax: wp_page_numbers($start, $end); Example: wp_page_numbers("<div class='start'>", "</div>");

    Instructions - Settings
    Most of the settings are already set to a default value if blank.

    Text options
    You can set all the texts to what ever you like, except the numbers. They will still be numbers.

    Number of pages to show
    This will limit your paging menu. Set a of maximum amount of pages to be displayed at the same time. If the textfield is blank, 10 is set by default. If 0 is set, it will not limit the paging.

    Theme folder name
    Copy one of the theme folders
    Edit the 'wp-page-numbers.css' to make your changes
    Rename your folder copy to a theme name
    Upload your folder into 'wp-content/plugins/wp-page-numbers/'
    Set your 'Theme folder name' in admin 'Settings / WP Page Numbers'
    'Update settings'. Done! "

    1. I cannot find the wp-page numbers within the theme that I am using.
    2. I found a folder that contains "wp-page-number" It lists "classic, default, panther, stylish, tiny," I have found "wp-page-numbers.css" but none of them have "previous_post() and next_post() functions" nor "<?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>"

    ~Rich

  5. RichonWordpressMU
    Member
    Posted 12 years ago #

    Ok, I followed some of the steps but nothing happened.

    A. I went into my theme folder and found page.php.

    There was no "previous_post() and next_post() functions".

    There was "endwhile; and endif; in the_loop."

    I copied and pasted, "<?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>" between ""endwhile; and endif; in the_loop."

    B. I found the theme folder and changed the number to the name of my theme. I reuploaded it into "'wp-content/plugins/wp-page-numbers/'"

    I did NOT "Edit the 'wp-page-numbers.css' to make your changes" Because I did not know what they wanted me to change it to!
    --

    Please help, and thanks in advance.

    ~Rich

  6. andrea_r
    Moderator
    Posted 12 years ago #

    You need to put it in index.php, not page.php

    (the one in your theme folder that is)

  7. RichonWordpressMU
    Member
    Posted 12 years ago #

    Does it matter where the lines are put in the index.php?

  8. RichonWordpressMU
    Member
    Posted 12 years ago #

    1. It started working, but the problem is that there is a number line after EVERY post! I want it to be posted at the bottom of the page...

    And, thank you for helping me!

  9. andrea_r
    Moderator
    Posted 12 years ago #

    Uh, yeah.

    index.php should have those previous_post() and next_post() functions *outside* the loop. Just a few more lines down...

  10. RichonWordpressMU
    Member
    Posted 12 years ago #

    Thank you for helping me! It is working... The problem, though, is that the page numbers are posted after EVERY post! I want it posted at the bottom of the page... How can I change this?

    ~Rich

  11. andrea_r
    Moderator
    Posted 12 years ago #

    Then you still have it in the wrong spot.

About this Topic

  • Started 12 years ago by RichonWordpressMU
  • Latest reply from andrea_r