Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shortcode to list page attachments using the WordPress List Category Posts plugin https://wordpress.org/plugins/list-category-posts/
<!-- Replace CURRENT_PAGE_ID for the post_parent to only display attachments of a certain page -->
[catlist post_type="attachment" post_parent="CURRENT_PAGE_ID" numberposts=-1 post_status="publish,inherit" orderby="title" order="ASC" no_posts_text="No files found"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment