Advertisement
SRD75

front-page.php

Sep 25th, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.10 KB | None | 0 0
  1. <?php
  2.     $loop = new WP_Query( array( 'post_type' => 'laptop', 'postsperpage' => '30', 'max_num_pages' => 20 ) );
  3.     if ( $loop->have_posts() ) { ?>
  4.  
  5.     <table cellspacing="0" cellpadding="0" id="laptops-index">
  6.       <tr>
  7.         <th>Manufacturer:</th>
  8.         <th>Model:</th>
  9.         <th>CPU:</th>
  10.         <th>Processor Speed (GHz):</th>
  11.         <th>Turbo Boost (Ghz):</th>
  12.         <th>Processor cores:</th>
  13.         <th>CPU Bittage:</th>
  14.         <th>Processor L2 Cache MB:</th>
  15.         <th>Processor L3 Cache MB:</th>
  16.         <th>RAM:</th>
  17.         <th>Max RAM:</th>
  18.         <th>Memory Slots:</th>
  19.         <th>Operating System:</th>
  20.         <th>Display Size:</th>
  21.         <th>Display Resolution:</th>
  22.         <th>Graphics:</th>
  23.         <th>Price:<br />(as at 2015)</th>
  24.         <th>Image</th>
  25.         <th>Has Dual Hard Drive Bay?</th>
  26.         <th>Compatible with HDD in Optical Drive Bay?</th>
  27.         <th>Has PCI Express Mini Card Slot?</th>
  28.         <th>Accepts MSATA SDD in PCI Express Mini Card    slot?</th>
  29.         <th>Has MSATA Slot?</th>
  30.         <th>Accepts PCIE SSD in MSATA Slot?</th>
  31.       </tr>
  32.   <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
  33.       <tr>
  34.         <td><?php the_field('manufacturer'); ?></td>
  35.         <td><a href="<?php the_permalink(); ?>"><?php the_field('model'); ?></a></td>
  36.         <td><?php the_field('cpu'); ?></td>
  37.         <td><?php the_field('processor_speed'); ?></td>
  38.         <td><?php the_field('turbo_boost'); ?></td>
  39.         <td><?php the_field('processor_cores'); ?></td>
  40.         <td><?php the_field('cpu_bittage'); ?></td>
  41.         <td><?php the_field('processor_l2_cache_mb'); ?></td>
  42.         <td><?php the_field('processor_l3_cache_mb'); ?></td>
  43.         <td><?php the_field('ram'); ?></td>
  44.         <td><?php the_field('max_ram'); ?></td>
  45.         <td><?php the_field('memory_slots'); ?></td>
  46.         <td><?php the_field('os'); ?></td>
  47.         <td><?php the_field('display_size'); ?></td>
  48.         <td><?php the_field('display_resolution'); ?></td>
  49.         <td><?php the_field('graphics'); ?></td>
  50.         <td><?php the_field('price'); ?></td>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement