Does anyone here kbow how to get the post not the pages in a wordpress dashboar?
This line of code:
$ArrResult = $wpdb->get_results("SELECT * FROM {$wpdb->posts} WHERE post_type = 'page' ");
and for the table I have something like this:
<td><?php echo $sampleResult->post_title ?></td
I thought this would get the posts, but it returns pages content, author, date. What I want to have is the posts not the pages...

Thank you in advance.

Well, you're asking for it to return pages WHERE post_type = 'page'.

ok thank you..I got it...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.