tushargugnani / 5balloons.info

5 stars 1 forks source link

Show latest 5 post on Home page and make pagination work. #8

Closed tushargugnani closed 2 years ago

tushargugnani commented 2 years ago

Use the corcel package to show the latest 5 posts on the home page. Using the navigation links we will show more posts on the second page. The link for other pages will be same as the current WordPress structure i.e. /page/2/ /page/3/ and so on.

On the subsequent pages, we will just show the post and not the Hero div and also the icon links.

Attaching the database backup of the existing WordPress website.

The images in the blog won't work as of now, I will create a separate task for that.

mqjvjfumzr.sql.gz

tapan288 commented 2 years ago

@tushargugnani, instead of showing from a backup, aren't we going to fetch the data directly from the wordpress API? In that case, I might need the database name, and I'll try fetching the data of my own account. I guess that's what this package is meant to do.

tushargugnani commented 2 years ago

@tapan288 My understanding is this package provides Models and methods to fluently interact with wordpress database. When using this on production we will still have to install the wordpress admin to manage and create more posts but to display them we will be using Laravel. I don't think there is a wordpress API that this deals with, Will look more.

tapan288 commented 2 years ago

@tushargugnani, Ohh okay, I get it now

tushargugnani commented 2 years ago

Fixed via #9