WordPress.org

Ready to get started?Download WordPress

Forums

problem with custom post type page number (3 posts)

  1. b3hn@m
    Member
    Posted 3 years ago #

    hey
    i'm use wordpress customize post type for my gallery at
    http://www.tazehaonline.ir/gallery
    with the permalink format
    /%year%/%monthnum%/%postname%/
    but after add page number or next page show 404 nothing found
    http://www.tazehaonline.ir/gallery/page/2/
    this is very important for me :(
    help me!

  2. westondeboer
    Member
    Posted 3 years ago #

    If you are using a custom query to make that page you should add $paged, example:

    $wp_query->query('cat=31'.'&paged='.$paged);

    This enables the pages to work!

  3. b3hn@m
    Member
    Posted 3 years ago #

    hi poil11 tnx for reply
    but i'm not use customize category , i'm use customize posttype
    my code for show gallery post is:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.