Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $loop = new WP_Query( array( 'post_type' => 'laptop', 'postsperpage' => '30', 'max_num_pages' => 20 ) );
- if ( $loop->have_posts() ) { ?>
- <table cellspacing="0" cellpadding="0" id="laptops-index">
- <tr>
- <th>Manufacturer:</th>
- <th>Model:</th>
- <th>CPU:</th>
- <th>Processor Speed (GHz):</th>
- <th>Turbo Boost (Ghz):</th>
- <th>Processor cores:</th>
- <th>CPU Bittage:</th>
- <th>Processor L2 Cache MB:</th>
- <th>Processor L3 Cache MB:</th>
- <th>RAM:</th>
- <th>Max RAM:</th>
- <th>Memory Slots:</th>
- <th>Operating System:</th>
- <th>Display Size:</th>
- <th>Display Resolution:</th>
- <th>Graphics:</th>
- <th>Price:<br />(as at 2015)</th>
- <th>Image</th>
- <th>Has Dual Hard Drive Bay?</th>
- <th>Compatible with HDD in Optical Drive Bay?</th>
- <th>Has PCI Express Mini Card Slot?</th>
- <th>Accepts MSATA SDD in PCI Express Mini Card slot?</th>
- <th>Has MSATA Slot?</th>
- <th>Accepts PCIE SSD in MSATA Slot?</th>
- </tr>
- <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
- <tr>
- <td><?php the_field('manufacturer'); ?></td>
- <td><a href="<?php the_permalink(); ?>"><?php the_field('model'); ?></a></td>
- <td><?php the_field('cpu'); ?></td>
- <td><?php the_field('processor_speed'); ?></td>
- <td><?php the_field('turbo_boost'); ?></td>
- <td><?php the_field('processor_cores'); ?></td>
- <td><?php the_field('cpu_bittage'); ?></td>
- <td><?php the_field('processor_l2_cache_mb'); ?></td>
- <td><?php the_field('processor_l3_cache_mb'); ?></td>
- <td><?php the_field('ram'); ?></td>
- <td><?php the_field('max_ram'); ?></td>
- <td><?php the_field('memory_slots'); ?></td>
- <td><?php the_field('os'); ?></td>
- <td><?php the_field('display_size'); ?></td>
- <td><?php the_field('display_resolution'); ?></td>
- <td><?php the_field('graphics'); ?></td>
- <td><?php the_field('price'); ?></td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement