I am using a script where the postid from the page continues to be totally reset using a script include. How do i retrieve the particular true publish id and totally reset its value once it's been transformed via script?

This is actually the script that I am mentioning to. Somewhere inside, the postid has been totally reset to ensure that the page's the_content() call is no more tugging the present page being seen.

I am Comfortable with that, since that is what the script needs, however, I have to totally reset it back once this script has been doing its factor.

                <?php 

                    //$featpages = get_option('woo_slider_pages_landing');
                    $featpages = '579,584,537';
                    $featarr=split(",",$featpages);
                    $featarr = array_diff($featarr, array(""));

                    $i = 1;

                    foreach ( $featarr as $featured_tab ) {

                     query_posts('page_id=' . $featured_tab); while (have_posts()) : the_post();    

                ?>      

            <div class="featured-slide" id="slide-<?php echo $i; $i++; ?>" <?php if($i >=3 ){echo 'style="display:none"';} ?>>

                <div class="text">

                    <h2><?php if ( get_post_meta($post->ID, "page_desc", $single = true) <> "" ) { echo get_post_meta($post->ID, "page_desc", $single = true); } else { the_title(); } ?></h2>

                    <p><?php if ( get_post_meta($post->ID, "page_excerpt", $single = true) <> "" ) { echo get_post_meta($post->ID, "page_excerpt", $single = true); } else { the_excerpt(); } ?></p>

                        <?php if ( get_post_meta($post->ID, "link_text", $single = true) <> "" and get_post_meta($post->ID, "link_link", $single = true) <> "" ) { ?>

                        <p><a href="<?php echo get_post_meta($post->ID, "link_link", $single = true); ?>" title="<?php echo get_post_meta($post->ID, "link_text", $single = true); ?>"><?php echo get_post_meta($post->ID, "link_text", $single = true); ?></a></p>

                        <?php } ?>                                  

                </div><!-- /.text -->

                <?php if ( get_post_meta($post->ID, "image", $single = true) <> "" ) { ?>

                <div class="image">

                    <img src="<?php echo get_post_meta($post->ID, "image", $single = true); ?>" alt="<?php the_title(); ?>" class="featured" />

                </div><!-- /.image -->

                <?php } ?>

            </div><!-- /.featured-slide -->

            <?php endwhile; } //endforeach ?>

i am presuming you meaning resetting the loop? if that's the case you simply add:

<? wp_reset_query(); ?>

at the end of the script (after endwhile)