{"id":31009374,"url":"https://github.com/robhurring/better_metas","last_synced_at":"2025-09-13T04:34:39.745Z","repository":{"id":507337,"uuid":"134841","full_name":"robhurring/better_metas","owner":"robhurring","description":"Wordpress custom field wrappers to make life easier","archived":false,"fork":false,"pushed_at":"2009-02-22T22:04:41.000Z","size":80,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-13T19:19:37.824Z","etag":null,"topics":[],"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/robhurring.png","metadata":{"files":{"readme":"README.rdoc","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":"2009-02-22T18:59:44.000Z","updated_at":"2019-08-13T14:03:00.000Z","dependencies_parsed_at":"2022-07-07T15:21:18.523Z","dependency_job_id":null,"html_url":"https://github.com/robhurring/better_metas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robhurring/better_metas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fbetter_metas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fbetter_metas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fbetter_metas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fbetter_metas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robhurring","download_url":"https://codeload.github.com/robhurring/better_metas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robhurring%2Fbetter_metas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274919762,"owners_count":25373953,"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-09-13T02:00:10.085Z","response_time":70,"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":"2025-09-13T04:34:35.242Z","updated_at":"2025-09-13T04:34:39.724Z","avatar_url":"https://github.com/robhurring.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"= About\n\nI love using custom fields for themes/plugins, but parsing them is sometimes a bitch. This is a very simple wrapper for some\nwordpress functions that will return a nice formatted array for use with themes or other plugins.\n\nIf you are big into custom fields and playing around with them, check this plugin out, it should make life a bit easier.\n\n= Examples\n\nYou have a post which has a bunch of images, but those images need titles, you can structure that in the post with custom fields like:\n  \n*custom_field_name*:: *value*\n+images+:: src=image01.jpg\u0026title=my house\u0026description=this is my house\n+images+:: src=image02.jpg\u0026title=mountain\u0026description=some awesome mountains\n+images+:: src=image03.jpg\u0026title=beach\u0026description=a sandy beach\n+gallery_options+:: sort=title\u0026\u0026lightbox=1\u0026delay=0.5\n  \nYou would get this array back:\n\n  Array\n  (\n      [images] =\u003e Array\n          (\n              [0] =\u003e Array\n                  (\n                      [src] =\u003e image01.jpg\n                      [title] =\u003e my house\n                      [description] =\u003e this is my house\n                  )\n\n              [1] =\u003e Array\n                  (\n                      [src] =\u003e image03.jpg\n                      [title] =\u003e beach\n                      [description] =\u003e a sandy beach\n                  )\n\n              [2] =\u003e Array\n                  (\n                      [src] =\u003e image02.jpg\n                      [title] =\u003e mountain\n                      [description] =\u003e some awesome mountains\n                  )\n\n          )\n\n      [gallery_options] =\u003e Array\n          (\n              [sort] =\u003e title\n              [lightbox] =\u003e 1\n              [delay] =\u003e 0.5\n          )\n\n  )\n  \nPretty convenient, no? To get a single custom field use +meta(_key_)+:\n\n  meta('gallery_options') =\u003e array('sort' =\u003e 'title', 'lightbox' =\u003e 1, 'delay' =\u003e 0.5)\n  \nNow you can use this within other plugins, or themes, or wherever.  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobhurring%2Fbetter_metas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobhurring%2Fbetter_metas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobhurring%2Fbetter_metas/lists"}