Tagged: ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1949
    hrcwebmaster
    Member

    Hi there,
    I’ve created a page for my posts page (“Newsroom”). I used the below code to pull the correct posts into this page:
    7,
    'orderby' =>'post_date',
    'order' => 'DESC',
    );
    $my_query = new WP_Query($args);

    if( $my_query->have_posts() ) {

    while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <a href="" rel="bookmark" title="Permanent Link to ">


    I think it’s preventing the “previous” and “next” nav to show, which I believe are brought in with

    I also

    How can I make my posts page display the previous/next pages?

    #1950
    hrcwebmaster
    Member

    Not sure what happened above, but it didn’t post everything correctly.
    The code I have pulling in the correct posts into my Newsroom is:


    7,
    'orderby' =>'post_date',
    'order' => 'DESC',
    );
    $my_query = new WP_Query($args);

    if( $my_query->have_posts() ) {

    while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <a href="" rel="bookmark" title="Permanent Link to ">


    But it’s not displaying the “previous” and “next” page of posts, even though this code is in there that I believe should be pulling that navigation:

    #2008
    Sakin
    Keymaster

    @hrcwebmaster: I am not getting what you mean. But first can you send me your site URL and the page link. Then you can paste the code in http://pastebin.com/ and send me the url of code.

    #2013
    hrcwebmaster
    Member

    The URL of the page is http://hrc.wastateleg.org/news/. I’m also trying to use it on http://hrc.wastateleg.org/gary-alexander/newsroom/.

    I posted this same question on WordPress forums, got some suggestions, but no luck. The entire PHP file code is pasted there: http://wordpress.org/support/topic/problem-with-previousnext-links-for-my-page-of-posts-catchbox?replies=9.

    Thank you for any help you can provide! I appreciate volunteers to help me, trying to get this site live in the next week or so!

    #2015
    Sakin
    Keymaster
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Previous/Next Pages Nav’ is closed to new replies.