{"id":19970243,"url":"https://github.com/webdeveric/get-post-content-shortcode","last_synced_at":"2025-09-08T12:39:46.541Z","repository":{"id":20988538,"uuid":"24277976","full_name":"webdeveric/get-post-content-shortcode","owner":"webdeveric","description":"This plugin provides a shortcode to get the content of a post based on ID number.","archived":false,"fork":false,"pushed_at":"2017-06-13T14:29:50.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-12T09:12:40.094Z","etag":null,"topics":["post-content","shortcode","wordpress"],"latest_commit_sha":null,"homepage":"https://wordpress.org/plugins/get-post-content-shortcode/","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/webdeveric.png","metadata":{"files":{"readme":"readme.md","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}},"created_at":"2014-09-21T00:26:18.000Z","updated_at":"2016-04-18T21:22:19.000Z","dependencies_parsed_at":"2022-07-31T05:07:54.897Z","dependency_job_id":null,"html_url":"https://github.com/webdeveric/get-post-content-shortcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fget-post-content-shortcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fget-post-content-shortcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fget-post-content-shortcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fget-post-content-shortcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/get-post-content-shortcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241404419,"owners_count":19957655,"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","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":["post-content","shortcode","wordpress"],"created_at":"2024-11-13T02:53:38.777Z","updated_at":"2025-03-01T18:15:45.605Z","avatar_url":"https://github.com/webdeveric.png","language":"PHP","readme":"# Get Post Content Shortcode\n\n[![Build Status](https://travis-ci.org/webdeveric/get-post-content-shortcode.svg?branch=master)](https://travis-ci.org/webdeveric/get-post-content-shortcode)\n\nThis WordPress plugin provides a shortcode to get the content of a post based on ID number.\n\n## Usage\n\n`[post-content id=\"42\"]`\n\nThis gets the content of post 42.\n\n`[post-content id=\"42\" autop=\"false\"]`\n\nThis gets the content of post 42 and does not call wpautop on the content.\n\n`[post-content id=\"42\" shortcode=\"false\"]`\n\nThis gets the content of post 42 and does not call do_shortcode on the content.\n\n`[post-content id=\"42\" autop=\"false\" shortcode=\"false\"]`\n\nThis gets the content of post 42 and does not call wpautop or do_shortcode on the content.\n\n`[post-content id=\"42\" status=\"publish,future\"]`\n\nThis gets the content of post 42 only if the post_status is \"publish\" or \"future\".\n\n`[post-content id=\"42\" field=\"excerpt\"]`\n\nThis gets the excerpt of post 42.\n\n## Filter examples\n\n**Only allow the `post_content` field**\n\n```php\nadd_filter('post-content-allowed-fields', function($allowed_fields) {\n  return [ 'post_content' ];\n});\n```\n\n**Set the default value of the `autop` attribute to `false`**\n\n```php\nadd_filter('post-content-default-attributes', function ($default_attributes) {\n  return [ 'autop' =\u003e false ];\n});\n```\n\n## Tests\n\n[setup instructions](http://wp-cli.org/docs/plugin-unit-tests/)\n\n`vendor/bin/phpunit`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fget-post-content-shortcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fget-post-content-shortcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fget-post-content-shortcode/lists"}