WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Picture / Portfolio / Media Gallery
[resolved] notice pagenum issue (2 posts)

  1. gaston
    Member
    Posted 1 year ago #

    hi,

    i'm using a pro version. and so far, everything is working OK. this is a great tool. however, i noticed an issue with the pagenum property.

    if I do this:
    [nimble-portfolio template="4colround" items_per_page="Infinity" pagenum="99999999"]

    the WP ends up doing this query:

    SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
    FROM wp_posts
    WHERE 1=1
    AND wp_posts.post_type = 'portfolio'
    AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')
    ORDER BY wp_posts.menu_order ASC
    LIMIT 999999980, 10

    the query runs OK until the LIMIT instruction.

    I personally do not use pagenum nor items_per_page attributes. you may consider this post solved... but you may also want to look into this issue for future versions.

    http://wordpress.org/extend/plugins/nimble-portfolio/

  2. Nimble3
    Member
    Plugin Author

    Posted 1 year ago #

    I believe you are using Safari, Infinity is an invalid value, it should be a number and pagenum should be sensible too.

    If Shortcode Maker generated invalid values (due to browser incompatibility with the controls) you can replace it with correct values.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.