Created
March 4, 2015 17:19
-
-
Save priscillamc/4333888fcc361db855de to your computer and use it in GitHub Desktop.
Shortcode to list page attachments using the WordPress List Category Posts plugin https://wordpress.org/plugins/list-category-posts/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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