Writerside_libraries Help

Welcome Page

This will document all the elements of the home screen.

1. Screen header

The information required for the welcome text and the header image can be retrieved so:

Homepage header

Get page information

Getting the page title and the page's featured image requires two steps (2 requests)

  1. Request the page information

    curl -X GET 'https://maforum.ippf.org/wp-json/wp/v2/pages/25' \ --header 'x-connect-allow: string' \ --header 'Authorization: Bearer token'
    { "id": 25, "date": "2024-06-03T06:01:59", "date_gmt": "2024-06-03T06:01:59", "guid": { "rendered": "http://ma-forum.staging/?page_id=25" }, "modified": "2025-01-27T14:19:48", "modified_gmt": "2025-01-27T14:19:48", "slug": "ma-forum", "status": "publish", "type": "page", "link": "https://maforum.ippf.org/", "title": { "rendered": "MA FORUM" }, "content": { "rendered": "", "protected": false }, "excerpt": { "rendered": "", "protected": false }, "author": 1, "featured_media": 36, "parent": 0, "menu_order": 0, "comment_status": "closed", "ping_status": "closed", "template": "", "meta": { "_acf_changed": false, "inline_featured_image": false, "footnotes": "" }, "class_list": [ "post-25", "page", "type-page", "status-publish", "has-post-thumbnail", "hentry" ], "acf": { "bt_title": "", "bt_description": "", "bt_image": false, "slide_title": "Welcome to the MA Forum", "slide_description": "This website is dedicated to you, the IPPF members. It serves as a central IPPF connection point for member communication. The website offers regular news stories, shares funding opportunities, lists resources and gives access to the IPPF social media.", "static_group": { "image": { "ID": 1007, "id": 1007, "title": "94223_opt_2", "filename": "94223_opt_2.jpg", "filesize": 248971, "url": "https://maforum.ippf.org/wp-content/uploads/2024/07/94223_opt_2.jpg", "link": "https://maforum.ippf.org/ma-forum/94223_opt_2/", "alt": "", "author": "1", "description": "", "caption": "", "name": "94223_opt_2", "status": "inherit", "uploaded_to": 25, "date": "2024-07-15 16:40:53", "modified": "2024-07-15 16:40:53", "menu_order": 0, "mime_type": "image/jpeg", "type": "image", "subtype": "jpeg", "icon": "https://maforum.ippf.org/wp-includes/images/media/default.png", "width": 800, "height": 800, "sizes": { "thumbnail": "https://maforum.ippf.org/wp-content/uploads/2024/07/94223_opt_2-150x150.jpg", "thumbnail-width": 150, "thumbnail-height": 150, "medium": "https://maforum.ippf.org/wp-content/uploads/2024/07/94223_opt_2-300x300.jpg", "medium-width": 300, "medium-height": 300, "medium_large": "https://maforum.ippf.org/wp-content/uploads/2024/07/94223_opt_2-768x768.jpg", "medium_large-width": 768, "medium_large-height": 768, "large": "https://maforum.ippf.org/wp-content/uploads/2024/07/94223_opt_2.jpg", "large-width": 800, "large-height": 800, "1536x1536": "https://maforum.ippf.org/wp-content/uploads/2024/07/94223_opt_2.jpg", "1536x1536-width": 800, "1536x1536-height": 800, "2048x2048": "https://maforum.ippf.org/wp-content/uploads/2024/07/94223_opt_2.jpg", "2048x2048-width": 800, "2048x2048-height": 800, "medium-thumb-size": "https://maforum.ippf.org/wp-content/uploads/2024/07/94223_opt_2-500x500.jpg", "medium-thumb-size-width": 500, "medium-thumb-size-height": 500 } }, "text_lines": [ { "title": "Resources", "description": "The latest information, toolkits and resources to assist you in your fundraising efforts, learning and development and much more.\r\nExplore our MA Resources.", "link": { "title": "Learn more", "url": "/ma-resources/", "target": "" } }, { "title": "Strategy 2028", "description": "Co-created by the member, under leadership of the IPPF Board, ‘Come Together’ 2023-2028 strategy is ambitious, unapologetic and brave. Download the document and explore strategy that you helped nourish and develop.\r\n\r\n", "link": { "title": "Explore", "url": "https://www.ippf.org/resource/2023-2028-strategy", "target": "" } } ] }, "blocks_lines": { "block_line": [ { "title": "Identity Initiative", "description": "Today the world is home to 1.8 billion young people under the age of 25. This is the largest generation of young people, ever, and are a vastly diverse group of individuals.\r\n", "link": { "title": "Learn more", "url": "/charter-of-values/", "target": "" }, "image": { "ID": 1009, "id": 1009, "title": "94198_opt", "filename": "94198_opt.jpg", "filesize": 271834, "url": "https://maforum.ippf.org/wp-content/uploads/2024/07/94198_opt.jpg", "link": "https://maforum.ippf.org/ma-forum/94198_opt/", "alt": "", "author": "1", "description": "", "caption": "", "name": "94198_opt", "status": "inherit", "uploaded_to": 25, "date": "2024-07-15 16:47:01", "modified": "2024-07-15 16:47:01", "menu_order": 0, "mime_type": "image/jpeg", "type": "image", "subtype": "jpeg", "icon": "https://maforum.ippf.org/wp-includes/images/media/default.png", "width": 800, "height": 800, "sizes": { "thumbnail": "https://maforum.ippf.org/wp-content/uploads/2024/07/94198_opt-150x150.jpg", "thumbnail-width": 150, "thumbnail-height": 150, "medium": "https://maforum.ippf.org/wp-content/uploads/2024/07/94198_opt-300x300.jpg", "medium-width": 300, "medium-height": 300, "medium_large": "https://maforum.ippf.org/wp-content/uploads/2024/07/94198_opt-768x768.jpg", "medium_large-width": 768, "medium_large-height": 768, "large": "https://maforum.ippf.org/wp-content/uploads/2024/07/94198_opt.jpg", "large-width": 800, "large-height": 800, "1536x1536": "https://maforum.ippf.org/wp-content/uploads/2024/07/94198_opt.jpg", "1536x1536-width": 800, "1536x1536-height": 800, "2048x2048": "https://maforum.ippf.org/wp-content/uploads/2024/07/94198_opt.jpg", "2048x2048-width": 800, "2048x2048-height": 800, "medium-thumb-size": "https://maforum.ippf.org/wp-content/uploads/2024/07/94198_opt-500x500.jpg", "medium-thumb-size-width": 500, "medium-thumb-size-height": 500 } } }, { "title": "Join the Conversation", "description": "Help us deliver sexual and reproductive healthcare to those most in need. \r\n", "link": { "title": "Discover The New IPPF Social Media", "url": "https://social.ippf.org", "target": "" }, "image": { "ID": 1011, "id": 1011, "title": "85960_opt", "filename": "85960_opt.jpg", "filesize": 190283, "url": "https://maforum.ippf.org/wp-content/uploads/2024/07/85960_opt.jpg", "link": "https://maforum.ippf.org/ma-forum/85960_opt/", "alt": "", "author": "1", "description": "", "caption": "", "name": "85960_opt", "status": "inherit", "uploaded_to": 25, "date": "2024-07-15 17:33:05", "modified": "2024-07-15 17:33:05", "menu_order": 0, "mime_type": "image/jpeg", "type": "image", "subtype": "jpeg", "icon": "https://maforum.ippf.org/wp-includes/images/media/default.png", "width": 800, "height": 800, "sizes": { "thumbnail": "https://maforum.ippf.org/wp-content/uploads/2024/07/85960_opt-150x150.jpg", "thumbnail-width": 150, "thumbnail-height": 150, "medium": "https://maforum.ippf.org/wp-content/uploads/2024/07/85960_opt-300x300.jpg", "medium-width": 300, "medium-height": 300, "medium_large": "https://maforum.ippf.org/wp-content/uploads/2024/07/85960_opt-768x768.jpg", "medium_large-width": 768, "medium_large-height": 768, "large": "https://maforum.ippf.org/wp-content/uploads/2024/07/85960_opt.jpg", "large-width": 800, "large-height": 800, "1536x1536": "https://maforum.ippf.org/wp-content/uploads/2024/07/85960_opt.jpg", "1536x1536-width": 800, "1536x1536-height": 800, "2048x2048": "https://maforum.ippf.org/wp-content/uploads/2024/07/85960_opt.jpg", "2048x2048-width": 800, "2048x2048-height": 800, "medium-thumb-size": "https://maforum.ippf.org/wp-content/uploads/2024/07/85960_opt-500x500.jpg", "medium-thumb-size-width": 500, "medium-thumb-size-height": 500 } } }, { "title": "UN Liaison Team", "description": "Help us deliver sexual and reproductive healthcare to those most in need. \r\n", "link": { "title": "Learn more here", "url": "https://maforum.ippf.org/un-advocacy/", "target": "" }, "image": { "ID": 1013, "id": 1013, "title": "95415_opt", "filename": "95415_opt.jpg", "filesize": 152736, "url": "https://maforum.ippf.org/wp-content/uploads/2024/07/95415_opt.jpg", "link": "https://maforum.ippf.org/ma-forum/95415_opt/", "alt": "", "author": "1", "description": "", "caption": "", "name": "95415_opt", "status": "inherit", "uploaded_to": 25, "date": "2024-07-15 17:35:49", "modified": "2024-07-15 17:35:49", "menu_order": 0, "mime_type": "image/jpeg", "type": "image", "subtype": "jpeg", "icon": "https://maforum.ippf.org/wp-includes/images/media/default.png", "width": 800, "height": 800, "sizes": { "thumbnail": "https://maforum.ippf.org/wp-content/uploads/2024/07/95415_opt-150x150.jpg", "thumbnail-width": 150, "thumbnail-height": 150, "medium": "https://maforum.ippf.org/wp-content/uploads/2024/07/95415_opt-300x300.jpg", "medium-width": 300, "medium-height": 300, "medium_large": "https://maforum.ippf.org/wp-content/uploads/2024/07/95415_opt-768x768.jpg", "medium_large-width": 768, "medium_large-height": 768, "large": "https://maforum.ippf.org/wp-content/uploads/2024/07/95415_opt.jpg", "large-width": 800, "large-height": 800, "1536x1536": "https://maforum.ippf.org/wp-content/uploads/2024/07/95415_opt.jpg", "1536x1536-width": 800, "1536x1536-height": 800, "2048x2048": "https://maforum.ippf.org/wp-content/uploads/2024/07/95415_opt.jpg", "2048x2048-width": 800, "2048x2048-height": 800, "medium-thumb-size": "https://maforum.ippf.org/wp-content/uploads/2024/07/95415_opt-500x500.jpg", "medium-thumb-size-width": 500, "medium-thumb-size-height": 500 } } } ] }, "vh_title": "MA Voices", "vh_description": "<p>In 2019, IPPF delivered 252.3 million sexual and reproductive health services and contributed to 141 policy and legal changes in suport of sexual and reproductive health and rights.</p>\n", "vh_link": { "title": "Learn More", "url": "/ma-voices/", "target": "" }, "vh_voices": [ { "voice": "“During an emergency, youth are not \r\njust beneficiaries of a humanitarian \r\nresponse. Engage us on how we can take action. See us youth as partners, work with us.\"", "author": "Louria Paragon, Family Planning Organisation of the Philippines", "image": { "ID": 170, "id": 170, "title": "stream-1", "filename": "stream-1.jpg", "filesize": 251885, "url": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "link": "https://maforum.ippf.org/ippf-stream-funding/stream-1/", "alt": "", "author": "1", "description": "", "caption": "", "name": "stream-1", "status": "inherit", "uploaded_to": 146, "date": "2024-06-14 07:32:34", "modified": "2024-06-14 07:32:34", "menu_order": 0, "mime_type": "image/jpeg", "type": "image", "subtype": "jpeg", "icon": "https://maforum.ippf.org/wp-includes/images/media/default.png", "width": 619, "height": 382, "sizes": { "thumbnail": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1-150x150.jpg", "thumbnail-width": 150, "thumbnail-height": 150, "medium": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1-300x185.jpg", "medium-width": 300, "medium-height": 185, "medium_large": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "medium_large-width": 619, "medium_large-height": 382, "large": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "large-width": 619, "large-height": 382, "1536x1536": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "1536x1536-width": 619, "1536x1536-height": 382, "2048x2048": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "2048x2048-width": 619, "2048x2048-height": 382, "medium-thumb-size": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1-500x382.jpg", "medium-thumb-size-width": 500, "medium-thumb-size-height": 382 } } }, { "voice": "“Feminist grounding drives us, as MAs, to remove obstacles that pollute and stifle love and make it hard for so many to breathe. It drives us to be a disruptive force, rejecting gender injustices and marginalization of LGBTQ+ persons who are denied their human rights.\"", "author": "Patricia Sheerattan-Bisnauth, Caribbean Family Planning Association", "image": { "ID": 49, "id": 49, "title": "home-ha-forum", "filename": "home-ha-forum.jpg", "filesize": 166828, "url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-ha-forum.jpg", "link": "https://maforum.ippf.org/ma-forum/home-ha-forum/", "alt": "", "author": "1", "description": "", "caption": "", "name": "home-ha-forum", "status": "inherit", "uploaded_to": 25, "date": "2024-06-03 10:14:01", "modified": "2024-06-03 10:14:01", "menu_order": 0, "mime_type": "image/jpeg", "type": "image", "subtype": "jpeg", "icon": "https://maforum.ippf.org/wp-includes/images/media/default.png", "width": 800, "height": 800, "sizes": { "thumbnail": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-ha-forum-150x150.jpg", "thumbnail-width": 150, "thumbnail-height": 150, "medium": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-ha-forum-300x300.jpg", "medium-width": 300, "medium-height": 300, "medium_large": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-ha-forum-768x768.jpg", "medium_large-width": 768, "medium_large-height": 768, "large": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-ha-forum.jpg", "large-width": 800, "large-height": 800, "1536x1536": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-ha-forum.jpg", "1536x1536-width": 800, "1536x1536-height": 800, "2048x2048": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-ha-forum.jpg", "2048x2048-width": 800, "2048x2048-height": 800, "medium-thumb-size": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-ha-forum-500x500.jpg", "medium-thumb-size-width": 500, "medium-thumb-size-height": 500 } } }, { "voice": "\"We need to go beyond an individual \r\ncommitment. We need an institutional \r\ncommitment that raises awareness, \r\nprovides guidance and generates \r\nknowledge. We need internal culture \r\nchange. Diversity begins at home.”", "author": "Marta Royo, Profamilia Colombia", "image": { "ID": 170, "id": 170, "title": "stream-1", "filename": "stream-1.jpg", "filesize": 251885, "url": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "link": "https://maforum.ippf.org/ippf-stream-funding/stream-1/", "alt": "", "author": "1", "description": "", "caption": "", "name": "stream-1", "status": "inherit", "uploaded_to": 146, "date": "2024-06-14 07:32:34", "modified": "2024-06-14 07:32:34", "menu_order": 0, "mime_type": "image/jpeg", "type": "image", "subtype": "jpeg", "icon": "https://maforum.ippf.org/wp-includes/images/media/default.png", "width": 619, "height": 382, "sizes": { "thumbnail": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1-150x150.jpg", "thumbnail-width": 150, "thumbnail-height": 150, "medium": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1-300x185.jpg", "medium-width": 300, "medium-height": 185, "medium_large": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "medium_large-width": 619, "medium_large-height": 382, "large": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "large-width": 619, "large-height": 382, "1536x1536": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "1536x1536-width": 619, "1536x1536-height": 382, "2048x2048": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1.jpg", "2048x2048-width": 619, "2048x2048-height": 382, "medium-thumb-size": "https://maforum.ippf.org/wp-content/uploads/2024/06/stream-1-500x382.jpg", "medium-thumb-size-width": 500, "medium-thumb-size-height": 382 } } } ] }, "lang": "en", "translations": { "en": 25, "fr": 10081, "es": 10084, "ar": 10087 }, "pll_sync_post": { "en": true }, "_links": { "self": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/pages/25", "targetHints": { "allow": [ "GET", "POST", "PUT", "PATCH", "DELETE" ] } } ], "collection": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/pages" } ], "about": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/types/page" } ], "author": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/users/1" } ], "replies": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/comments?post=25" } ], "version-history": [ { "count": 37, "href": "https://maforum.ippf.org/wp-json/wp/v2/pages/25/revisions" } ], "predecessor-version": [ { "id": 15555, "href": "https://maforum.ippf.org/wp-json/wp/v2/pages/25/revisions/15555" } ], "wp:featuredmedia": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/media/36" } ], "wp:attachment": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media?parent=25" } ], "curies": [ { "name": "wp", "href": "https://api.w.org/{rel}", "templated": true } ] } }
    Title

    Ex. "Welcome to the MA Forum" - acf->slide_title

    Description

    Ex. "This website is dedicated to you ..." - acf->slide_description

    Header image

    Get the column featured_media and make the media request below.

  2. Request the media info based on information from the page request's response

    To get the featured image, you use the column featured_media which contains the ID of the media item.

    curl -X GET 'https://maforum.ippf.org/wp-json/wp/v2/media/36' \ --header 'x-connect-allow: string' \ --header 'Authorization: Bearer token'
    { "id": 36, "date": "2024-06-03T06:27:27", "date_gmt": "2024-06-03T06:27:27", "guid": { "rendered": "http://ma-forum.staging/wp-content/uploads/2024/06/home-image-opt.jpg" }, "modified": "2024-06-03T06:27:27", "modified_gmt": "2024-06-03T06:27:27", "slug": "home-image-opt", "status": "inherit", "type": "attachment", "link": "https://maforum.ippf.org/ma-forum/home-image-opt/", "title": { "rendered": "home-image-opt" }, "author": 1, "featured_media": 0, "comment_status": "", "ping_status": "closed", "template": "", "meta": { "_acf_changed": false, "inline_featured_image": false }, "class_list": [ "post-36", "attachment", "type-attachment", "status-inherit", "hentry" ], "acf": [], "lang": "en", "translations": { "en": 36, "fr": 9298, "es": 9306, "ar": 9314 }, "pll_sync_post": [], "description": { "rendered": "&lt;p class=\"attachment\"&gt;&lt;a href='https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt.jpg'&gt;&lt;img decoding=\"async\" width=\"300\" height=\"176\" src=\"https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-300x176.jpg\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-300x176.jpg 300w, https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-1024x602.jpg 1024w, https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-768x451.jpg 768w, https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-1536x902.jpg 1536w, https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" /&gt;&lt;/a&gt;&lt;/p&gt;\n" }, "caption": { "rendered": "" }, "alt_text": "", "media_type": "image", "mime_type": "image/jpeg", "media_details": { "width": 1920, "height": 1128, "file": "2024/06/home-image-opt.jpg", "filesize": 195319, "sizes": { "medium": { "file": "home-image-opt-300x176.jpg", "width": 300, "height": 176, "filesize": 18839, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-300x176.jpg" }, "large": { "file": "home-image-opt-1024x602.jpg", "width": 1024, "height": 602, "filesize": 134639, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-1024x602.jpg" }, "thumbnail": { "file": "home-image-opt-150x150.jpg", "width": 150, "height": 150, "filesize": 9371, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-150x150.jpg" }, "medium_large": { "file": "home-image-opt-768x451.jpg", "width": 768, "height": 451, "filesize": 85834, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-768x451.jpg" }, "1536x1536": { "file": "home-image-opt-1536x902.jpg", "width": 1536, "height": 902, "filesize": 243107, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-1536x902.jpg" }, "medium-thumb-size": { "file": "home-image-opt-500x500.jpg", "width": 500, "height": 500, "filesize": 63891, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt-500x500.jpg" }, "full": { "file": "home-image-opt.jpg", "width": 1920, "height": 1128, "mime_type": "image/jpeg", "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt.jpg" } }, "image_meta": { "aperture": "0", "credit": "", "camera": "", "caption": "", "created_timestamp": "0", "copyright": "", "focal_length": "0", "iso": "0", "shutter_speed": "0", "title": "", "orientation": "0", "keywords": [] } }, "post": 25, "source_url": "https://maforum.ippf.org/wp-content/uploads/2024/06/home-image-opt.jpg", "_links": { "self": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media/36", "targetHints": { "allow": [ "GET", "POST", "PUT", "PATCH", "DELETE" ] } } ], "collection": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media" } ], "about": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/types/attachment" } ], "author": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/users/1" } ], "replies": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/comments?post=36" } ] } }
    Image URL

    Choose what size you want. I think you should go with large, but you check how it all displays. media_details->sizes->large->source_url

2. MA Resources and Strategy

The information required for this section can be retrieved from the main page query:

MA Resources
Title

Ex. "MA Resources" or "Strategy 2028" - acf->static_group->text_lines[index]->title.
For both sections you need to loop over acf->static_group->text_lines array.

Description

Ex. "The latest information ..." - acf->static_group->text_lines[index]->description

Button text

Ex. "Learn more" - acf->static_group->text_lines[index]->link->title

Button URL

acf->static_group->text_lines[index]->link->url

Image

This should be displayed at the end of the sections after looping through all the text_lines items. Use acf->static_group->image->url

3. News

The information required for this section can be retrieved so:

MA Resources
curl -X GET 'https://maforum.ippf.org/wp-json/wp/v2/posts?per_page=10&lang=en&type=post&orderby=date&order=desc&display_on_home=1' \ --header 'x-connect-allow: string' \ --header 'Authorization: Bearer token'
[ { "id": 19483, "date": "2025-07-18T10:52:57", "date_gmt": "2025-07-18T09:52:57", "guid": { "rendered": "https://maforum.ippf.org/?p=19483" }, "modified": "2025-07-18T10:52:59", "modified_gmt": "2025-07-18T09:52:59", "slug": "ippf-at-the-4th-international-conference-on-financing-for-development-ffd4", "status": "publish", "type": "post", "link": "https://maforum.ippf.org/2025/07/18/ippf-at-the-4th-international-conference-on-financing-for-development-ffd4/", "title": { "rendered": "IPPF at the 4th International Conference on Financing for Development (FfD4)" }, "content": { "rendered": "\n<p>Read IPPF Report below: </p>\n\n\n\n<div data-wp-interactive=\"core/file\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!state.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https://maforum.ippf.org/wp-content/uploads/2025/07/REPORT-IPPF-AT-FFD4-EN.pdf\" type=\"application/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of REPORT IPPF AT FFD4 (EN).\"></object><a id=\"wp-block-file--media-49e05132-bd0b-4db1-93d3-177065ac3896\" href=\"https://maforum.ippf.org/wp-content/uploads/2025/07/REPORT-IPPF-AT-FFD4-EN.pdf\">REPORT IPPF AT FFD4 (EN)</a><a href=\"https://maforum.ippf.org/wp-content/uploads/2025/07/REPORT-IPPF-AT-FFD4-EN.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-49e05132-bd0b-4db1-93d3-177065ac3896\">Download</a></div>\n", "protected": false }, "excerpt": { "rendered": "<p>Read IPPF Report below:</p>\n", "protected": false }, "author": 4, "featured_media": 19484, "comment_status": "closed", "ping_status": "closed", "sticky": false, "template": "", "format": "standard", "meta": { "_acf_changed": false, "inline_featured_image": false, "footnotes": "" }, "categories": [ 1 ], "tags": [], "regions": [], "class_list": [ "post-19483", "post", "type-post", "status-publish", "format-standard", "has-post-thumbnail", "hentry", "category-uncategorized" ], "acf": { "attachment": false, "display_on_home": true, "featured": true, "spotlight": true }, "lang": "en", "translations": { "en": 19483, "es": 19496, "fr": 19490, "ar": 19502 }, "fimg_url": "https://maforum.ippf.org/wp-content/uploads/2025/07/Screenshot-2025-07-18-115142.png", "pll_sync_post": [], "_links": { "self": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/posts/19483", "targetHints": { "allow": [ "GET", "POST", "PUT", "PATCH", "DELETE" ] } } ], "collection": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/posts" } ], "about": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/types/post" } ], "author": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/users/4" } ], "replies": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/comments?post=19483" } ], "version-history": [ { "count": 1, "href": "https://maforum.ippf.org/wp-json/wp/v2/posts/19483/revisions" } ], "predecessor-version": [ { "id": 19486, "href": "https://maforum.ippf.org/wp-json/wp/v2/posts/19483/revisions/19486" } ], "wp:featuredmedia": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/media/19484" } ], "wp:attachment": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media?parent=19483" } ], "wp:term": [ { "taxonomy": "category", "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/categories?post=19483" }, { "taxonomy": "post_tag", "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/tags?post=19483" }, { "taxonomy": "regions", "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/regions?post=19483" } ], "curies": [ { "name": "wp", "href": "https://api.w.org/{rel}", "templated": true } ] } } ]
Title

Ex. "Hostilities ..." - title->rendered.

Date

Ex. "4/11/2023" - date_gmt

Image

fimg_url

Button text
  • EN: Read more

  • ES: Seguir leyendo

  • FR: Lire la suite

  • AR: قراءة المزيد

4. In the spotlight

The information required for this section can be retrieved so:

MA Resources
curl -X GET 'https://maforum.ippf.org/wp-json/wp/v2/posts?per_page=10&lang=en&type=post&orderby=date&order=desc&display_on_home=1' \ --header 'x-connect-allow: string' \ --header 'Authorization: Bearer token'
[ { "id": 19483, "date": "2025-07-18T10:52:57", "date_gmt": "2025-07-18T09:52:57", "guid": { "rendered": "https://maforum.ippf.org/?p=19483" }, "modified": "2025-07-18T10:52:59", "modified_gmt": "2025-07-18T09:52:59", "slug": "ippf-at-the-4th-international-conference-on-financing-for-development-ffd4", "status": "publish", "type": "post", "link": "https://maforum.ippf.org/2025/07/18/ippf-at-the-4th-international-conference-on-financing-for-development-ffd4/", "title": { "rendered": "IPPF at the 4th International Conference on Financing for Development (FfD4)" }, "content": { "rendered": "\n<p>Read IPPF Report below: </p>\n\n\n\n<div data-wp-interactive=\"core/file\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!state.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https://maforum.ippf.org/wp-content/uploads/2025/07/REPORT-IPPF-AT-FFD4-EN.pdf\" type=\"application/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of REPORT IPPF AT FFD4 (EN).\"></object><a id=\"wp-block-file--media-49e05132-bd0b-4db1-93d3-177065ac3896\" href=\"https://maforum.ippf.org/wp-content/uploads/2025/07/REPORT-IPPF-AT-FFD4-EN.pdf\">REPORT IPPF AT FFD4 (EN)</a><a href=\"https://maforum.ippf.org/wp-content/uploads/2025/07/REPORT-IPPF-AT-FFD4-EN.pdf\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-49e05132-bd0b-4db1-93d3-177065ac3896\">Download</a></div>\n", "protected": false }, "excerpt": { "rendered": "<p>Read IPPF Report below:</p>\n", "protected": false }, "author": 4, "featured_media": 19484, "comment_status": "closed", "ping_status": "closed", "sticky": false, "template": "", "format": "standard", "meta": { "_acf_changed": false, "inline_featured_image": false, "footnotes": "" }, "categories": [ 1 ], "tags": [], "regions": [], "class_list": [ "post-19483", "post", "type-post", "status-publish", "format-standard", "has-post-thumbnail", "hentry", "category-uncategorized" ], "acf": { "attachment": false, "display_on_home": true, "featured": true, "spotlight": true }, "lang": "en", "translations": { "en": 19483, "es": 19496, "fr": 19490, "ar": 19502 }, "fimg_url": "https://maforum.ippf.org/wp-content/uploads/2025/07/Screenshot-2025-07-18-115142.png", "pll_sync_post": [], "_links": { "self": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/posts/19483", "targetHints": { "allow": [ "GET" ] } } ], "collection": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/posts" } ], "about": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/types/post" } ], "author": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/users/4" } ], "replies": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/comments?post=19483" } ], "version-history": [ { "count": 1, "href": "https://maforum.ippf.org/wp-json/wp/v2/posts/19483/revisions" } ], "predecessor-version": [ { "id": 19486, "href": "https://maforum.ippf.org/wp-json/wp/v2/posts/19483/revisions/19486" } ], "wp:featuredmedia": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/media/19484" } ], "wp:attachment": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media?parent=19483" } ], "wp:term": [ { "taxonomy": "category", "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/categories?post=19483" }, { "taxonomy": "post_tag", "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/tags?post=19483" }, { "taxonomy": "regions", "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/regions?post=19483" } ], "curies": [ { "name": "wp", "href": "https://api.w.org/{rel}", "templated": true } ] } } ]
Title

Ex. "In the spotlight #1 ..." - title->rendered.

Date

Ex. "4/11/2023" - date_gmt

Text

Ex. "Yesterday I did not ..." - excerpt->rendered

Image

fimg_url

Button text
  • EN: Read more

  • ES: Seguir leyendo

  • FR: Lire la suite

  • AR: قراءة المزيد

The information required for this section can be retrieved so:

MA Resources
curl -X GET 'https://maforum.ippf.org/wp-json/wp/v2/events?per_page=1&lang=en&type=post&orderby=date&order=desc&display_on_home=1' \ --header 'x-connect-allow: string' \ --header 'Authorization: Bearer token'
[ { "id": 19665, "date": "2025-07-25T12:03:46", "date_gmt": "2025-07-25T11:03:46", "guid": { "rendered": "https://maforum.ippf.org/?post_type=event&#038;p=19665" }, "modified": "2025-07-25T12:03:46", "modified_gmt": "2025-07-25T11:03:46", "slug": "ippf-strategy-2028-lead-with-love-resistance-v-resilience-where-are-we", "status": "publish", "type": "event", "link": "https://maforum.ippf.org/event/ippf-strategy-2028-lead-with-love-resistance-v-resilience-where-are-we/", "title": { "rendered": "IPPF Strategy 2028 Lead With Love Resistance V Resilience: Where Are We?" }, "content": { "rendered": "\n<h2 class=\"wp-block-heading has-text-align-center\">IPPF MID TERM REFLECTION</h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https://maforum.ippf.org/wp-content/uploads/2025/07/Lead-With-Love-eng-1-1024x1024.jpg\" alt=\"\" class=\"wp-image-19670\" srcset=\"https://maforum.ippf.org/wp-content/uploads/2025/07/Lead-With-Love-eng-1-1024x1024.jpg 1024w, https://maforum.ippf.org/wp-content/uploads/2025/07/Lead-With-Love-eng-1-300x300.jpg 300w, https://maforum.ippf.org/wp-content/uploads/2025/07/Lead-With-Love-eng-1-150x150.jpg 150w, https://maforum.ippf.org/wp-content/uploads/2025/07/Lead-With-Love-eng-1-768x768.jpg 768w, https://maforum.ippf.org/wp-content/uploads/2025/07/Lead-With-Love-eng-1-500x500.jpg 500w, https://maforum.ippf.org/wp-content/uploads/2025/07/Lead-With-Love-eng-1.jpg 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" /></figure>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">Session Details</h2>\n\n\n\n<p>مع اكتساب الحركة المناهضة للحقوق زخمًا على مستوى العالم، مدعومة بحملات تضليل/معلومات مضللة ممولةAs the anti-rights movement gains momentum globally, supported by well-funded mis/disinformation campaigns and neofascist actors, IPPF member associations(MAs) and collaborative partners (CPs) face increasing pressure to refine their strategies and reclaim public discourse on sexual and reproductive health and rights (SRHR).</p>\n\n\n\n<p>In the lead-up to the General Assembly, the Mid-Term Reflection Webinar Series provides General Assembly delegates,&nbsp;<strong>Executive Directors, Board Chairs, and Youth board reps</strong>&nbsp;with a critical, &#8220;honest and forthright&#8221; space for reflection on the successes, challenges, and adaptive approaches in advancing SRHR amid growing opposition from anti-rights mobilisation and how MAs have been working to counter regressive narratives,mobilize communities to build political momentum and leverage storytelling to inspire action.</p>\n\n\n\n<p>Don’t miss this opportunity to share, shape and accelerate our drive towards strategic delivery in 2028.</p>\n\n\n\n<p id=\"block-d9525f72-d04f-411d-9453-10a6ec2dcc16\">Register now and be part of the conversation!</p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-73ef5f2d-045e-4e51-95d1-fb04f7e2a785\">Webinar Details</h2>\n\n\n\n<p id=\"block-449120f2-40dc-40e9-8e05-943c8c65f1c0\"><strong>Zoom webinar registrationdetails</strong>: <a href=\"http://bit.ly/4kT5JUB\">http://bit.ly/4kT5JUB</a></p>\n\n\n\n<p><strong>Date</strong>: Thursday 7<sup>th</sup>&nbsp;August</p>\n\n\n\n<p><strong>Time</strong>: 13:00-14:30 BST</p>\n\n\n\n<p>recording will(Interpretation and recordingwill be available in English, Spanish, French and Arabic)</p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">We look forward to your participation.</h2>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">IPPF Mid Term Reflection Webinar Series</h2>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\" id=\"block-449120f2-40dc-40e9-8e05-943c8c65f1c0\"><em>&#8220;Delivering better, failing faster, adapting quicker&#8221;</em></h2>\n\n\n\n<p id=\"block-6a1cf1d4-378b-4937-9874-19837be4dfc2\"></p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\" id=\"block-684ffd0b-ff13-4634-b06b-9c8e83a9364e\"></h2>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\"></h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1000\" height=\"1024\" src=\"https://maforum.ippf.org/wp-content/uploads/2025/07/image-1-1000x1024.png\" alt=\"\" class=\"wp-image-19642\" style=\"width:138px;height:auto\" srcset=\"https://maforum.ippf.org/wp-content/uploads/2025/07/image-1-1000x1024.png 1000w, https://maforum.ippf.org/wp-content/uploads/2025/07/image-1-293x300.png 293w, https://maforum.ippf.org/wp-content/uploads/2025/07/image-1-768x786.png 768w, https://maforum.ippf.org/wp-content/uploads/2025/07/image-1.png 1038w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></figure></div>\n\n\n<figure class=\"wp-block-video\"><video controls poster=\"https://maforum.ippf.org/wp-content/uploads/2025/07/MTR2-Teaser-mov-image.jpg\" src=\"https://maforum.ippf.org/wp-content/uploads/2025/07/MTR2-Teaser.mov\"></video></figure>\n", "protected": false }, "featured_media": 19670, "template": "", "class_list": [ "post-19665", "event", "type-event", "status-publish", "has-post-thumbnail", "hentry" ], "acf": { "attachment": false, "event_date": "07/08/2025", "event_type": " - Webinar", "event_location": " - Zoom", "event_duration": " - 1.5 hours", "display_on_home": true, "featured": true, "spotlight": true }, "lang": "en", "translations": { "en": 19665, "fr": 19671, "es": 19673, "ar": 19675 }, "pll_sync_post": { "en": true }, "_links": { "self": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/events/19665", "targetHints": { "allow": [ "GET" ] } } ], "collection": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/events" } ], "about": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/types/event" } ], "wp:featuredmedia": [ { "embeddable": true, "href": "https://maforum.ippf.org/wp-json/wp/v2/media/19670" } ], "wp:attachment": [ { "href": "https://maforum.ippf.org/wp-json/wp/v2/media?parent=19665" } ], "curies": [ { "name": "wp", "href": "https://api.w.org/{rel}", "templated": true } ] } } ]
Title

Ex. "IPPF welcomes ..." - title->rendered.

Date

Ex. "4/11/2023" - date_gmt

Text

Ex. "The international ..." - There is no excerpt field here, I think you need to strip tags and trim the content->rendered

Purple bar

This is different from the picture because it's old but display the following text: Type acf->event_type | Location acf->event_location | Duration acf->event_duration

Image

To get the featured image, you use the column featured_media which contains the ID of the media item. Choose what size you want. I think you should go with large, but you check how it all displays. media_details->sizes->large->source_url

curl -X GET 'https://maforum.ippf.org/wp-json/wp/v2/media/36' \ --header 'x-connect-allow: string' \ --header 'Authorization: Bearer token'
Button text
  • EN: Read more

  • ES: Seguir leyendo

  • FR: Lire la suite

  • AR: قراءة المزيد

6. MA Voices

You will use the information you already retrieved in the first step, meaning the page info.

MA Resources
Section title

Ex. "MA Voices" - acf->vh_title.

Section description

Ex. "In 2019 ..." - acf->vh_description.

Slides

You need to loop over - acf->vh_voices. To get the title it's acf->vh_voices->voice. To get the image it's acf->vh_voices->sizes->thumbnail.

7. Final sections

I know the design shows some sections and API response something else. This is because they are editable. To get all the information you use the information you got for the page details. You need to loop over acf->blocks_lines->block_line

MA Resources
Title

Ex. "Identity initiative" - acf->blocks_lines->block_line->title.

Description

Ex. "Today the world ..." - acf->blocks_lines->block_line->description.

Image

acf->blocks_lines->block_line->image->url.

19 August 2025