&lt;?php
/*
Template Name: Portfolio
*/
?&gt;

&lt;?php get_header(); ?&gt;

&lt;div id="full_container"&gt;
&lt;div id="portfolio_content"&gt;
&lt;div id="portfolio_wrap"&gt;
&lt;div id="content"&gt;

    &lt;?php 
        $loop = new WP_Query(array('post_type' =&gt; 'portfolio', 'posts_per_page' =&gt; 2)); 
    ?&gt;
    &lt;?php while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); ?&gt;
    &lt;?php   
        $custom = get_post_custom($post-&gt;ID);
        $screenshot_url = $custom["screenshot_url"][0];
        $website_url = $custom["website_url"][0];
    ?&gt;


&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;

&lt;span class="img"&gt;
&lt;?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'thmb-portfolio' ); } ?&gt;

&lt;span class="under"&gt;
&lt;!-- Excerpt title --&gt;
&lt;span class="title"&gt;&lt;?php the_title(); ?&gt;&lt;/span&gt;

&lt;!-- Excerpt description --&gt;
&lt;span class="desc"&gt;
    &lt;?php my_excerpt('short'); ?&gt;
&lt;/span&gt;
&lt;/span&gt;
&lt;/span&gt;
&lt;/a&gt;
&lt;?php previous_posts_link('Previous'); ?&gt; / &lt;?php next_posts_link('Next') ?&gt;

        &lt;?php endwhile; ?&gt;  

&lt;?php if (function_exists("pagination")) {
    pagination($additional_loop-&gt;max_num_pages);
} ?&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;?php get_footer(); ?&gt;


Next & Previous (Pagination in this case) Not Appearing
I have developed Stored Procedures in Oracle 11g and need to access them through Crystal Reports 14.0.2.364. When I developed the reports, I used a direct Oracle server connection (server address, username/password, SID, port, etc.) and the report worked perfectly. As a limit on our LMS, we're told that we must use ODBC connections instead of a direct Oracle Server connection, but, when I connect the Crystal Report to the Stored Procedure in this manner, I get a persistent Error 42000:[Oracle][ODBC] Syntax Error or Access Violation error.

We have double-checked the drivers and we're up to date. We have verified there are no actual syntax errors in the code. We have verified the username we're logging in as has the correct privileges to run the Oracle Stored Procedure. We've verified that, when supplied with the correct parameters, the Stored Procedure runs.

What I'm seeing that I cannot explain is this. There are 4 input parameters to the report and there are 36 returned columns in the recordset that comes back from the stored procedure. Inside Crystal Reports, when I got to Database &gt; Show SQL Query, I get the following:

{CALL "SABA_REPORT"."HDT_CORE_GETDATA_DDS_V110"(NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'STR0115', '4260', NULL, 
'course')}


Which shows the 36 returned columns as INPUT parameters (which it should not) as NULL values and then the 4 input parameters: 'STR0115', '4260', NULL, 'course' which are correctly listed.

So, I think there's a mismatch between the parameters that are being passed to the Stored Procedure and what the Stored Procedure expects, generating the error.

For reference, here's the header of the Stored Procedure:

create or replace PROCEDURE HDT_CORE_GETDATA_DDS_V110
 (
      DataReturn IN OUT HDT_CORE_MAIN_V110.CORE_REC_CURSOR
      , ParamOrgCode IN VARCHAR2 DEFAULT NULL
      , ParamCourseNumber IN VARCHAR2 DEFAULT NULL
      , ParamNameKeyword IN VARCHAR2 DEFAULT NULL
      , ParamReportType IN VARCHAR2 DEFAULT 'course'
 )


The DataReturn SysRefCursor is what contains the 36 returned columns. 

How can this error be cleared? 

Thanks in advance for any insight. 
