Advertisement
Guest User

7steps

a guest
Mar 17th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 23.28 KB | None | 0 0
  1. <?php // ////////////////////////////////////////////////////////
  2. // CODE FOR STEP 1 ADDITIONAL RESOURCES        
  3. //////////////////////////////////////////////////////////////// ?>
  4.                
  5.     <?php if (is_page('step-1-assess')) { ?>
  6.         <?php $args = array(
  7.                 'post_type'     =>  'documents',
  8.                 'tax_query' => array(
  9.                     array(
  10.                       'taxonomy' => 'document_category',
  11.                       'field' => 'slug',
  12.                       'terms' => array('step1-assess')
  13.                     )
  14.                 ),
  15.                 'posts_per_page'    =>  -1,
  16.                 'order'             =>  'ASC',
  17.                 'orderby'           =>  'ID'
  18.             );
  19.         $the_query = new WP_Query( $args );          
  20.         if ( $the_query->have_posts() ) : ?>
  21.             <h3>Documents:</h3>
  22.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  23.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  24.             <?php endwhile; endif; ?>
  25.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  26.             <?php wp_reset_postdata(); ?>
  27.            
  28.         <?php $args = array(
  29.                 'post_type'     =>  'books',
  30.                 'tax_query' => array(
  31.                     array(
  32.                       'taxonomy' => 'book_category',
  33.                       'field' => 'slug',
  34.                       'terms' => array('step1-assess')
  35.                     )
  36.                 ),
  37.                 'posts_per_page'    =>  -1,
  38.                 'order'             =>  'ASC',
  39.                 'orderby'           =>  'ID'
  40.             );
  41.         $the_query = new WP_Query( $args );          
  42.         if ( $the_query->have_posts() ) : ?>
  43.             <h3>Books:</h3>
  44.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  45.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  46.             <?php endwhile; endif; ?>
  47.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  48.             <?php wp_reset_postdata(); ?>
  49.            
  50.         <?php $args = array(
  51.                 'post_type'     =>  'onlineaids',
  52.                 'tax_query' => array(
  53.                     array(
  54.                       'taxonomy' => 'onlineaid_category',
  55.                       'field' => 'slug',
  56.                       'terms' => array('step1-assess')
  57.                     )
  58.                 ),
  59.                 'posts_per_page'    =>  -1,
  60.                 'order'             =>  'ASC',
  61.                 'orderby'           =>  'ID'
  62.             );
  63.         $the_query = new WP_Query( $args );          
  64.         if ( $the_query->have_posts() ) : ?>
  65.             <h3>Online Aids:</h3>
  66.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  67.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  68.             <?php endwhile; endif; ?>
  69.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  70.             <?php wp_reset_postdata(); ?>
  71.  
  72.         <?php $args = array(
  73.                 'post_type'     =>  'examples',
  74.                 'tax_query' => array(
  75.                     array(
  76.                       'taxonomy' => 'example_category',
  77.                       'field' => 'slug',
  78.                       'terms' => array('step1-assess')
  79.                     )
  80.                 ),
  81.                 'posts_per_page'    =>  -1,
  82.                 'order'             =>  'ASC',
  83.                 'orderby'           =>  'ID'
  84.             );
  85.         $the_query = new WP_Query( $args );          
  86.         if ( $the_query->have_posts() ) : ?>
  87.             <h3>Examples:</h3>
  88.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  89.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  90.             <?php endwhile; endif; ?>
  91.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  92.             <?php wp_reset_postdata(); ?>
  93.  
  94.  
  95. <?php // ////////////////////////////////////////////////////////
  96. // CODE FOR STEP 2 ADDITIONAL RESOURCES        
  97. //////////////////////////////////////////////////////////////// ?>
  98.     <?php } elseif (is_page('step-2-prepare')) { ?>
  99.    
  100.         <?php $args = array(
  101.                 'post_type'     =>  'documents',
  102.                 'tax_query' => array(
  103.                     array(
  104.                       'taxonomy' => 'document_category',
  105.                       'field' => 'slug',
  106.                       'terms' => array('step2-prepare')
  107.                     )
  108.                 ),
  109.                 'posts_per_page'    =>  -1,
  110.                 'order'             =>  'ASC',
  111.                 'orderby'           =>  'ID'
  112.             );
  113.         $the_query = new WP_Query( $args );          
  114.         if ( $the_query->have_posts() ) : ?>
  115.             <h3>Documents:</h3>
  116.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  117.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  118.             <?php endwhile; endif; ?>
  119.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  120.             <?php wp_reset_postdata(); ?>
  121.            
  122.         <?php $args = array(
  123.                 'post_type'     =>  'books',
  124.                 'tax_query' => array(
  125.                     array(
  126.                       'taxonomy' => 'book_category',
  127.                       'field' => 'slug',
  128.                       'terms' => array('step2-prepare')
  129.                     )
  130.                 ),
  131.                 'posts_per_page'    =>  -1,
  132.                 'order'             =>  'ASC',
  133.                 'orderby'           =>  'ID'
  134.             );
  135.         $the_query = new WP_Query( $args );          
  136.         if ( $the_query->have_posts() ) : ?>
  137.             <h3>Books:</h3>
  138.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  139.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  140.             <?php endwhile; endif; ?>
  141.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  142.             <?php wp_reset_postdata(); ?>
  143.            
  144.         <?php $args = array(
  145.                 'post_type'     =>  'onlineaids',
  146.                 'tax_query' => array(
  147.                     array(
  148.                       'taxonomy' => 'onlineaid_category',
  149.                       'field' => 'slug',
  150.                       'terms' => array('step2-prepare')
  151.                     )
  152.                 ),
  153.                 'posts_per_page'    =>  -1,
  154.                 'order'             =>  'ASC',
  155.                 'orderby'           =>  'ID'
  156.             );
  157.         $the_query = new WP_Query( $args );          
  158.         if ( $the_query->have_posts() ) : ?>
  159.             <h3>Online Aids:</h3>
  160.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  161.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  162.             <?php endwhile; endif; ?>
  163.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  164.             <?php wp_reset_postdata(); ?>
  165.  
  166.         <?php $args = array(
  167.                 'post_type'     =>  'examples',
  168.                 'tax_query' => array(
  169.                     array(
  170.                       'taxonomy' => 'example_category',
  171.                       'field' => 'slug',
  172.                       'terms' => array('step2-prepare')
  173.                     )
  174.                 ),
  175.                 'posts_per_page'    =>  -1,
  176.                 'order'             =>  'ASC',
  177.                 'orderby'           =>  'ID'
  178.             );
  179.         $the_query = new WP_Query( $args );          
  180.         if ( $the_query->have_posts() ) : ?>
  181.             <h3>Examples:</h3>
  182.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  183.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  184.             <?php endwhile; endif; ?>
  185.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  186.             <?php wp_reset_postdata(); ?>
  187.  
  188.  
  189.  
  190. <?php // ////////////////////////////////////////////////////////
  191. // CODE FOR STEP 3 ADDITIONAL RESOURCES        
  192. //////////////////////////////////////////////////////////////// ?>
  193.     <?php } elseif (is_page('step-3-find')) { ?>
  194.    
  195.         <?php $args = array(
  196.                 'post_type'     =>  'documents',
  197.                 'tax_query' => array(
  198.                     array(
  199.                       'taxonomy' => 'document_category',
  200.                       'field' => 'slug',
  201.                       'terms' => array('step3-find')
  202.                     )
  203.                 ),
  204.                 'posts_per_page'    =>  -1,
  205.                 'order'             =>  'ASC',
  206.                 'orderby'           =>  'ID'
  207.             );
  208.         $the_query = new WP_Query( $args );          
  209.         if ( $the_query->have_posts() ) : ?>
  210.             <h3>Documents:</h3>
  211.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  212.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  213.             <?php endwhile; endif; ?>
  214.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  215.             <?php wp_reset_postdata(); ?>
  216.            
  217.         <?php $args = array(
  218.                 'post_type'     =>  'books',
  219.                 'tax_query' => array(
  220.                     array(
  221.                       'taxonomy' => 'book_category',
  222.                       'field' => 'slug',
  223.                       'terms' => array('step3-find')
  224.                     )
  225.                 ),
  226.                 'posts_per_page'    =>  -1,
  227.                 'order'             =>  'ASC',
  228.                 'orderby'           =>  'ID'
  229.             );
  230.         $the_query = new WP_Query( $args );          
  231.         if ( $the_query->have_posts() ) : ?>
  232.             <h3>Books:</h3>
  233.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  234.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  235.             <?php endwhile; endif; ?>
  236.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  237.             <?php wp_reset_postdata(); ?>
  238.            
  239.         <?php $args = array(
  240.                 'post_type'     =>  'onlineaids',
  241.                 'tax_query' => array(
  242.                     array(
  243.                       'taxonomy' => 'onlineaid_category',
  244.                       'field' => 'slug',
  245.                       'terms' => array('step3-find')
  246.                     )
  247.                 ),
  248.                 'posts_per_page'    =>  -1,
  249.                 'order'             =>  'ASC',
  250.                 'orderby'           =>  'ID'
  251.             );
  252.         $the_query = new WP_Query( $args );          
  253.         if ( $the_query->have_posts() ) : ?>
  254.             <h3>Online Aids:</h3>
  255.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  256.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  257.             <?php endwhile; endif; ?>
  258.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  259.             <?php wp_reset_postdata(); ?>
  260.  
  261.         <?php $args = array(
  262.                 'post_type'     =>  'examples',
  263.                 'tax_query' => array(
  264.                     array(
  265.                       'taxonomy' => 'example_category',
  266.                       'field' => 'slug',
  267.                       'terms' => array('step3-find')
  268.                     )
  269.                 ),
  270.                 'posts_per_page'    =>  -1,
  271.                 'order'             =>  'ASC',
  272.                 'orderby'           =>  'ID'
  273.             );
  274.         $the_query = new WP_Query( $args );          
  275.         if ( $the_query->have_posts() ) : ?>
  276.             <h3>Examples:</h3>
  277.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  278.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  279.             <?php endwhile; endif; ?>
  280.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  281.             <?php wp_reset_postdata(); ?>
  282.            
  283.            
  284.            
  285. <?php // ////////////////////////////////////////////////////////
  286. // CODE FOR STEP 4 ADDITIONAL RESOURCES        
  287. //////////////////////////////////////////////////////////////// ?>
  288.     <?php } elseif (is_page('step-4-contact')) { ?>
  289.    
  290.         <?php $args = array(
  291.                 'post_type'     =>  'documents',
  292.                 'tax_query' => array(
  293.                     array(
  294.                       'taxonomy' => 'document_category',
  295.                       'field' => 'slug',
  296.                       'terms' => array('step4-contact')
  297.                     )
  298.                 ),
  299.                 'posts_per_page'    =>  -1,
  300.                 'order'             =>  'ASC',
  301.                 'orderby'           =>  'ID'
  302.             );
  303.         $the_query = new WP_Query( $args );          
  304.         if ( $the_query->have_posts() ) : ?>
  305.             <h3>Documents:</h3>
  306.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  307.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  308.             <?php endwhile; endif; ?>
  309.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  310.             <?php wp_reset_postdata(); ?>
  311.            
  312.         <?php $args = array(
  313.                 'post_type'     =>  'books',
  314.                 'tax_query' => array(
  315.                     array(
  316.                       'taxonomy' => 'book_category',
  317.                       'field' => 'slug',
  318.                       'terms' => array('step4-contact')
  319.                     )
  320.                 ),
  321.                 'posts_per_page'    =>  -1,
  322.                 'order'             =>  'ASC',
  323.                 'orderby'           =>  'ID'
  324.             );
  325.         $the_query = new WP_Query( $args );          
  326.         if ( $the_query->have_posts() ) : ?>
  327.             <h3>Books:</h3>
  328.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  329.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  330.             <?php endwhile; endif; ?>
  331.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  332.             <?php wp_reset_postdata(); ?>
  333.            
  334.         <?php $args = array(
  335.                 'post_type'     =>  'onlineaids',
  336.                 'tax_query' => array(
  337.                     array(
  338.                       'taxonomy' => 'onlineaid_category',
  339.                       'field' => 'slug',
  340.                       'terms' => array('step4-contact')
  341.                     )
  342.                 ),
  343.                 'posts_per_page'    =>  -1,
  344.                 'order'             =>  'ASC',
  345.                 'orderby'           =>  'ID'
  346.             );
  347.         $the_query = new WP_Query( $args );          
  348.         if ( $the_query->have_posts() ) : ?>
  349.             <h3>Online Aids:</h3>
  350.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  351.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  352.             <?php endwhile; endif; ?>
  353.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  354.             <?php wp_reset_postdata(); ?>
  355.  
  356.         <?php $args = array(
  357.                 'post_type'     =>  'examples',
  358.                 'tax_query' => array(
  359.                     array(
  360.                       'taxonomy' => 'example_category',
  361.                       'field' => 'slug',
  362.                       'terms' => array('step4-contact')
  363.                     )
  364.                 ),
  365.                 'posts_per_page'    =>  -1,
  366.                 'order'             =>  'ASC',
  367.                 'orderby'           =>  'ID'
  368.             );
  369.         $the_query = new WP_Query( $args );          
  370.         if ( $the_query->have_posts() ) : ?>
  371.             <h3>Examples:</h3>
  372.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  373.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  374.             <?php endwhile; endif; ?>
  375.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  376.             <?php wp_reset_postdata(); ?>
  377.            
  378.  
  379.  
  380.  
  381. <?php // ////////////////////////////////////////////////////////
  382. // CODE FOR STEP 5 ADDITIONAL RESOURCES        
  383. //////////////////////////////////////////////////////////////// ?>
  384.     <?php } elseif (is_page('step-4-interview')) { ?>
  385.    
  386.         <?php $args = array(
  387.                 'post_type'     =>  'documents',
  388.                 'tax_query' => array(
  389.                     array(
  390.                       'taxonomy' => 'document_category',
  391.                       'field' => 'slug',
  392.                       'terms' => array('step5-interview')
  393.                     )
  394.                 ),
  395.                 'posts_per_page'    =>  -1,
  396.                 'order'             =>  'ASC',
  397.                 'orderby'           =>  'ID'
  398.             );
  399.         $the_query = new WP_Query( $args );          
  400.         if ( $the_query->have_posts() ) : ?>
  401.             <h3>Documents:</h3>
  402.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  403.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  404.             <?php endwhile; endif; ?>
  405.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  406.             <?php wp_reset_postdata(); ?>
  407.            
  408.         <?php $args = array(
  409.                 'post_type'     =>  'books',
  410.                 'tax_query' => array(
  411.                     array(
  412.                       'taxonomy' => 'book_category',
  413.                       'field' => 'slug',
  414.                       'terms' => array('step5-interview')
  415.                     )
  416.                 ),
  417.                 'posts_per_page'    =>  -1,
  418.                 'order'             =>  'ASC',
  419.                 'orderby'           =>  'ID'
  420.             );
  421.         $the_query = new WP_Query( $args );          
  422.         if ( $the_query->have_posts() ) : ?>
  423.             <h3>Books:</h3>
  424.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  425.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  426.             <?php endwhile; endif; ?>
  427.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  428.             <?php wp_reset_postdata(); ?>
  429.            
  430.         <?php $args = array(
  431.                 'post_type'     =>  'onlineaids',
  432.                 'tax_query' => array(
  433.                     array(
  434.                       'taxonomy' => 'onlineaid_category',
  435.                       'field' => 'slug',
  436.                       'terms' => array('step5-interview')
  437.                     )
  438.                 ),
  439.                 'posts_per_page'    =>  -1,
  440.                 'order'             =>  'ASC',
  441.                 'orderby'           =>  'ID'
  442.             );
  443.         $the_query = new WP_Query( $args );          
  444.         if ( $the_query->have_posts() ) : ?>
  445.             <h3>Online Aids:</h3>
  446.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  447.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  448.             <?php endwhile; endif; ?>
  449.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  450.             <?php wp_reset_postdata(); ?>
  451.  
  452.         <?php $args = array(
  453.                 'post_type'     =>  'examples',
  454.                 'tax_query' => array(
  455.                     array(
  456.                       'taxonomy' => 'example_category',
  457.                       'field' => 'slug',
  458.                       'terms' => array('step5-interview')
  459.                     )
  460.                 ),
  461.                 'posts_per_page'    =>  -1,
  462.                 'order'             =>  'ASC',
  463.                 'orderby'           =>  'ID'
  464.             );
  465.         $the_query = new WP_Query( $args );          
  466.         if ( $the_query->have_posts() ) : ?>
  467.             <h3>Examples:</h3>
  468.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  469.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  470.             <?php endwhile; endif; ?>
  471.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  472.             <?php wp_reset_postdata(); ?>
  473.  
  474.  
  475.  
  476. <?php // ////////////////////////////////////////////////////////
  477. // CODE FOR STEP 6 ADDITIONAL RESOURCES        
  478. //////////////////////////////////////////////////////////////// ?>
  479.     <?php } elseif (is_page('step-6-negotiate')) { ?>
  480.    
  481.         <?php $args = array(
  482.                 'post_type'     =>  'documents',
  483.                 'tax_query' => array(
  484.                     array(
  485.                       'taxonomy' => 'document_category',
  486.                       'field' => 'slug',
  487.                       'terms' => array('step6-negotiate')
  488.                     )
  489.                 ),
  490.                 'posts_per_page'    =>  -1,
  491.                 'order'             =>  'ASC',
  492.                 'orderby'           =>  'ID'
  493.             );
  494.         $the_query = new WP_Query( $args );          
  495.         if ( $the_query->have_posts() ) : ?>
  496.             <h3>Documents:</h3>
  497.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  498.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  499.             <?php endwhile; endif; ?>
  500.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  501.             <?php wp_reset_postdata(); ?>
  502.            
  503.         <?php $args = array(
  504.                 'post_type'     =>  'books',
  505.                 'tax_query' => array(
  506.                     array(
  507.                       'taxonomy' => 'book_category',
  508.                       'field' => 'slug',
  509.                       'terms' => array('step6-negotiate')
  510.                     )
  511.                 ),
  512.                 'posts_per_page'    =>  -1,
  513.                 'order'             =>  'ASC',
  514.                 'orderby'           =>  'ID'
  515.             );
  516.         $the_query = new WP_Query( $args );          
  517.         if ( $the_query->have_posts() ) : ?>
  518.             <h3>Books:</h3>
  519.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  520.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  521.             <?php endwhile; endif; ?>
  522.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  523.             <?php wp_reset_postdata(); ?>
  524.            
  525.         <?php $args = array(
  526.                 'post_type'     =>  'onlineaids',
  527.                 'tax_query' => array(
  528.                     array(
  529.                       'taxonomy' => 'onlineaid_category',
  530.                       'field' => 'slug',
  531.                       'terms' => array('step6-negotiate')
  532.                     )
  533.                 ),
  534.                 'posts_per_page'    =>  -1,
  535.                 'order'             =>  'ASC',
  536.                 'orderby'           =>  'ID'
  537.             );
  538.         $the_query = new WP_Query( $args );          
  539.         if ( $the_query->have_posts() ) : ?>
  540.             <h3>Online Aids:</h3>
  541.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  542.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  543.             <?php endwhile; endif; ?>
  544.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  545.             <?php wp_reset_postdata(); ?>
  546.  
  547.         <?php $args = array(
  548.                 'post_type'     =>  'examples',
  549.                 'tax_query' => array(
  550.                     array(
  551.                       'taxonomy' => 'example_category',
  552.                       'field' => 'slug',
  553.                       'terms' => array('step6-negotiate')
  554.                     )
  555.                 ),
  556.                 'posts_per_page'    =>  -1,
  557.                 'order'             =>  'ASC',
  558.                 'orderby'           =>  'ID'
  559.             );
  560.         $the_query = new WP_Query( $args );          
  561.         if ( $the_query->have_posts() ) : ?>
  562.             <h3>Examples:</h3>
  563.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  564.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  565.             <?php endwhile; endif; ?>
  566.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  567.             <?php wp_reset_postdata(); ?>
  568.  
  569.  
  570. <?php // ////////////////////////////////////////////////////////
  571. // CODE FOR STEP 7 ADDITIONAL RESOURCES        
  572. //////////////////////////////////////////////////////////////// ?>
  573.     <?php } elseif (is_page('step-7-accept')) { ?>
  574.    
  575.         <?php $args = array(
  576.                 'post_type'     =>  'documents',
  577.                 'tax_query' => array(
  578.                     array(
  579.                       'taxonomy' => 'document_category',
  580.                       'field' => 'slug',
  581.                       'terms' => array('step7-accept')
  582.                     )
  583.                 ),
  584.                 'posts_per_page'    =>  -1,
  585.                 'order'             =>  'ASC',
  586.                 'orderby'           =>  'ID'
  587.             );
  588.         $the_query = new WP_Query( $args );          
  589.         if ( $the_query->have_posts() ) : ?>
  590.             <h3>Documents:</h3>
  591.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  592.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  593.             <?php endwhile; endif; ?>
  594.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  595.             <?php wp_reset_postdata(); ?>
  596.            
  597.         <?php $args = array(
  598.                 'post_type'     =>  'books',
  599.                 'tax_query' => array(
  600.                     array(
  601.                       'taxonomy' => 'book_category',
  602.                       'field' => 'slug',
  603.                       'terms' => array('step7-accept')
  604.                     )
  605.                 ),
  606.                 'posts_per_page'    =>  -1,
  607.                 'order'             =>  'ASC',
  608.                 'orderby'           =>  'ID'
  609.             );
  610.         $the_query = new WP_Query( $args );          
  611.         if ( $the_query->have_posts() ) : ?>
  612.             <h3>Books:</h3>
  613.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  614.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  615.             <?php endwhile; endif; ?>
  616.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  617.             <?php wp_reset_postdata(); ?>
  618.            
  619.         <?php $args = array(
  620.                 'post_type'     =>  'onlineaids',
  621.                 'tax_query' => array(
  622.                     array(
  623.                       'taxonomy' => 'onlineaid_category',
  624.                       'field' => 'slug',
  625.                       'terms' => array('step7-accept')
  626.                     )
  627.                 ),
  628.                 'posts_per_page'    =>  -1,
  629.                 'order'             =>  'ASC',
  630.                 'orderby'           =>  'ID'
  631.             );
  632.         $the_query = new WP_Query( $args );          
  633.         if ( $the_query->have_posts() ) : ?>
  634.             <h3>Online Aids:</h3>
  635.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  636.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  637.             <?php endwhile; endif; ?>
  638.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  639.             <?php wp_reset_postdata(); ?>
  640.  
  641.         <?php $args = array(
  642.                 'post_type'     =>  'examples',
  643.                 'tax_query' => array(
  644.                     array(
  645.                       'taxonomy' => 'example_category',
  646.                       'field' => 'slug',
  647.                       'terms' => array('step7-accept')
  648.                     )
  649.                 ),
  650.                 'posts_per_page'    =>  -1,
  651.                 'order'             =>  'ASC',
  652.                 'orderby'           =>  'ID'
  653.             );
  654.         $the_query = new WP_Query( $args );          
  655.         if ( $the_query->have_posts() ) : ?>
  656.             <h3>Examples:</h3>
  657.             <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  658.                 <a href="<?php the_permalink() ?>"><?php the_title(); ?></a><?php the_excerpt(); ?>
  659.             <?php endwhile; endif; ?>
  660.             <?php if ( $the_query->have_posts() ) { ?><a href="#top" class="backtotop">Back to the top</a><?php } ?>
  661.             <?php wp_reset_postdata(); ?>
  662.  
  663.    
  664.     <?php } else { ?>
  665.  
  666.     <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement