WordPress.org

Forums

"Archives" shows in Page, BUT Page navigation doesn't WORK~! (6 posts)

  1. wkwebsite
    Member
    Posted 9 years ago #

    Let's Make it clear.
    NOW
    My NEWS category's archives is displayed under the NEWS page. (used <?php query_posts('category_name=News'); ?>)

    So, assume that it hav 2 pages.
    The code:
    <?php next_posts_link('« Previous Entries') ?>
    <?php previous_posts_link('Next Entries »') ?>
    will navigate the page to another page.

    But the result is it navigate to NEWS catagoery
    (Currently in NEWS PAGE)

    So, i wanna make a permalinks for it....may i know how to i set the code? Somemore, i also used Page Navigator plugins (WP-PageNavi) for displaying all the page numbers.

    I hav think 2 modify the template-functions-links.php, but donno how to make it.

    HOPE U ALL UNDERSTAND MY PROBLEM~!! PLEASE HELP ME~!!

  2. moshu
    Member
    Posted 9 years ago #

    No, we don't.
    (and don't yell, it's not nice..)
    Why do you display a category ona Page - if I understodd it correctly. Use the Category_Templates and it will make your life easier.

  3. wkwebsite
    Member
    Posted 9 years ago #

    It is because my page contains different Layout and settings.

  4. moshu
    Member
    Posted 9 years ago #

    And what does stop you to have different "layout and settings" in a Category Template? (Obviously you didn't read the article I linked to...)
    In the forum you could even find posts about category templates using different header image, different stylesheet etc.

    I just wanted to offer an easier, built-in solution. But you are free to experiment in your way...

  5. iand
    Member
    Posted 9 years ago #

    query_posts overrides the querry generated by the URL (and is why next/previous are not working).
    I think this will get around the problem (or if not there is some combination of query_posts and $paged I have seen on these forums before.)
    http://wordpress.org/support/topic/56336?replies=5#post-306660

  6. wkwebsite
    Member
    Posted 9 years ago #

    Re: Moshu
    Thank you, i m learning on it...
    bcoz my wordpress upload in http://www.root server.
    sometimes, when click to first page:
    http://www.xxx.com/
    it links to index.html n not index.php
    ...

    IanD, yup, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.