{"id":16398228,"url":"https://github.com/bradjc/wordpress-academic-pubs","last_synced_at":"2025-05-13T01:13:56.933Z","repository":{"id":3197693,"uuid":"4230899","full_name":"bradjc/wordpress-academic-pubs","owner":"bradjc","description":"Plugin for wordpress that adds support for creating a list of academic publications.","archived":false,"fork":false,"pushed_at":"2019-02-21T15:15:42.000Z","size":208,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T01:13:50.810Z","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/bradjc.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":"2012-05-05T02:15:53.000Z","updated_at":"2025-02-22T11:33:02.000Z","dependencies_parsed_at":"2022-08-19T13:00:50.329Z","dependency_job_id":null,"html_url":"https://github.com/bradjc/wordpress-academic-pubs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradjc%2Fwordpress-academic-pubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradjc%2Fwordpress-academic-pubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradjc%2Fwordpress-academic-pubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradjc%2Fwordpress-academic-pubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradjc","download_url":"https://codeload.github.com/bradjc/wordpress-academic-pubs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253851072,"owners_count":21973674,"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":[],"created_at":"2024-10-11T05:12:09.716Z","updated_at":"2025-05-13T01:13:56.909Z","avatar_url":"https://github.com/bradjc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"wordpress-academic-pubs\n=======================\n\nPlugin for wordpress that adds support for creating a list of academic publications.\n\n\nAdmin\n-----\n\nWPAP adds a section to the wordpress admin panel named \"Publications\". Here you\ncan add publications and publication categories. Publications are ordered by the\nwordpress \"published date\" so the order you create the publications doesn't\nmatter.\n\n\n\nDisplay\n-------\n\n### Shortcode\n\nWPAP supports shortcodes. To use, just add:\n\n    [academicpubs]\n\nto your posts.\n\n\n### PHP Function\n\nTo display publications in a template, you can use two functions:\n\n\t/* Returns a list of publications. Each publication contains key,val pairs.\n\t *\n\t * $options: array('option' =\u003e 'value')\n\t *\n\t * Returns: [['id':1, 'title':'Paper Name', 'pdf_url':'http://a.com'], \n\t *           [another pub...]]\n\t *          fields are: id, title, authors, conference, pdf_url, bibtex_url\n\t */\n    wpap_display_publications($options);\n\n    /* Returns html around each publication.\n     */\n    wpap_display_publications_formatted($options);\n\n\nOptions\n-------\n\nWPAP supports some options:\n\n~~~~~~~\ncategory     =\u003e '',\nnumbered     =\u003e 'false',\nlimit        =\u003e -1,\nreverse      =\u003e 'false',\nshow_links   =\u003e 'true',\npage_num     =\u003e '',\nnum_per_page =\u003e '',\n~~~~~~~\n\n\n### With shortcodes\n\n    [academicpubs category=selected,science numbered=true limit=5 reverse=true show_links=false]\n\n### With PHP functions\n    \n\t\u003c?php\n\t$opts = array('category'   =\u003e 'selected,science',\n\t              'reverse'    =\u003e 'true',\n\t              'show_links' =\u003e 'false');\n\t$pubs = wpap_display_publications($opts);\n\tforeach ($pubs as $pub) {\n\t\techo '\u003cp\u003e' . $pub['title'] . '\u003c/p\u003e';\n\t}\n\t?\u003e\n\nOr the easy way:\n\n\t\u003c?php\n\t$opts = array('numbered'   =\u003e 'true',\n\t              'limit'      =\u003e 10);\n\techo wpap_display_publications_formatted($opts);\n\t?\u003e\n\n\nExample Output\n--------------\n\n\t\u003cdiv class=\"wpap\"\u003e\n\t\t\u003cul\u003e\n\t\t\t\u003cli\u003e\n\t\t\t\t\u003cspan class=\"publication-title publication1\"\u003ePub1 Title\u003c/span\u003e\n\t\t\t\t\u003cp class=\"publication-authors\"\u003eTom Smith and Eva Newn\u003c/p\u003e\n\t\t\t\t\u003cp class=\"publication-conference\"\u003eConference 1\u003c/p\u003e\n\t\t\t\t\u003cp class=\"publication-links\"\u003e\u003ca href=\"paper.pdf\"\u003epaper\u003c/a\u003e | \u003ca href=\"paper.bib\"\u003eBibTex\u003c/a\u003e\u003c/p\u003e\n\t\t\t\u003c/li\u003e\n\t\t\t\u003cli\u003e\n\t\t\t\t\u003cspan class=\"publication-title publication531\"\u003ePub2 Title\u003c/span\u003e\n\t\t\t\t\u003cp class=\"publication-authors\"\u003eTom Cruise\u003c/p\u003e\n\t\t\t\t\u003cp class=\"publication-conference\"\u003eCOOKIE '13\u003c/p\u003e\n\t\t\t\t\u003cp class=\"publication-links\"\u003e\u003ca href=\"paper.pdf\"\u003epaper\u003c/a\u003e | \u003ca href=\"paper.bib\"\u003eBibTex\u003c/a\u003e\u003c/p\u003e\n\t\t\t\u003c/li\u003e\n\t\t\u003c/ul\u003e\n\t\u003c/div\u003e\n\n\nReasonable CSS\n--------------\n\n\t.wpap .publication-title {\n\t\tfont-size: 110%;\n\t\tfont-weight: bold;\n\t}\n\t.wpap p {\n\t\tmargin: 0;\n\t\tpadding: 0;\n\t}\n\t.wpap ul {\n\t\tlist-style: none;\n\t\tmargin: 0;\n\t}\n\t.wpap li {\n\t\tmargin-bottom: 15px;\n\t}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradjc%2Fwordpress-academic-pubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradjc%2Fwordpress-academic-pubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradjc%2Fwordpress-academic-pubs/lists"}