{"id":18319457,"url":"https://github.com/tbrennan77/acsports","last_synced_at":"2026-05-05T12:31:42.328Z","repository":{"id":152334023,"uuid":"351505894","full_name":"tbrennan77/acsports","owner":"tbrennan77","description":"A custom child theme for `buddypress` and custom code solutions for the AC Sports brand. We are building the MLS of trading cards...all code and styles are included.","archived":false,"fork":false,"pushed_at":"2021-03-30T18:01:23.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T14:21:14.444Z","etag":null,"topics":["buddypress","card","css","php","wordpress"],"latest_commit_sha":null,"homepage":"","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/tbrennan77.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-25T16:35:50.000Z","updated_at":"2021-03-31T14:33:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"21560d5f-a382-4ec5-99fa-93db2476b80b","html_url":"https://github.com/tbrennan77/acsports","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tbrennan77/acsports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbrennan77%2Facsports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbrennan77%2Facsports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbrennan77%2Facsports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbrennan77%2Facsports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbrennan77","download_url":"https://codeload.github.com/tbrennan77/acsports/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbrennan77%2Facsports/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["buddypress","card","css","php","wordpress"],"created_at":"2024-11-05T18:13:21.886Z","updated_at":"2026-05-05T12:31:42.317Z","avatar_url":"https://github.com/tbrennan77.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ACSports Custom Theme and Post Types\n\n\n## Custom \"Cards\" Post Type\n\nWe created a custom post type (CPT) for trading cards. We use [Advanced Custom Fields](https://www.advancedcustomfields.com/) to create custom attributes for this post type. [Gravity Forms](https://www.gravityforms.com/) is used as the form provider to input card data. \n\nThe following will create a new `card` post type:\n1. User visits the [trading card page](http://acsportsj.kinsta.cloud/mls/)\n2. User fills out the form\n3. Form Submit creates a new `card` post from the form data. The [Advanced Post Creation](https://docs.gravityforms.com/category/add-ons-gravity-forms/advanced-post-creation-add-on/) add-on is used to\n4. User is directed to the specifc post created by the form submit. Example [here](http://acsportsj.kinsta.cloud/cards/lebron-james/) \n\n\n## Custom trading card attributes\n\nCard attributes start with \"card_\" (that's the word card with an underscore)\n\n- `card_first_name`\t \t = Player First Name\n- `card_last_name`  \t = Player Last Name\n- `card_sport`\t\t\t = Name of the Sport\n- `card_team`\t\t\t = Name of the Team\n- `card_brand`\t\t\t = Name of the Brand\n- `card_is_graded`\t\t = Is this card Graded\n- `card_grading_company` = The grading company\n- `card_grade`\t \t\t = The grade\n- `card_is_pc`\t\t\t = Is the card a Personal Collection (PC)\n- `card_is_fs`\t\t\t = Is the card For Sale (FS)\n- `card_is_ft`\t\t\t = Is the card For Trade (FT)\n- `card_sale_price`\t\t = Card Sale Price\n- `card_trade_demand`\t = Card Trade Demand(s)\n- `card_front_image`\t = The front of card image\n- `card_back_image`\t\t = The back of card image\n- `card_description`\t = Rich text editor field \n\nThe custom post type (CPT) code is in the child theme [functions.php](https://github.com/tbrennan77/acsports/blob/main/wp-content/themes/buddyboss-theme-child/functions.php) file\n\n`custom_post_type()` is the name of the function that creates the CPT.\n\n## Adding a new Card\n\n1. The MLS form is built with `GravityForms`\n2. The `Post Creation` plugin is used to create a post from a GravityForms submit action\n3. When the form is submitted is creates a new custom post type of `card`\n4. The CPT (custom post type) custom fields are all populated by the data in the form fields\n5. When displaying the `card` post you simply reference the custom fields for that post (NOT, the ACF values)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbrennan77%2Facsports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbrennan77%2Facsports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbrennan77%2Facsports/lists"}