{"id":21258484,"url":"https://github.com/ubc/loop-shortcode","last_synced_at":"2025-08-19T08:39:04.755Z","repository":{"id":5610204,"uuid":"6817561","full_name":"ubc/loop-shortcode","owner":"ubc","description":" A [loop] shortcode WordPress plugin.","archived":false,"fork":false,"pushed_at":"2023-06-23T21:57:30.000Z","size":29,"stargazers_count":5,"open_issues_count":8,"forks_count":4,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-07-11T06:02:38.211Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubc.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-11-22T18:42:51.000Z","updated_at":"2023-06-23T21:57:35.000Z","dependencies_parsed_at":"2025-07-11T02:38:14.240Z","dependency_job_id":"51a47863-aadb-4200-8729-94a7c9cc5af9","html_url":"https://github.com/ubc/loop-shortcode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ubc/loop-shortcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Floop-shortcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Floop-shortcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Floop-shortcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Floop-shortcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubc","download_url":"https://codeload.github.com/ubc/loop-shortcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Floop-shortcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271123371,"owners_count":24703215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T04:09:05.391Z","updated_at":"2025-08-19T08:39:04.732Z","avatar_url":"https://github.com/ubc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"=== Loop Shortcode ===\nContributors: enej, ctlt-dev\nTags: \nRequires at least: 3.4\nTested up to: 3.4\nStable tag: 0.1\n\n[loop] is a very powerful shortcode that allows you to customize the type of content to display.\n\nWith this shortcode you can do anything mentioned here; \nhttp://codex.wordpress.org/Function_Reference/query_posts\n\nFor more information on what kind of parameters are possible in the query parameter please see; \nhttp://codex.wordpress.org/Class_Reference/WP_Query#Parameters\n\n== Usage ==\n\nThe loop shortcode accepts any of these parameters.\n* query - required, the query that you want to retrieve from the database see [http://codex.wordpress.org/Function_Reference/query_posts some possibilities here]. \n* rss - the url of the feed that you want to display,\n* view - choose one  (full, archive, list) or create your own. \n* pagination - by default pagination is false, only works with the query and not the rss.\n* num - used in conjunction with the rss to display a limited set of item, \n* error - what to display if there is no results can be found\n* author - filters posts by author name or for the current logged in user, use: author=\"current_user\" #\n\n'# for current user comments, use the [user_comments] shortcode\n\nYou can use the following attributes for the \"view\" parameter:\n * archive\n * list\n * full\n \n\n== Example ==\nPlease find below several examples of [loop] usage. \n\nThe following line placed in the main content area of the frontpage will display the latest 5 posts on the frontpage of the site:\n\n [loop query=\"posts_per_page=5\" view=\"archive\"]\n\nThe following line placed in the main content area of the frontpage will display the latest 5 posts on the frontpage of the site, with pagination enabled to navigate to older posts:\n\n [loop query=\"posts_per_page=5\" pagination=\"true\" view=\"archive\"]\n\nTo combine parameters in the query, use the ampersand character ('\u0026'). The following line displays 5 posts from the category SampleCategory:\n\n [loop query=\"posts_per_page=5\u0026category_name=SampleCategory\" view=\"archive\"]\n\nBelow is another example of [loop] usage:\n\n [loop query=\"category_name=Conference\"]\n  \u003ca href=\"[permalink]\"\u003e[the_title]\u003c/a\u003e\n  [the_excerpt] by [the_author] - Date: [last-updated]\n [/loop]\n\nThis example pulls all posts in the category \"Conference\" and displays the title, permalink, author, date and excerpt and thumbnail image if available.\n\n\nYou can also sort by custom field. For example:\n\n [loop query=\"posts_per_page=5\u0026category_name=newsandevents\u0026meta_key=event_date\u0026orderby=meta_value\u0026order=asc\" view=\"archive\"]\n\nYou can also use loop shortcode with pages.\n\nFor example, if you wish to dynamically pull a list of pages that use custom field 'color', regardless of the value of that custom field, you might do it with the help of a shortcode that looks like this:\n\n [loop query=\"post_per_page=5\u0026post_type=page\u0026meta_key=color\" view=\"list\"]\n\nTo return all the posts in the February 2011, use the time parameters (see http://codex.wordpress.org/Class_Reference/WP_Query#Time_Parameters)\n\n [loop query=\"year=2011\u0026monthnum=2\" view=archive]\n\nTo return posts with future publishing dates in similar fashion as upcoming events use this: \n\n [loop query=\"order=ASC\u0026category_name=upcoming-events\u0026post_status=future,publish\"]\n\nThe loop query above will show future and published posts in ascending order. If you wanted to only show future posts delete publish from post_status. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubc%2Floop-shortcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubc%2Floop-shortcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubc%2Floop-shortcode/lists"}