{"id":16055772,"url":"https://github.com/varunsridharan/wp-post","last_synced_at":"2025-03-17T21:31:17.925Z","repository":{"id":62543825,"uuid":"127629194","full_name":"varunsridharan/wp-post","owner":"varunsridharan","description":"Simple WP Post Class With Advanced Options.","archived":false,"fork":false,"pushed_at":"2021-04-29T19:35:48.000Z","size":121,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T04:47:21.926Z","etag":null,"topics":["vsp-libs","wordpress","wordpress-database","wordpress-db","wordpress-development","wordpress-library","wordpress-module","wordpress-php-library","wordpress-plugin","wordpress-plugin-development","wordpress-plugin-library","wordpress-post-handler","wordpress-posts","wordpress-theme","wordpress-theme-development","wp-developers","wp-library","wp-plugin","wp-posts","wp-theme"],"latest_commit_sha":null,"homepage":"https://varunsridharan.github.io/wp-post/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/varunsridharan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-01T12:54:23.000Z","updated_at":"2023-01-17T10:43:09.000Z","dependencies_parsed_at":"2022-11-02T21:15:23.758Z","dependency_job_id":null,"html_url":"https://github.com/varunsridharan/wp-post","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fwp-post","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fwp-post/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fwp-post/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/varunsridharan%2Fwp-post/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/varunsridharan","download_url":"https://codeload.github.com/varunsridharan/wp-post/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243885935,"owners_count":20363644,"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":["vsp-libs","wordpress","wordpress-database","wordpress-db","wordpress-development","wordpress-library","wordpress-module","wordpress-php-library","wordpress-plugin","wordpress-plugin-development","wordpress-plugin-library","wordpress-post-handler","wordpress-posts","wordpress-theme","wordpress-theme-development","wp-developers","wp-library","wp-plugin","wp-posts","wp-theme"],"created_at":"2024-10-09T02:22:02.777Z","updated_at":"2025-03-17T21:31:17.614Z","avatar_url":"https://github.com/varunsridharan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP Post\nSimple WP Post Class With Advanced Options.\n\n[![Latest Stable Version](https://poser.pugx.org/varunsridharan/wp-post/version)](https://packagist.org/packages/varunsridharan/wp-post)\n[![Total Downloads](https://poser.pugx.org/varunsridharan/wp-post/downloads)](https://packagist.org/packages/varunsridharan/wp-post)\n[![Latest Unstable Version](https://poser.pugx.org/varunsridharan/wp-post/v/unstable)](//packagist.org/packages/varunsridharan/wp-post)\n[![License](https://poser.pugx.org/varunsridharan/wp-post/license)](https://packagist.org/packages/varunsridharan/wp-post)\n[![composer.lock available](https://poser.pugx.org/varunsridharan/wp-post/composerlock)](https://packagist.org/packages/varunsridharan/wp-post)\n \n\n## Installation\nThe preferred way to install this extension is through [Composer](http://getcomposer.org/download/).\n\nTo install **WP_Post library**, simply:\n\n    $ composer require varunsridharan/wp-post\n\nThe previous command will only install the necessary files, if you prefer to **download the entire source code** you can use:\n\n    $ composer require varunsridharan/wp-post --prefer-source\n\nYou can also **clone the complete repository** with Git:\n\n    $ git clone https://github.com/varunsridharan/wp-post.git\n\nOr **install it manually**:\n\n[Download WP_Post.php](https://raw.githubusercontent.com/varunsridharan/wp-post/master/class-post.php):\n\n    $ wget https://raw.githubusercontent.com/varunsridharan/wp-post/master/class-post.php\n\n## Usage\n```php\n$post_data = new \\Varunsridharan\\WordPress\\Post(22);\n```\n\n### Get Post Title\n```php\necho $post_data-\u003etitle();\n```\n\n### Get Featured Image URL\n```php\nif($post_data-\u003ehas_featured_image()){\n    echo '\u003cimg src=\"'.$post_data-\u003efeatured_image_url('large').'\"/\u003e';\n}\n```\n\n## Available Class Methods\n\n* `has_featured_image`\n* `featured_image_id`\n* `featured_image_url`\n* `permalink`\n* `author`\n* `has_content`\n* `has_excerpt`\n* `title`\n* `slug`\n* `parent`\n* `type`\n* `page_template`\n* `excerpt`\n* `content`\n* `status`\n* `is_status`\n* `get_meta`\n* `update_meta`\n* `add_meta`\n* `delete_meta`\n* `taxonomies`\n* `get_terms`\n* `set_terms`\n* `post`\n* `id`\n\n\n---\n\n\u003c!-- START common-footer.mustache  --\u003e\n## 📝 Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),\nand this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).\n\n[Checkout CHANGELOG.md](https://github.com/varunsridharan/wp-post/blob/main/CHANGELOG.md)\n\n\n## 🤝 Contributing\nIf you would like to help, please take a look at the list of [issues](https://github.com/varunsridharan/wp-post/issues/).\n\n\n## 📜  License \u0026 Conduct\n- [**GNU General Public License v3.0**](https://github.com/varunsridharan/wp-post/blob/main/LICENSE) © [Varun Sridharan](website)\n- [Code of Conduct](https://github.com/varunsridharan/.github/blob/main/CODE_OF_CONDUCT.md)\n\n\n## 📣 Feedback\n- ⭐ This repository if this project helped you! :wink:\n- Create An [🔧 Issue](https://github.com/varunsridharan/wp-post/issues/) if you need help / found a bug\n\n\n## 💰 Sponsor\n[I][twitter] fell in love with open-source in 2013 and there has been no looking back since! You can read more about me [here][website].\nIf you, or your company, use any of my projects or like what I’m doing, kindly consider backing me. I'm in this for the long run.\n\n- ☕ How about we get to know each other over coffee? Buy me a cup for just [**$9.99**][buymeacoffee]\n- ☕️☕️ How about buying me just 2 cups of coffee each month? You can do that for as little as [**$9.99**][buymeacoffee]\n- 🔰         We love bettering open-source projects. Support 1-hour of open-source maintenance for [**$24.99 one-time?**][paypal]\n- 🚀         Love open-source tools? Me too! How about supporting one hour of open-source development for just [**$49.99 one-time ?**][paypal]\n\n\u003c!-- Personl Links --\u003e\n[paypal]: https://sva.onl/paypal\n[buymeacoffee]: https://sva.onl/buymeacoffee\n[twitter]: https://sva.onl/twitter/\n[website]: https://sva.onl/website/\n\n\n## Connect \u0026 Say 👋\n- **Follow** me on [👨‍💻 Github][github] and stay updated on free and open-source software\n- **Follow** me on [🐦 Twitter][twitter] to get updates on my latest open source projects\n- **Message** me on [📠 Telegram][telegram]\n- **Follow** my pet on [Instagram][sofythelabrador] for some _dog-tastic_ updates!\n\n\u003c!-- Personl Links --\u003e\n[sofythelabrador]: https://www.instagram.com/sofythelabrador/\n[github]: https://sva.onl/github/\n[twitter]: https://sva.onl/twitter/\n[telegram]: https://sva.onl/telegram/\n\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003ci\u003eBuilt With ♥ By \u003ca href=\"https://sva.onl/twitter\"  target=\"_blank\" rel=\"noopener noreferrer\"\u003eVarun Sridharan\u003c/a\u003e \u003ca href=\"https://en.wikipedia.org/wiki/India\"\u003e\n   \u003cimg src=\"https://cdn.svarun.dev/flag-india.jpg\" width=\"20px\"/\u003e\u003c/a\u003e \u003c/i\u003e \u003cbr/\u003e\u003cbr/\u003e\n   \u003cimg src=\"https://cdn.svarun.dev/codeispoetry.png\"/\u003e\n\u003c/p\u003e\n\n---\n\n\n\u003c!-- END common-footer.mustache  --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Fwp-post","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvarunsridharan%2Fwp-post","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvarunsridharan%2Fwp-post/lists"}