{"id":10871,"date":"2017-06-30T17:04:20","date_gmt":"2017-06-30T15:04:20","guid":{"rendered":"http:\/\/flaven.fr\/?p=10871"},"modified":"2017-07-04T13:47:24","modified_gmt":"2017-07-04T11:47:24","slug":"wordpress-api-json-poc-for-a-small-rest-api-with-wordpress-mobile-applications","status":"publish","type":"post","link":"https:\/\/flaven.fr\/2017\/06\/wordpress-api-json-poc-for-a-small-rest-api-with-wordpress-mobile-applications\/","title":{"rendered":"WordPress, API, JSON &#8211; POC for a small Rest API with WordPress mobile applications"},"content":{"rendered":"<p>Still looking for a simple way to handle a POC to create a straightforward and simple API with a minimum of work. <\/p>\n<p>I had 2 main objectives for this POC like in the previous post:<\/p>\n<ol>\n<li>This API should populate data for mobile application so I must be able to minimize\/shrink the values exposed in the json output.<\/li>\n<li>As it is a POC, my purpose is to be totally autonomous. I do not want to rely on developers in the conception and creation of this API.<\/li>\n<\/ol>\n<p>Why should I reinvent the wheel ? So why do not leverage on WordPress and especially since the version of WP 4.4, WP has a powerful API.<br \/>\nFor those, who know already WP, I will just indicate what I will try to make the best of WP using : Post Type, Taxonomy, Custom Fields&#8230; etc.<\/p>\n<p>I had in mind this time not an API to manage translations but an API to handle Urban Art Spots such as the website Urbacolors.<\/p>\n<h4>The WP REST API ecosystem<\/h4>\n<p>Here is the list of plugin that will enhance and ease your experience within the WP REST API.<\/p>\n<p>I have tested them all, according to my needs, here is my feedback on each of them.<\/p>\n<ol>\n<li>These 3 plugins : REST API Log,  WP Rest Routes, REST API Console are essential. If you want to work with the WP API, it is required.<\/li>\n<li>ACF to REST API: in my opinion, you&#8217;ll better use this plugin instead of ACF to WP API. It goes as a kind of &#8220;bundle&#8221; with the ACF (Advanced Custom Fields) Plugin for WordPress. Very powerful if you intend to use Custom Fields within your API.<\/li>\n<li>WP REST API: when you are using WP 4.4 and more, it is useless to install this plugin.<\/li>\n<li>WP REST API Cache: when you are in the development phase, it is useless to work with a cache because you can not see immediately the changes in JSON format for instance. In production, you can use it for sure.<\/li>\n<\/ol>\n<h4>Make you own plugin<\/h4>\n<p>The thing is that it is very easy to create your own plugin within WP especially if you want to use post_type. That is the best to do. It is a main purpose of my plug-in : managing 5 post_type with a custom and common taxonomy.<br \/>\nFor some purpose, I did also some Custom Fields but believe me, better use the ACF plugin for POC at least and making Custom Fields, with the help of ACF (Advanced Custom Fields) plugin is a piece of cake.<\/p>\n<p>I have made 2 &#8220;uncompleted&#8221; but sufficient plugins for the POC.<br \/>\nYou can find on github @<br \/>\n<a href=\"https:\/\/github.com\/bflaven\/PluginWordpressForFun\" target=\"_blank\">Look for bf_poc_api_wp in https:\/\/github.com\/bflaven\/PluginWordpressForFun<\/a><\/p>\n<ol>\n<li>Urban Art Hunting App<\/li>\n<li>WP REST API Urban Art Hunting App<\/li>\n<\/ol>\n<p><b>Few Web API Endpoint Reference for WP API<\/b><\/p>\n<pre lang=\"html\">\r\n<!-- main Endpoint -->\r\nhttp:\/\/[path-to-your-worpress]\/wp-json\/wp\/v2\/\r\n<!-- Posts Endpoint -->\r\nhttp:\/\/[path-to-your-worpress]\/wp-json\/wp\/v2\/posts\r\n<!-- etc... -->\r\n<\/pre>\n<p>If you declare for each post_type <code>'show_in_rest' => true,<\/code>, automatically the WP API will show up your post_type.<br \/>\nYou will get 2 routes with the same methods as you will have for the posts<\/p>\n<p><b>For instance, our post_type is named locations<\/b><br \/>\n<b>Show all the locations<\/b><\/p>\n<pre lang=\"json\">\r\nwp\/v2\/locations\r\n...\r\nmethods\": [\r\n        \"GET\",\r\n        \"POST\"\r\n      ],\r\n<\/pre>\n<p><b>All methods for each locations record<\/b><\/p>\n<pre lang=\"json\">\r\nwp\/v2\/locations\/(?P<id>[\\\\d]+)\r\n...\r\n\"methods\": [\r\n        \"GET\",\r\n        \"POST\",\r\n        \"PUT\",\r\n        \"PATCH\",\r\n        \"DELETE\"\r\n      ],\r\n<\/pre>\n<p><b>Some of the routes that automatically created by WP<\/b><\/p>\n<p><b>Part 1 : The routes of the WordPress API<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_4.jpg\" width=\"640\" height=\"480\" alt=\"Worpress, API, JSON - POC for a small Rest API with WordPress mobile applications\"><\/p>\n<p><b>Part 2 : The routes of the WordPress API<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_5.jpg\" width=\"640\" height=\"480\" alt=\"Worpress, API, JSON - POC for a small Rest API with WordPress mobile applications\"><\/p>\n<h4>REST API plugins<\/h4>\n<p>This Plugin WP Rest Routes is great. It will enable you to manage the routes of your API and the data displayed for each route. It is a true vital plugin.<br \/>\nIn my opinion, the other 2 plugins (REST API Log, REST API Console) are useful but not vital.<\/p>\n<p><b>Plugin WP Rest Routes &#8211; Part 1<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_2.jpg\" width=\"640\" height=\"480\" alt=\"Worpress, API, JSON - POC for a small Rest API with WordPress mobile applications\"><\/p>\n<p><b>Plugin WP Rest Routes &#8211; Part 2<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_1.jpg\" width=\"640\" height=\"480\" alt=\"Worpress, API, JSON - POC for a small Rest API with WordPress mobile applications\"><\/p>\n<p><b>Plugin WP Rest Routes &#8211; Part 3 &#8211; JSON output from the route <code>get_locations<\/code> defined in the Plugin WP Rest Routes<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_3.jpg\" width=\"640\" height=\"480\" alt=\"Worpress, API, JSON - POC for a small Rest API with WordPress mobile applications\"><\/p>\n<p><b>The input of our previous screens capture inside the admin of WP, our post_type is named <code>locations<\/code><\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_8.jpg\" width=\"640\" height=\"480\" alt=\"Worpress, API, JSON - POC for a small Rest API with WordPress mobile applications\"><\/p>\n<p><b>The REST API Log useful to get data on traffic and on  API&#8217;s usage<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_6.jpg\" width=\"640\" height=\"480\" alt=\"Worpress, API, JSON - POC for a small Rest API with WordPress mobile applications\"><\/p>\n<p><b>The REST API Console plug-in that simply list the endpoints. Not bad<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_7.jpg\" width=\"640\" height=\"480\" alt=\"Worpress, API, JSON - POC for a small Rest API with WordPress mobile applications\"><\/p>\n<p><b>Conclusion:<\/b><br \/>\nWP API has several advantages. I will stress 2 of them.<\/p>\n<ol>\n<li>Using WP gives the opportunity to anyone to create content that will be displayed in the API. It seems obvious but when you are working with people specialized for instance in Art, Literature or in any area. It is better to let them create the content to avoid any mistakes. Focus on the container and not on the content should be your motto.<\/li>\n<li>With the help of the Plugin WP Rest Routes, you have the ability to design the architecture quickly with all the routes of your future API. Thus, it will give you a living example for your future development with more experienced developers. According to the proverb : &#8220;A picture is worth a thousand words&#8221;.<\/li>\n<\/ol>\n<h2>Learn More<\/h2>\n<ul>\n<p><b>API WP<\/b><\/p>\n<li>wp-api-menus from Fulvio Notarstefano<br \/><a href=\"https:\/\/github.com\/unfulvio\/wp-api-menus\/tree\/master\/includes\" target=\"_blank\">https:\/\/github.com\/unfulvio\/wp-api-menus\/tree\/master\/includes<\/a><\/li>\n<li>Leveraging the WordPress REST API<br \/><a href=\"https:\/\/cnpagency.com\/blog\/leveraging-the-wordpress-rest-api\/\" target=\"_blank\">https:\/\/cnpagency.com\/blog\/leveraging-the-wordpress-rest-api\/<\/a><\/li>\n<li>WP REST API Part 2: Customizing Default Endpoints and Adding New Ones<br \/><a href=\"https:\/\/deliciousbrains.com\/wp-rest-api-customizing-endpoints-adding-new-ones\/\" target=\"_blank\">https:\/\/deliciousbrains.com\/wp-rest-api-customizing-endpoints-adding-new-ones\/<\/a><\/li>\n<li>Adding custom routes to the WordPress REST API<br \/><a href=\"https:\/\/torquemag.io\/2015\/06\/adding-custom-routes-wordpress-rest-api\/\" target=\"_blank\">https:\/\/torquemag.io\/2015\/06\/adding-custom-routes-wordpress-rest-api\/<\/a><\/li>\n<li>WP API: Adding Custom Endpoints<br \/><a href=\"https:\/\/webdevstudios.com\/2016\/05\/24\/\nwp-api-adding-custom-endpoints\/\" target=\"_blank\">https:\/\/webdevstudios.com\/2016\/05\/24\/<br \/>\nwp-api-adding-custom-endpoints\/<\/a><\/li>\n<li>How to: create a custom endpoint with the core REST API in WordPress<br \/><a href=\"http:\/\/wpcode.io\/create-custom-endpoint-core-rest-api-wordpress\/\" target=\"_blank\">http:\/\/wpcode.io\/create-custom-endpoint-core-rest-api-wordpress\/<\/a><\/li>\n<li>Adding fields to the JSON response + Removing fields from the JSON response<br \/><a href=\"https:\/\/css-tricks.com\/using-the-wp-api-to-fetch-posts\/\" target=\"_blank\">https:\/\/css-tricks.com\/using-the-wp-api-to-fetch-posts\/<\/a><\/li>\n<li>My best practices to developing with WP-API<br \/><a href=\"https:\/\/www.roysivan.com\/my-best-practices-to-developing-wp-api\/\" target=\"_blank\">https:\/\/www.roysivan.com\/my-best-practices-to-developing-wp-api\/<\/a><\/li>\n<li>Unset data from WordPress API (wp-json)<br \/><a href=\"https:\/\/stackoverflow.com\/questions\/32511201\/unset-data-from-wordpress-api-wp-json\" target=\"_blank\">https:\/\/stackoverflow.com\/questions\/32511201\/unset-data-from-wordpress-api-wp-json<\/a><\/li>\n<li>REST API Usage Example<br \/><a href=\"https:\/\/generatewp.com\/snippet\/pNkKpVE\/\" target=\"_blank\">https:\/\/generatewp.com\/snippet\/pNkKpVE\/<\/a><\/li>\n<li>Working with post meta data using the WordPress REST API<br \/><a href=\"https:\/\/torquemag.io\/2015\/07\/working-with-post-meta-data-using-the-wordpress-rest-api\/\" target=\"_blank\">https:\/\/torquemag.io\/2015\/07\/working-with-post-meta-data-using-the-wordpress-rest-api\/<\/a><\/li>\n<li>Excellent post from Basememara &#8211; Full Stack iOS and WordPress in Swift<br \/><a href=\"http:\/\/basememara.com\/full-stack-ios-and-wordpress-in-swift\/\" target=\"_blank\">http:\/\/basememara.com\/full-stack-ios-and-wordpress-in-swift\/<\/a><\/li>\n<li>Compatible Plugins &#038; Tools from WP REST API<br \/><a href=\"http:\/\/v2.wp-api.org\/guide\/plugins\/\" target=\"_blank\">http:\/\/v2.wp-api.org\/guide\/plugins\/<\/a><\/li>\n<p><b>Custom Post Types, Custom Fields &#038; Custom Taxonomy<\/b><\/p>\n<li>Custom post types in WordPress<br \/><a href=\"http:\/\/justintadlock.com\/archives\/2010\/04\/29\/custom-post-types-in-wordpress\" target=\"_blank\">http:\/\/justintadlock.com\/archives\/2010\/04\/29\/custom-post-types-in-wordpress<\/a><\/li>\n<li>Plugin Advanced Custom Fields<br \/><a href=\"https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/\" target=\"_blank\">https:\/\/wordpress.org\/plugins\/advanced-custom-fields\/<\/a><\/li>\n<li>Adding Custom Fields to a Custom Post Type, the Right Way<br \/><a href=\"http:\/\/blog.teamtreehouse.com\/adding-custom-fields-to-a-custom-post-type-the-right-way\n\" target=\"_blank\">http:\/\/blog.teamtreehouse.com\/adding-custom-fields-to-a-custom-post-type-the-right-way<br \/>\n<\/a><\/li>\n<li>WordPress custom post types and advanced custom fields<br \/><a href=\"https:\/\/www.freshconsulting.com\/wordpress-custom-post-types-advanced-custom-fields\/\" target=\"_blank\">https:\/\/www.freshconsulting.com\/wordpress-custom-post-types-advanced-custom-fields\/<\/a><\/li>\n<li>Ultimate Guide to Custom Post Types in WordPress<br \/><a href=\"https:\/\/typerocket.com\/ultimate-guide-to-custom-post-types-in-wordpress\/\" target=\"_blank\">https:\/\/typerocket.com\/ultimate-guide-to-custom-post-types-in-wordpress\/<\/a><\/li>\n<li>Unable to save custom taxonomy terms in a custom-built metabox from stackexchange<br \/><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/9015\/unable-to-save-custom-taxonomy-terms-in-a-custom-built-metabox\" target=\"_blank\">https:\/\/wordpress.stackexchange.com\/questions\/9015\/unable-to-save-custom-taxonomy-terms-in-a-custom-built-metabox<\/a><\/li>\n<li>Saving Taxonomy Terms from stackexchange<br \/><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/1794\/saving-taxonomy-terms\" target=\"_blank\">https:\/\/wordpress.stackexchange.com\/questions\/1794\/saving-taxonomy-terms<\/a><\/li>\n<li>The Custom Post Types Guide for WordPress<br \/><a href=\"https:\/\/www.wpmayor.com\/ultimate-guide-wordpress-custom-post-types\/\" target=\"_blank\">https:\/\/www.wpmayor.com\/ultimate-guide-wordpress-custom-post-types\/<\/a><\/li>\n<li>WordPress Taxonomies Extra Fields the easy way<br \/><a href=\"https:\/\/en.bainternet.info\/wordpress-taxonomies-extra-fields-the-easy-way\/\" target=\"_blank\">https:\/\/en.bainternet.info\/wordpress-taxonomies-extra-fields-the-easy-way\/<\/a><\/li>\n<p><b>Create a Meta Box in WP<\/b><\/p>\n<li>Add a Metabox to Your Custom Post Type Screen<br \/><a href=\"http:\/\/shibashake.com\/wordpress-theme\/add-metabox-custom-post-type\" target=\"_blank\">http:\/\/shibashake.com\/wordpress-theme\/add-metabox-custom-post-type<\/a><\/li>\n<li>WordPress Meta Boxes<br \/><a href=\"https:\/\/rudrastyh.com\/wordpress\/meta-boxes.html\" target=\"_blank\">https:\/\/rudrastyh.com\/wordpress\/meta-boxes.html<\/a><\/li>\n<li>How To Create WordPress Meta Boxes<br \/><a href=\"https:\/\/www.smashingmagazine.com\/2011\/10\/create-custom-post-meta-boxes-wordpress\/\" target=\"_blank\">https:\/\/www.smashingmagazine.com\/2011\/10\/create-custom-post-meta-boxes-wordpress\/<\/a><\/li>\n<li>Create custom taxonomy and Display in metabox dropdown from stackexchange<br \/><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/80059\/create-custom-taxonomy-and-display-in-metabox-dropdown\" target=\"_blank\">https:\/\/wordpress.stackexchange.com\/questions\/80059\/create-custom-taxonomy-and-display-in-metabox-dropdown<\/a><\/li>\n<li>Code add-metabox-to-taxonomy.php<br \/><a href=\"https:\/\/gist.github.com\/ms-studio\/543a0f7dd8ac05ccf037\" target=\"_blank\">https:\/\/gist.github.com\/ms-studio\/543a0f7dd8ac05ccf037<\/a><\/li>\n<li>How I add a WordPress MetaBox<br \/><a href=\"https:\/\/en.bainternet.info\/how-i-add-a-wordpress-metabox\/\" target=\"_blank\">https:\/\/en.bainternet.info\/how-i-add-a-wordpress-metabox\/<\/a><\/li>\n<li>My WordPress Meta box Class from bainternet<br \/><a href=\"https:\/\/github.com\/bainternet\" target=\"_blank\">https:\/\/github.com\/bainternet<\/a><\/li>\n<li>How To Create A Better Meta Box In WordPress Post Editing Page<br \/><a href=\"http:\/\/deluxeblogtips.com\/how-to-create-meta-box-wordpress-post\/\" target=\"_blank\">http:\/\/deluxeblogtips.com\/how-to-create-meta-box-wordpress-post\/<\/a><\/li>\n<li>WordPress Meta Boxes: a Comprehensive Developer&#8217;s Guide<br \/><a href=\"https:\/\/themefoundation.com\/wordpress-meta-boxes-guide\/\" target=\"_blank\">https:\/\/themefoundation.com\/wordpress-meta-boxes-guide\/<\/a><\/li>\n<li>Add special meta box to custom post type from Stackexchange<br \/><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/186026\/add-special-meta-box-to-custom-post-type\" target=\"_blank\">https:\/\/wordpress.stackexchange.com\/questions\/186026\/add-special-meta-box-to-custom-post-type<\/a><\/li>\n<li>WordPress Meta Box for custom post type from stackoverflow<br \/><a href=\"https:\/\/stackoverflow.com\/questions\/24587751\/wordpress-meta-box-for-custom-post-type\" target=\"_blank\">https:\/\/stackoverflow.com\/questions\/24587751\/wordpress-meta-box-for-custom-post-type<\/a><\/li>\n<li>Adding a custom post type with custom meta box in wordpress<br \/><a href=\"https:\/\/return-true.com\/adding-custom-post-type-and-custom-meta-box-in-wordpress\/\" target=\"_blank\">https:\/\/return-true.com\/adding-custom-post-type-and-custom-meta-box-in-wordpress\/<\/a><\/li>\n<p><b>Parent Child Relationships issue<\/b><\/p>\n<li>Creating Post Type Relationships<br \/><a href=\"https:\/\/wp-types.com\/documentation\/user-guides\/creating-post-type-relationships\/\" target=\"_blank\">https:\/\/wp-types.com\/documentation\/user-guides\/creating-post-type-relationships\/<\/a><\/li>\n<li>The Practical Guide to Multiple Relationships Between Posts in WordPress<br \/><a href=\"https:\/\/onextrapixel.com\/the-practical-guide-to-multiple-relationships-between-posts-in-wordpress\/\" target=\"_blank\">https:\/\/onextrapixel.com\/the-practical-guide-to-multiple-relationships-between-posts-in-wordpress\/<\/a><\/li>\n<li>Relationships between Post Types in WordPress<br \/><a href=\"http:\/\/jancbeck.com\/articles\/relationships-between-wordpress-post-types\" target=\"_blank\">http:\/\/jancbeck.com\/articles\/relationships-between-wordpress-post-types<\/a><\/li>\n<li>Relation Post Types : Faire des relations entre les contenus de WordPress !<br \/><a href=\"http:\/\/www.herewithme.fr\/2010\/08\/16\/relation-post-types-faire-des-relations-entre-les-contenus-de-wordpress\/\" target=\"_blank\">http:\/\/www.herewithme.fr\/2010\/08\/16\/relation-post-types-faire-des-relations-entre-les-contenus-de-wordpress\/<\/a><\/li>\n<li>Post relationships: Parent-to-child<br \/><a href=\"http:\/\/justintadlock.com\/archives\/2013\/10\/07\/post-relationships-parent-to-child\" target=\"_blank\">http:\/\/justintadlock.com\/archives\/2013\/10\/07\/post-relationships-parent-to-child<\/a><\/li>\n<li>Part 9 \u2013 Many-to-many relationships in Toolset<br \/><a href=\"https:\/\/wp-types.com\/documentation\/toolset-training-course\/part-9-many-to-many-relationships-in-toolset\/\" target=\"_blank\">https:\/\/wp-types.com\/documentation\/toolset-training-course\/part-9-many-to-many-relationships-in-toolset\/<\/a><\/li>\n<li>Many to Many Relationship between Two Custom Post Types<br \/><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/51386\/many-to-many-relationship-between-two-custom-post-types\" target=\"_blank\">https:\/\/wordpress.stackexchange.com\/questions\/51386\/many-to-many-relationship-between-two-custom-post-types<\/a><\/li>\n<li>One-to-many Relationships in WordPress<br \/><a href=\"https:\/\/codeseekah.com\/2012\/02\/14\/one-to-many-relationships-in-wordpress\/\" target=\"_blank\">https:\/\/codeseekah.com\/2012\/02\/14\/one-to-many-relationships-in-wordpress\/<\/a><\/li>\n<li>Understanding and Working with Relationships Between Data in WordPress<br \/><a href=\"https:\/\/code.tutsplus.com\/tutorials\/understanding-and-working-with-relationships-between-data-in-wordpress--cms-20632\" target=\"_blank\">https:\/\/code.tutsplus.com\/tutorials\/understanding-and-working-with-relationships-between-data-in-wordpress&#8211;cms-20632<\/a><\/li>\n<li>Create many-to-many relationships between posts of any type using post 2 post plugin<br \/><a href=\"https:\/\/premium.wpmudev.org\/forums\/topic\/create-many-to-many-relationships-between-posts-of-any-type-using-post-2-post-plugin\" target=\"_blank\">https:\/\/premium.wpmudev.org\/forums\/topic\/create-many-to-many-relationships-between-posts-of-any-type-using-post-2-post-plugin<\/a><\/li>\n<li>Using 1 taxonomy for multiple post types? from stackexchange<br \/><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/86864\/using-1-taxonomy-for-multiple-post-types\" target=\"_blank\">https:\/\/wordpress.stackexchange.com\/questions\/86864\/using-1-taxonomy-for-multiple-post-types<\/a><\/li>\n<li>Add Exactly The Same Taxonomies To Multiple Custom Post Types<br \/><a href=\"https:\/\/wpsites.net\/wordpress-admin\/add-exactly-the-same-taxonomies-to-mutiple-custom-post-types\/\" target=\"_blank\">https:\/\/wpsites.net\/wordpress-admin\/add-exactly-the-same-taxonomies-to-mutiple-custom-post-types\/<\/a><\/li>\n<li>Extending the Quick Edit Tool for Taxonomy Terms<br \/><a href=\"https:\/\/code.tutsplus.com\/articles\/extending-the-quick-edit-tool-for-taxonomy-terms--wp-20495\" target=\"_blank\">https:\/\/code.tutsplus.com\/articles\/extending-the-quick-edit-tool-for-taxonomy-terms&#8211;wp-20495<\/a><\/li>\n<li>WordPress post to post relationships, without altering the Database, excellent post on one-to-many in WP<br \/><a href=\"http:\/\/www.danielauener.com\/wordpress-post-to-post-relationships-without-altering-the-database\/\" target=\"_blank\">http:\/\/www.danielauener.com\/wordpress-post-to-post-relationships-without-altering-the-database\/<\/a><\/li>\n<li>Creating Many to Many Relationships Between Posts in WordPress<br \/><a href=\"https:\/\/www.never5.com\/blog\/creating-many-many-relationships-posts-wordpress\/\" target=\"_blank\">https:\/\/www.never5.com\/blog\/creating-many-many-relationships-posts-wordpress\/<\/a><\/li>\n<li>WordPress, custom post type relationship to many post from stackoverflow<br \/><a href=\"https:\/\/stackoverflow.com\/questions\/31308217\/wordpress-custom-post-type-relationship-to-many-post\" target=\"_blank\">https:\/\/stackoverflow.com\/questions\/31308217\/wordpress-custom-post-type-relationship-to-many-post<\/a><\/li>\n<li>Relating Posts, Pages, and Custom Post Types in WordPress<br \/><a href=\"https:\/\/www.webmalama.com\/relating-posts-pages-custom-post-types-wordpress\/\" target=\"_blank\">https:\/\/www.webmalama.com\/relating-posts-pages-custom-post-types-wordpress\/<\/a><\/li>\n<li>How to set parent-child relationship between differents custom post types<br \/><a href=\"https:\/\/wordpress.stackexchange.com\/questions\/181134\/how-to-set-parent-child-relationship-between-differents-custom-post-types\" target=\"_blank\">https:\/\/wordpress.stackexchange.com\/questions\/181134\/how-to-set-parent-child-relationship-between-differents-custom-post-types<\/a><\/li>\n<li>Extending WordPress With Custom Content Types<br \/><a href=\"https:\/\/www.smashingmagazine.com\/2015\/04\/extending-wordpress-custom-content-types\/\" target=\"_blank\">https:\/\/www.smashingmagazine.com\/2015\/04\/extending-wordpress-custom-content-types\/<\/a><\/li>\n<li>How to Use Radio Buttons With Taxonomies<br \/><a href=\"https:\/\/code.tutsplus.com\/articles\/how-to-use-radio-buttons-with-taxonomies--wp-24779\" target=\"_blank\">https:\/\/code.tutsplus.com\/articles\/how-to-use-radio-buttons-with-taxonomies&#8211;wp-24779<\/a><\/li>\n<li>WordPress: Custom post types and parent-child relationships<br \/><a href=\"http:\/\/typecode.digital\/wordpress-custom-post-types-and-parent-child-relationships\/\" target=\"_blank\">http:\/\/typecode.digital\/wordpress-custom-post-types-and-parent-child-relationships\/<\/a><\/li>\n<p><b>Plugins<\/b><\/p>\n<li>Plugin Custom Post Type UI<br \/><a href=\"https:\/\/wordpress.org\/plugins\/custom-post-type-ui\/\" target=\"_blank\">https:\/\/wordpress.org\/plugins\/custom-post-type-ui\/<\/a><\/li>\n<li>Plugin Posts 2 Posts<br \/><a href=\"https:\/\/wordpress.org\/plugins\/posts-to-posts\/\" target=\"_blank\">https:\/\/wordpress.org\/plugins\/posts-to-posts\/<\/a><\/li>\n<li>Posts 2 Posts, un plugin pour cr\u00e9er des relations entre les types de contenus de WordPress<br \/><a href=\"https:\/\/wpchannel.com\/posts-2-posts-plugin-creer-relations-custom-post-types\/\" target=\"_blank\">https:\/\/wpchannel.com\/posts-2-posts-plugin-creer-relations-custom-post-types\/<\/a><\/li>\n<p><b>Other Resources<\/b><\/p>\n<li>Personnaliser l&#8217;ic\u00f4ne d&#8217;un custom post type avec la police dashicons<br \/><a href=\"http:\/\/www.geekpress.fr\/personnaliser-licone-dun-custom-post-type-police-dashicon\/\" target=\"_blank\">http:\/\/www.geekpress.fr\/personnaliser-licone-dun-custom-post-type-police-dashicon\/<\/a><\/li>\n<li>How To Design And Style Your WordPress Plugin Admin Panel<br \/><a href=\"https:\/\/onextrapixel.com\/how-to-design-and-style-your-wordpress-plugin-admin-panel\/\" target=\"_blank\">https:\/\/onextrapixel.com\/how-to-design-and-style-your-wordpress-plugin-admin-panel\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Still looking for a simple way to handle a POC to create a straightforward and simple API with a minimum of work. I had 2&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/2017\/06\/wordpress-api-json-poc-for-a-small-rest-api-with-wordpress-mobile-applications\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">WordPress, API, JSON &#8211; POC for a small Rest API with WordPress mobile applications<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":10880,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bf_ai_meta_description":"Create a simple REST API with WordPress for mobile apps. Minimize JSON output and achieve full autonomy with built-in tools.","bf_ai_og_title":"WordPress API for Mobile Apps","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3437,3454,3442,3444,3447,3448,3449,3450,3435,3452],"tags":[2194,2183,2386,31,2388,20,106,2387,2182,475,2223,2375],"class_list":["post-10871","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-case-studies","category-journalism-writing","category-mobile-devices","category-programming-databases","category-technology-trends","category-tools-productivity","category-tutorials-how-to","category-ux-product-design","category-web-development","category-wordpress-cms","tag-agile","tag-api","tag-dry","tag-mobile","tag-mvp","tag-php","tag-plugin","tag-poc","tag-web","tag-wireframe","tag-wordpress","tag-workflow"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Vuhl-2Pl","jetpack_featured_media_url":"https:\/\/flaven.fr\/wp-content\/uploads\/2017\/06\/poc_api_wp_b.jpg","_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/10871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=10871"}],"version-history":[{"count":10,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/10871\/revisions"}],"predecessor-version":[{"id":10890,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/10871\/revisions\/10890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/10880"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=10871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/categories?post=10871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/tags?post=10871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}