₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,106 members, 8,438,823 topics. Date: Saturday, 04 July 2026 at 03:40 AM

Toggle theme

Wordpress Experts, Please Help : Displaying Product Via A REST API - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingWordpress Experts, Please Help : Displaying Product Via A REST API (648 Views)

1 Reply (Go Down)

Wordpress Experts, Please Help : Displaying Product Via A REST API by EbenG(op): 7:54pm On Feb 13, 2024
Hi everyone, I'm a beginner in Word press and I'm trying to create a website that displays a dynamic list of products fetched from a REST API endpoint. Each product has fields such as name, price, description, image url to display and an external link. When users click on a particular product, they are redirected to the external link.

I want to also implement pagination.

I've explored tutorials which uses the WooCommerce plugin but they focus on manually adding products. I don't even know if i'd need to use the WooCommerce plugin at all. I want to seek guidance on the specific implementation steps, recommended plugins, themese or any helpful resources for creating this type of website.

The implementation is similar to most udemy coupon sites like this one: https://coursefolder.net/live-free-udemy-coupon.php

Thank you all in advance.
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by losprince(m): 10:38pm On Feb 13, 2024
If you know PHP, check the wordpress codex on how to create a custom page.

On the custom page, use a http client like guzzle to make rest request to the API and then loop through the results and display them.

As for pagination, you can limit the number of items fetched per request and increment on a per page basis.
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by EbenG(op): 10:29am On Feb 14, 2024
losprince:
If you know PHP, check the wordpress codex on how to create a custom page.

On the custom page, use a http client like guzzle to make rest request to the API and then loop through the results and display them.

As for pagination, you can limit the number of items fetched per request and increment on a per page basis.
Thanks for taking out your time to reply. I'll explore this option
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by qtguru(m): 6:08pm On Feb 14, 2024
Do you want to write code or use a plugin ? if the former let me know what you want to do, do you write PHP, also why does your name sound familiar, have I mentioned you before. take care
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by EbenG(op): 1:36pm On Feb 15, 2024
qtguru:
Do you want to write code or use a plugin ? if the former let me know what you want to do, do you write PHP, also why does your name sound familiar, have I mentioned you before. take care
I just want to get the job done. Although, I'd prefer to use a plugin. I don't write PHP.

I've been following you here on this forum from day one. Love reading your posts, especially your diary. I'm not sure you've mentioned me before.

Thanks for the reply.
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by qtguru(m): 2:42pm On Feb 15, 2024
where will the products be listed from ? appreciate my brother
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by EbenG(op): 5:21pm On Feb 15, 2024
qtguru:
where will the products be listed from ? appreciate my brother
From a REST API endpoint. I have it already setup and running. It's returning a json array of products
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by qtguru(m): 5:42pm On Feb 15, 2024
EbenG:
From a REST API endpoint. I have it already setup and running. It's returning a json array of products
Pick a time tomorrow let's get on a call and look at it.
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by EbenG(op): 8:38pm On Feb 15, 2024
qtguru:
Pick a time tomorrow let's get on a call and look at it.
I just sent you a mail from here. Pls check.
Thanks
Re: Wordpress Experts, Please Help : Displaying Product Via A REST API by shinemediaweb: 7:04am On Feb 19, 2024
losprince:
If you know PHP, check the wordpress codex on how to create a custom page.

On the custom page, use a http client like guzzle to make rest request to the API and then loop through the results and display them.

As for pagination, you can limit the number of items fetched per request and increment on a per page basis.
Whatsapp me on 0811___622___8641

I will walk you through the process
1 Reply

Wordpress Experts Please I Need Your Help....Django Rest Api - Dropdown Of Countries And States In The WorldWordpress Experts, Please Help A Brother!234

.Get Personalized Uk & Usa Address To Shop As If You Live In The Uk & UsaWhy Mobile Apps Crash?