pods icon indicating copy to clipboard operation
pods copied to clipboard

In Pods shortcode, if limit="-1", offset is not honored

Open ncc1701v opened this issue 4 years ago • 0 comments

Description

In a shortcode that includes offset and limit="-1", the offset is not honored - behavior is like it doesn't exist. If -1 is replaced by a positive number e.g. 999, the offset is honored. This is true with either the classic editor and in a shortcode Gutenberg block.

Version

2.8.23

Testing Instructions

  1. Have a bunch of Pods posts.
  2. Create a simple shortcode e.g. [pods name="issue" offset="1" limit="999"]{@post_title}<br />[/pods]
  3. View the result. Offset is honored. The first post will not be in the list.
  4. Change limit="999" to limit="-1"
  5. See that the first post is now in the list, even though offset is set to 1.

Screenshots / Screencast

No response

Possible Workaround

Make the limit a high positive number, e.g. 999.

Site Health Information

`
### wp-core ###

version: 6.0
site_language: en_US
user_language: en_US
timezone: -04:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: undefined
environment_type: production
user_count: -1
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /home3/nhlf/public_html/swb/testjcbs
wordpress_size: 54.21 MB (56844083 bytes)
uploads_path: /home3/nhlf/public_html/swb/testjcbs/wp-content/uploads
uploads_size: 178.85 MB (187534692 bytes)
themes_path: /home3/nhlf/public_html/swb/testjcbs/wp-content/themes
themes_size: 10.92 MB (11453689 bytes)
plugins_path: /home3/nhlf/public_html/swb/testjcbs/wp-content/plugins
plugins_size: 50.58 MB (53038772 bytes)
database_size: 7.36 MB (7716864 bytes)
total_size: 301.92 MB (316588100 bytes)

### wp-active-theme ###

name: Kadence Child (kadence-child)
version: 1.0
author: Administrator
author_website: (undefined)
parent_theme: Kadence (kadence)
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, html5, custom-units, custom-line-height, customize-selective-refresh-widgets, responsive-embeds, post-thumbnails, editor-styles, align-wide, custom-spacing, block-templates, editor-font-sizes, amp, menus, custom-logo, editor-color-palette, editor-style, widgets
theme_path: /home3/nhlf/public_html/swb/testjcbs/wp-content/themes/kadence-child
auto_update: Disabled

### wp-parent-theme ###

name: Kadence (kadence)
version: 1.1.22
author: Kadence WP
author_website: https://www.kadencewp.com/
theme_path: /home3/nhlf/public_html/swb/testjcbs/wp-content/themes/kadence
auto_update: Disabled

### wp-mu-plugins (1) ###

Endurance Page Cache: version: 2.2, author: Mike Hansen

### wp-plugins-active (2) ###

Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled
Pods - Custom Content Types and Fields: version: 2.8.23, author: Pods Framework Team, Auto-updates disabled

### wp-plugins-inactive (11) ###

Core Rollback: version: 1.3.2, author: Andy Fragen, Auto-updates disabled
Editor Block Outline: version: 1.2, author: Kalimah Apps, Auto-updates disabled
Embed Any Document: version: 2.7.1, author: Awsm Innovations, Auto-updates disabled
Ivory Search: version: 5.4.7, author: Ivory Search, Auto-updates disabled
Kadence Blocks – Gutenberg Blocks for Page Builder Features: version: 2.4.12, author: Kadence WP, Auto-updates disabled
MainWP Child: version: 4.2.3, author: MainWP, Auto-updates disabled
PDF Embedder: version: 4.6.4, author: WP PDF Embedder Team, Auto-updates disabled
Pods Alternative Cache: version: 2.1.3, author: Pods Framework Team, Auto-updates disabled
Simple Custom CSS and JS: version: 3.40, author: SilkyPress.com, Auto-updates disabled
Wordfence Security: version: 7.5.11, author: Wordfence, Auto-updates disabled
WP Rollback: version: 1.7.1, author: Impress.org, Auto-updates disabled

### wp-media ###

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1690
imagemagick_version: ImageMagick 6.9.10-68 Q16 x86_64 2021-10-14 https://imagemagick.org
imagick_version: 3.4.3
file_uploads: File uploads is turned off
post_max_size: 516M
upload_max_filesize: 512M
max_effective_size: 512 MB
max_file_uploads: 20
imagick_limits: 
	imagick::RESOURCETYPE_AREA: 115 GB
	imagick::RESOURCETYPE_DISK: 9223372036854775807
	imagick::RESOURCETYPE_FILE: 12288
	imagick::RESOURCETYPE_MAP: 48 MB
	imagick::RESOURCETYPE_MEMORY: 48 MB
	imagick::RESOURCETYPE_THREAD: 1
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.25

### wp-server ###

server_architecture: Linux 4.19.150-76.ELK.el7.x86_64 x86_64
httpd_software: Apache
php_version: 7.4.30 64bit
php_sapi: cgi-fcgi
max_input_variables: 1000
time_limit: 30
memory_limit: 256M
max_input_time: 60
upload_max_filesize: 512M
php_post_max_size: 516M
curl_version: 7.84.0 OpenSSL/1.1.1p
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 5.7.23-23
client_version: mysqlnd 7.4.30
max_allowed_packet: 268435456
max_connections: 150

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home3/nhlf/public_html/swb/testjcbs/wp-content
WP_PLUGIN_DIR: /home3/nhlf/public_html/swb/testjcbs/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable

### pods ###

pods-server-software: Apache
pods-user-agent: Mozilla/5.0 (X11; CrOS x86_64 14816.82.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
pods-session-save-path: /var/cpanel/php/sessions/ea-php74
pods-session-save-path-exists: Yes
pods-session-save-path-writable: Yes
pods-session-max-lifetime: 1440
pods-opcode-cache-apc: No
pods-opcode-cache-memcached: No
pods-opcode-cache-opcache: No
pods-opcode-cache-redis: No
pods-object-cache-apc: No
pods-object-cache-apcu: No
pods-object-cache-memcache: No
pods-object-cache-memcached: No
pods-object-cache-redis: No
pods-memory-current-usage: 49.675M
pods-memory-current-usage-real: 50.500M
pods-network-wide: No
pods-install-location: /wp-content/plugins/pods/
pods-developer: No
pods-tableless-mode: No
pods-relationship-table-enabled: Yes
pods-light-mode: No
pods-strict: No
pods-allow-deprecated: Yes
pods-api-cache: Yes
pods-shortcode-allow-evaluate-tags: No
pods-sessions: Disable sessions
pods-can-use-sessions: Yes
pods-relationship-table-status: 361

`

Pods Package

No response

ncc1701v avatar Jul 06 '22 20:07 ncc1701v