In Progress

php code to show latest worpdress posts on page

I'm sure this is dead simple for someone who knows wordpress code well (which I don't).

I want to list the latest 10 posts on a wordpress page in date order (most recent first) and associate some code from a review script with each entry.

I almost have it working but I'm also getting the comments and leave a comment input field associated with the earliest post - neither of which I want.

Can someone help me by providing the right code? I'm probably just calling the data ion the wrong way.

I've uploaded the code I'm currently using on the wordpress page.

Thanks in advance.

Skills: PHP, WordPress

See more: first code, worpdress, ion, code review, leave comment php script, wordpress show post, list code, wordpress order field, wordpress show post page, wordpress input page, order posts, wordpress php working, comment code, simple php wordpress, calling data list, code entry, wordpress data input, php simple order, post comment php code, php order code, review code, recent post wordpress, data entry page wordpress, wordpress review script, date show

About the Employer:
( 13 reviews ) Guildford, United Kingdom

Project ID: #581656

Awarded to:

ranacseruet

Hi, I am interested.

$30 USD in 1 day
(38 Reviews)
5.8

8 freelancers are bidding on average $31 for this job

innovese

Hello, Can help you right away. Please select me and we can start. Thanks Neeraj

$30 USD in 0 days
(36 Reviews)
5.6
ssovit

Ready to start. Please check PMB for more info. Thanks

$30 USD in 1 day
(47 Reviews)
5.3
wwwyaaahaaacom

pls,check pm . WP expert here

$30 USD in 0 days
(9 Reviews)
4.9
ydude

Please check PM. Thanks,

$30 USD in 0 days
(16 Reviews)
4.8
fathlabstudio

Hello! please check my pmb. Thank you

$30 USD in 0 days
(11 Reviews)
3.9
manikchdasbd2010

i can do the work

$30 USD in 2 days
(0 Reviews)
0.0
wpguru

Hi WP Guru is here, Check PMB for detail. Regards

$40 USD in 1 day
(0 Reviews)
0.0