
PANAFRICAN.EMAIL
Join the communication network connecting Africa
and the African Diaspora. Get the latest Pan-African
news, stories, culture, business and opportunities
delivered directly to your inbox.
Join the Network
Subscribe to Panafrican.email and stay connected
to the continent and its global community.
By subscribing, you agree to receive communications
from Panafrican.email. You can unsubscribe at any time.
Pan-African News
Stay informed about major developments
across Africa and the Diaspora.
One African Network
Connect with stories, ideas and communities
across the continent.
Delivered Directly
Important stories and updates delivered
directly to your inbox.
One Continent. One Network.
Panafrican.email is a communication platform
dedicated to connecting African voices, information,
culture, business and opportunity across national
borders and throughout the global African Diaspora.
Latest Posts
LATEST
Loading latest posts…
/* ========================================== LOAD LATEST WORDPRESS POSTS ========================================== */
document.addEventListener("DOMContentLoaded", function() {
const container = document.getElementById("pafLatestPosts");
fetch( "/wp-json/wp/v2/posts?per_page=5&orderby=date&order=desc&_embed" )
.then(response => {
if (!response.ok) { throw new Error("Unable to load posts"); }
return response.json();
})
.then(posts => {
if (!posts.length) {
container.innerHTML = "
No posts available yet.
";
return; }
container.innerHTML = "";
posts.forEach(post => {
let image = "";
if ( post._embedded && post._embedded["wp:featuredmedia"] && post._embedded["wp:featuredmedia"][0] ) {
image = post._embedded["wp:featuredmedia"][0] .source_url;
}
const date = new Date(post.date).toLocaleDateString( undefined, { year: "numeric", month: "long", day: "numeric" } );
const article = document.createElement("article");
article.className = "paf-post";
article.innerHTML = `
` }
`;
container.appendChild(article);
});
})
.catch(error => {
container.innerHTML = `
Latest posts could not be loaded.
`;
console.error(error);
});
});

