problems with loading posts in a table-row

Here’s the problem: $my_query = new WP_Query(‘cat=7’); You asked for posts in the category with the ID 7. You never said anything about how many posts to fetch, so it fetches the default, 10 per page. So instead, you need to set posts_per_page, and you need to set it to a reasonable number such as … Read more

Retrieve value between 2 post

Here is a simple test drive for your question. // suppose you paste it into a template, eg. page.php or single.php // I leave out any test or checking, to show to concept function display_other_post() { global $post; $current_post_id = $post->ID; $other_post_id = 14; $other_post = get_post( $other_post_id ); print_r( $other_post ); // do whatever … Read more