Forums Forums Search Search Results for 'get_field('

Viewing 10 results - 81 through 90 (of 90 total)
  • Author
    Search Results
  • #46544

    Anonymous
    Inactive

    Yes there is a template file and yes I added code for the ACF field. All the other ACF fields are working normally and pulling in the proper data, just not the date field.

    This is the code for the date field (php tags are also in there):

    echo ‘<p class=”lol-resource-date”>’ . get_field(‘resource_date’) . ‘</p>’;

    #45212

    Anonymous
    Inactive

    No problem – speedy recovery.

    I think the problem lies with the code I have customized here for results.php in SFpro. It seems that maybe my conditional for the second part doesn’t take into consideration the arguments of the query. I end up with all the posts in my db generating equivalent modals. :

    <?php
    /**
     * Search & Filter Pro
     *
     * Sample Results Template
     *
     * @package   Search_Filter
     * @author    Ross Morsali
     * @link      http://www.designsandcode.com/
     * @copyright 2015 Designs & Code
     *
     * Note: these templates are not full page templates, rather
     * just an encaspulation of the your results loop which should
     * be inserted in to other pages by using a shortcode - think
     * of it as a template part
     *
     * This template is an absolute base example showing you what
     * you can do, for more customisation see the WordPress docs
     * and using template tags -
     *
     * http://codex.wordpress.org/Template_Tags
     *
     */
    
    // $term_list = wp_get_post_terms($post->ID, 'product_features', array("fields" => "all"));
    // foreach($term_list as $term_single) {
    // echo $term_single->slug; //do something here
    // }
    
    if ( $query->have_posts() )
    {
    	?>
    
    	<div class="">
    
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    
    		?>
    
    			<a class="col-md-6 col-lg-4 col-sm-6">
    				<article class="module-container eModal-post-<?php the_ID();?>" href="<?php the_permalink();?>">
    
    				    <h3><?php the_title();?></h3>
    
    				</article>
    			</a>
    
    			<?php
    
    			if( get_field( "demo_module" )) {
    
    			echo do_shortcode( "[modal id='post-". get_the_ID() ."' size='large' title='". get_the_title() ."']".
    
    				 "<div class='col-md-8'>"  . get_the_content() .  "<div class='demo-module'>" . "<a class='cta-button-v4' href='" . get_field( "demo_module" ) . "' target='_blank'>Download Demo Module</a>". "</div>" .  "</div>" . "<div class='col-md-4'>" . do_shortcode("[module_author]") . "</div> <div class='col-md-12'><div class='cta-module'>" . do_shortcode("[cta_module_shortcode]") . "</div></div>" .
    
    				 do_shortcode("[wpdm_package id='". get_the_ID() . "']").  "[/modal]" );
    
    			 } else {
    
    				 echo do_shortcode( "[modal id='post-". get_the_ID() ."' size='large' title='". get_the_title() ."']".
    
    	 				 "<div class='col-md-8'>"  . get_the_content() .   "</div>" . "<div class='col-md-4'>" . do_shortcode("[module_author]") . "</div> <div class='col-md-12'><div class='cta-module'>" . do_shortcode("[cta_module_shortcode]") . "</div></div>" .
    
    	 				 do_shortcode("[wpdm_package id='". get_the_ID() . "']").  "[/modal]" );
    
    			 }
    
    				 ?>
    
    		<?php
    	}
    	?>
    
    	</div>
    
    	<?php
    }
    else
    {
    	echo "No Such Modules";
    }
    ?>
    

    Trevor
    Participant

    So, to use this plugin, in WP Admin go to Settings -> Post Snippets

    Click Add New Snippet

    In the title, give it a shortcode name (must be a valid WP slug name), for example:

    my-color-link

    Check the Shortcode and PHP Code checkboxes.

    In the Snippet textarea copy and paste this:

    $livit_kategorie = get_field('Kategorie');
    $livit_barva = get_field('barva');
    $livit_url = get_site_url() . '/fotogalerie-vysledky/';
    echo '<strong><span style="color: #c62daa;">Kategorie</span></strong>: <a href="';
    echo $livit_url;
    echo '?_sfm_Kategorie=';
    echo $livit_kategorie;
    echo '">';
    echo $livit_kategorie;
    echo '</a><br /><strong><span style="color: #c62daa;">Barva</span></strong>: <a href="';
    echo $livit_url;
    echo '?_sfm_barva=';
    echo $livit_barva;
    echo '">';
    echo $livit_barva;
    echo '</a>';

    There may be errors in that 😉 as I cannot test it here.

    Now all you do is place that shortcode where you want those two lines:

    [my-color-link]


    Anonymous
    Inactive

    Hi.
    I’m purchase search & filter pro, and this is absolutely amazing.
    But i need any things.
    1-) Is possible print custom field of custom post type in results? I try this code, but dont work in results.php from template folder:

    <?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    		<div>
    			<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
    			<p><?php the_excerpt(); ?>
    			<?php
                              $post_object = get_field('pastilha_dianteira');
                              if( $post_object ): 
    
    	                  // override $post
    	                  $post = $post_object;
    	                  setup_postdata( $post ); 
    
    	                ?>
                            <?php the_field('numeracao_pastilha'); ?>
                      </div>
                      <?php wp_reset_postdata(); // IMPORTANT - reset the $post object so the rest of the page works correctly ?>
                     <?php endif; ?>
    		</div>
    		
    		<hr />
    		<?php
    	}
    	?>

    Any suggestion?

    2-) I need in results the taxonomies from that result. Example:
    TITLE OF POST – Taxonomy 1, Taxonomy 2, Taxonomy 3
    Content
    What’s code for it?

    Sorry for english.

    Cheers.

    #37037

    In reply to: Custom field empty


    Anonymous
    Inactive

    Hello Ross,

    I have one example more detail.

    global $wp_query;
    $cat_obj = $wp_query->get_queried_object();
    $catid=$cat_obj->term_id;
    if ( $query->have_posts() )
    {
    $postfounds=$query->found_posts;
    ?>
    <p> <?php echo sprintf(get_field(‘titulo_encontrados’,’product_cat_’.$catid),$postfounds); ?></p>

    Then get_field(‘titulo_encontrados’,’product_cat_’.$catid) is empty when ajax is enabled.

    Thanks for your time.

    #36817

    Anonymous
    Inactive

    Custom fields (ACF) is empty when ajax is enabled, my titles and all custom fields into loop content is empty.

    Example: get_field(‘title_name’,’product_cat_’.$idcat)

    I need help with this.

    Thanks.


    Anonymous
    Inactive

    I’ve a results.php with

    <?php
    /**
     * Search & Filter Pro 
     *
     * Sample Results Template
     * 
     * @package   Search_Filter
     * @author    Ross Morsali
     * @link      http://www.designsandcode.com/
     * @copyright 2014 Designs & Code
     * 
     * Note: these templates are not full page templates, rather 
     * just an encaspulation of the your results loop which should
     * be inserted in to other pages by using a shortcode
     * 
     * This template is an absolute base example showing you what
     * you can do, for more customisation see the WordPress docs 
     * and using template tags - 
     * 
     * http://codex.wordpress.org/Template_Tags
     *
     */
    
    /* ROSS DEV CODE START */
    //var_dump($query->posts);
    
    /* $i = 1;
    foreach($query->posts as $tpost)
    {
    	echo $i." | ".$tpost->post_title;
    	echo "<br />";
    	$i++;
    }
    echo "<hr />";
    $i = 1;
    while ($query->have_posts())
    {
    	$query->the_post();
    	echo $i." | ";
    	the_title();
    	echo "<br />";
    	$i++;
    }
    /* ROSS DEV CODE END */
    		
    
    if ( $query->have_posts() )
    {
    
    	?>
    	
    	<div class="row">
    	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    	<div class="filter-results" >
    	<div class="filter-results-page"><?php echo $query->found_posts; ?> Ergebnisse  Seite <?php echo $query->query['paged']; ?> von <?php echo $query->max_num_pages; ?></div>
    	
    	<div class="filter-results-pagination">
    	<?php sf_pagination_prev_next($query->query['paged'], $query->max_num_pages); ?>
    	<?php sf_pagination_numbers($query->query['paged'], $query->max_num_pages, " "); ?>
    
    	</div>
    	</div>
    	</div>
        </div>
        <div class="row">
    
        <?php
        
       
    
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		$post_type = get_post_type( get_the_ID() );
    	
    		?>
    
    	
    		
    		
    			
    			
    			
    				<?php 
    
    				switch ($post_type) {
    				    
    				    case 'wein': 
                            
                            echo '<div class="col-xs-12 col-sm-4 col-md-3 col-lg-3">';
    						echo '<div class="item-'.$post_type.'">'; 
    
    				        $wine_id = get_the_ID();
    				    	$term_list = wp_get_post_terms($wine_id, 'winzer', array("fields" => "names"));
    						$title = get_the_title();
    				        $permalink = get_permalink();
    				        $stock = get_field('wine-stock');
    				        $stock_text = get_field('wine-stock-text');
    				     
    
    				        if (empty($stock_text)) {
    
    				        	$stock_text = "Ausverkauft!";
    				        }
    
    				       if (!empty($stock)) {
    				         echo '<div class="wine-teaser"> <span></span><p>'.$stock_text.'</p></div>';
    				       }
    
    				        $name =  get_field('wine-name');
    				        $img_url =  get_field('wine-detail-image');
    
    				        if (empty($img_url)) {
    				        $img_url = '/wordpress/wp-content/uploads/wine_empty.png';
    				       }
    				        $year =  get_field('wine-detail-year');
    				        $sf =  get_field('wine-detail-soul-faktor');
    				        $size =  get_field('wine-detail-size');
    				        echo '<div class="item-overlay"><div class="overlay-content">'.$sf.'<br>Flasche'.$size.'</div></div>';
    				        echo '<a href="'.$permalink.'" title="'.$title.'">';
    				        //echo '<img src="'.aq_resize( $img_url, '300').'" alt="'.$title.'"></a></div>';
    				        echo '<img src="'.aq_resize( $img_url, '300').'" alt="'.$title.'"></a></div>';
    				        echo '<div class="wine-description"><h2><a href="'.$permalink.'" title="'.$title.'">'.$year.' '.$name.'</a></h2>';
    				        echo '<h3>'.$term_list[0].'</h3></div>';
    				        break;
    				    case 'winzer':
    				    	$grower_id = get_the_ID();
    				    	$term_list_country = wp_get_post_terms($grower_id, 'land', array("fields" => "names"));
    				    	$term_list_region = wp_get_post_terms($grower_id, 'anbaugebiet', array("fields" => "names"));
    				        $img_url =  get_field('winegrower-preview-image');
    				        $logo_url =  get_field('winegrower-logo');
    				        $title = get_the_title();
    				        $permalink = get_permalink();
    				 
    				        $exclusive = get_field('winegrower-exclusive');
    				        if ($exclusive == 1) {
    				        	$addexclusive = ' - Exklusiv bei Wein am Limit';
    				        } else {
    				        	$addexclusive = '';
    				        }
    				        echo '<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">';
    						echo '<div class="item-'.$post_type.'">'; 
    						
    						if (!empty($img_url)) {
    								if (!empty($logo_url)){
    								echo '<div class="logo-overlay"><img src="'.aq_resize( $logo_url, '100').'"></div>';}
    								echo '<a href="'.$permalink.'" title="'.$title.'">';
    						        //echo '<img src="'.aq_resize( $img_url, '600', '290' , true).'" alt="'.$title.'"></a></div>';
    						        echo '<img src="'.aq_resize( $img_url, '600', '290' , true).'" alt="'.$title.'"></a>';
    				        }
    				        echo '</div>';
    
    				        echo '<div class="grower-description"><h2><a href="'.$permalink.'" title="'.$title.'">'.$title.$addexclusive.'</a></h2>';
    				        echo '<h3>'.$term_list_region[0].', '.$term_list_country[0].'</h3></div>';
    				       
    				        break;
    				    
    				}
    
    		
    
    				
    
    				 ?>
    				
    			
    	
    			</div>
    
    		
    		<?php
    	}
    	?>
    
    </div>
    	<div class="row">
    	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    	<div class="filter-results" >
    	<div class="filter-results-page"><?php echo $query->found_posts; ?> Ergebnisse  Seite <?php echo $query->query['paged']; ?> von <?php echo $query->max_num_pages; ?></div>
    	
    	<div class="filter-results-pagination">
    	<?php sf_pagination_prev_next($query->query['paged'], $query->max_num_pages); ?>
    	<?php sf_pagination_numbers($query->query['paged'], $query->max_num_pages, " "); ?>
    
    	</div>
    	</div>
    	</div>
        </div>
    	
    	<?php
    }
    else
    {  
    	echo '<div class="filter-results" style="height:38px;"><div class="filter-results-page"><div class="filter-results-pagination"></div></div></div>';
    	echo '<div style="width:100%; text-align:center;min-height:400px;padding-top:100px;">Keine Produkte gefunden.</div>';
    }
    ?>

    which is workin no more after update to S&F 2.0.3 (from 1.4.2) – I’ve rebuild all caches, the site stay just empty. Any ideas on this?

    Best.

    #28577

    Anonymous
    Inactive

    Hi Ross

    Thanks for getting back to me. Actually I probably didn’t explain myself very well. All I wanted to do was return the results of some simple custom fields in the search results, which I have managed to do in my own clumsy hacking way, by using the get_field for ACF, which works great for me. But I’m having a strange issue with the search results, the post date, which I think is a standard result you would expect to see from your standard results.php template and which I have left in my ‘updated’ version is not automatically showing up – it’s really strange. If I set the CPT published date to something random like two weeks previous it shows in the results, but if I just create a new CPT it just doesn’t show up at all.

    I wonder if you have come across this issue before – I realise I should really start a new thread, and I will if there’s not a straight forward answer.

    Anyway this is my code for returning the Custom Fields with the post_date towards the end:

    while ($query->have_posts())
    {
    $query->the_post();

    ?>
    <div class=”searchresult”>

    <h2>“><?php the_title(); ?></h2>
    <?php $field = get_field(“location”, $post_id, $format_value);
    $value = get_field( “company” );

    if( $value ) {

    echo ‘<div class=”resultcompany”>’;
    echo ‘<h4 class=”resulttitle”>’ . “company” . ‘: </h3>’;
    echo ‘<h4 class=”resultvalue”> ‘ . $value . ‘</h3>’;
    echo ‘</div>’;
    }

    $field = get_field(“deadline”, $post_id, $format_value);
    $value = get_field( “location” );

    if( $value ) {

    echo ‘<div class=”resultlocation”>’;
    echo ‘<h4 class=”resulttitle”>’ . “location” . ‘: </h3>’;
    echo ‘<h4 class=”resultvalue”> ‘ . $value . ‘</h3>’;
    echo ‘</div>’;
    }

    $field = get_field(“deadline”, $post_id, $format_value);
    $value = get_field( “deadline” );

    if( $value ) {

    echo ‘<div class=”resultdeadline”>’;
    echo ‘<h4 class=”resulttitle”>’ . “deadline” . ‘: </h3>’;
    echo ‘<h4 class=”resultvalue”> ‘ . $value . ‘</h3>’;
    echo ‘</div>’;
    }
    ?>

    <p class=”resultpostdate”>Vacancy Posted: <?php the_date(); ?></p>

    </div>

    <?php
    }
    ?>

    Thanks in advance Ross!

    #8261

    Anonymous
    Inactive

    Hi again,

    No, I’m not using a custom query inside mu search.php

    My file looks like this:

    <?php
    /**
     * @package WordPress
     */
    
    get_header(); ?>
    <?php
    	$total_results = $wp_query->found_posts;
    ?>
    
    <section class="content search-results">
    	<div class="wrapper">
    
    			<?php if ( have_posts() ) : ?>
    
    			<h2><?php echo $total_results ?> Search results for:</h2>
    		<div class="query"><?php the_search_query(); ?></div>
    
    		<div class="sort-results desktop">
    			Sort results by:
    			<div class="sort-links">
    				<a href="#">Relevance</a> | <a href="#">Popularity</a> | <a href="#">Name</a> | <a href="#">Date</a>
    			</div>
    		</div>
    
    		<div class="refine-search">
    			Too many results?
    
    			<button class="refine" onclick="refineToggle();">Refine your search</button>
    
    		</div>
    		<div class="refine-options" id="refine-options">
    
    			<div class="refine-container">
    				<h2>Filter results:</h2>	
    				<?php
    					echo do_shortcode('[searchandfilter id="44"]');
    				?>
    
    				<script>
    			
    				    $('input[type="checkbox"]').after('<span></span>');
    					
    					
    				</script>
    				
    			</div>
    			
    
    			
    		</div>
    
    		<div class="sort-results smartphone">
    			Sort results by:
    			<div class="sort-links">
    				<a href="#">Relevance</a> | <a href="#">Popularity</a> | <a href="#">Name</a> | <a href="#">Date</a>
    			</div>
    		</div>
    
    		<div class="result-list">
    
    			
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    			<?php 
    					$related_video_url = get_field('wistia_url');
    					$related_video_id = end((explode('/', $related_video_url)));
    				?>
    
    			<div class="result-item">
    				<div class="video-thumb">
    
    					<span class="likes">
    						<?php $post_like_count = get_post_meta( $post->ID, "_post_like_count", true ); // post like count
    									if($post_like_count != '0'){
    									echo $post_like_count;
    									}
    								?>
    						<svg x="0px" y="0px"
    		 viewBox="0 0 15 14.4" enable-background="new 0 0 15 14.4" xml:space="preserve">
    	<path id="favorite-3-icon_4_" fill="#ffffff" d="M7.5,14.4C2,9,0.4,7,0.1,5c-0.4-2.5,1.4-5,4.3-5c1.2,0,2.4,0.5,3.1,1.3
    		C8.3,0.5,9.4,0,10.6,0c2.9,0,4.7,2.5,4.3,5C14.6,7,13.2,8.9,7.5,14.4z M4.4,1.5C3.2,1.5,2.2,2,1.8,3c-1.2,2.5,1.5,5.1,5.7,9.3
    		c4.2-4.2,7-6.8,5.7-9.3c-0.5-1-1.5-1.6-2.6-1.6c-1.9,0-2.7,1.5-3.1,2.2C7.1,3,6.4,1.5,4.4,1.5z"/>
    	</svg>
    					</span>
    
    					<div class="image-thumb" id="wistia_thumbnail_<? echo $related_video_id ?>">
    					<div class="tag-overlay">
    						<strong>Tags:</strong><br>
    							<?php
    							echo get_the_tag_list('',', ','');
    						?>
    					</div>
    					<a class="thumb-play-overlay" href="<?php the_permalink(); ?>"></a>
    						
    					</div>
    					<div class="video-thumb-title">
    						<?php the_title(); ?>
    					</div>
    
    					<script>
    						getVideoThumbnail ('<?php echo $related_video_id ?>');
    					</script>
    
    				</div>
    				<div class="video-description">
    					<h4>Description:</h4>
    					<?php the_title(); ?>
    
    				</div>
    			</div>
    
    				<?php endwhile; else : ?>
    					<p><?php _e( 'Sorry, no pages matched your criteria.' ); ?></p>
    				<?php endif; ?>
    
    		</div>
    	</div>
    </section>		
    		
    <?php
    get_footer();
    ?>

    and my settings are like this: (screenshot)

    Settings screenshot

    Any ideas?

    #7471

    Anonymous
    Inactive
    <?php
    /**
     * Search & Filter Pro 
     *
     * Sample Results Template
     * 
     * @package   Search_Filter
     * @author    Ross Morsali
     * @link      http://www.designsandcode.com/
     * @copyright 2014 Designs & Code
     * 
     * Note: these templates are not full page templates, rather 
     * just an encaspulation of the your results loop which should
     * be inserted in to other pages by using a shortcode
     * 
     * This template is an absolute base example showing you what
     * you can do, for more customisation see the WordPress docs 
     * and using template tags - 
     * 
     * http://codex.wordpress.org/Template_Tags
     *
     */
    
    if ( $query->have_posts() )
    {
    $query->the_post();
    $myid = get_the_ID();
    	?>
    	
    	<div class="row">
    	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    	<div class="filter-results" >
    	<?php echo $query->found_posts; ?> Ergebnisse  Seite <?php echo $query->query['paged']; ?> von <?php echo $query->max_num_pages; ?>
    	
    	<div style="float:right;">
    	<?php sf_pagination_prev_next($query->query['paged'], $query->max_num_pages); ?>
    	<?php sf_pagination_numbers($query->query['paged'], $query->max_num_pages, " "); ?>
    
    	</div>
    	</div>
    	</div>
        </div>
        <div class="row">
    
        <?php
        
       
       if ($myid == '3100') {
        echo '<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">';
       
       dynamic_sidebar( 'wein' );
        echo '</div>';
      }
     
    
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		$post_type = get_post_type( get_the_ID() );
    	
    		?>
    
    	
    		
    		
    			
    			
    			
    				<?php 
    
    				switch ($post_type) {
    				    
    				    case 'wein': 
                            
                            echo '<div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">';
    						echo '<div class="item-'.$post_type.'">'; 
    				    	$wine_id = get_the_ID();
    				    	$term_list = wp_get_post_terms($wine_id, 'winzer', array("fields" => "names"));
    						$title = get_the_title();
    				        $permalink = get_permalink();
    				        $name =  get_field('wine-name');
    				        $img_url =  get_field('wine-detail-image');
    
    				        if (empty($img_url)) {
    				        $img_url = 'http://www.weinamlimit.com/wordpress/wp-content/uploads/wine_empty.png';
    				       }
    				        $year =  get_field('wine-detail-year');
    				        $sf =  get_field('wine-detail-soul-faktor');
    				        $size =  get_field('wine-detail-size');
    				        echo '<div class="item-overlay"><div class="overlay-content">'.$sf.'<br>Flasche'.$size.'</div></div>';
    				        echo '<a href="'.$permalink.'" title="'.$title.'">';
    				        //echo '<img src="'.aq_resize( $img_url, '300').'" alt="'.$title.'"></a></div>';
    				        echo '<img src="'.aq_resize( $img_url, '300').'" ></a></div>';
    				        echo '<div class="wine-description"><h2><a href="'.$permalink.'" title="'.$title.'">'.$year.' '.$name.'</a></h2>';
    				        echo '<h3>'.$term_list[0].'</h3></div>';
    				        break;
    				    case 'winzer':
    				    	$grower_id = get_the_ID();
    				    	$term_list_country = wp_get_post_terms($grower_id, 'land', array("fields" => "names"));
    				    	$term_list_region = wp_get_post_terms($grower_id, 'anbaugebiet', array("fields" => "names"));
    				        $img_url =  get_field('winegrower-preview-image');
    				        $logo_url =  get_field('winegrower-logo');
    				        $title = get_the_title();
    				        $permalink = get_permalink();
    				        echo '<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">';
    						echo '<div class="item-'.$post_type.'">'; 
    						if (!empty($logo_url)){
    						echo '<div class="logo-overlay"><img src="'.$logo_url.'"></div>';}
    						echo '<a href="'.$permalink.'" title="'.$title.'">';
    				        //echo '<img src="'.aq_resize( $img_url, '600', '290' , true).'" alt="'.$title.'"></a></div>';
    				        echo '<img src="'.aq_resize( $img_url, '600', '290' , true).'" ></a></div>';
    				        echo '<div class="grower-description"><h2><a href="'.$permalink.'" title="'.$title.'">'.$year.' '.$title.'</a></h2>';
    				        echo '<h3>'.$term_list_region[0].', '.$term_list_country[0].'</h3></div>';
    				       
    				        break;
    				    
    				}
    
    		
    
    				
    
    				 ?>
    				
    			
    	
    			</div>
    
    		
    		<?php
    	}
    	?>
    
    </div>
    	<div class="row">
    	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
    	<div class="filter-results" >
    	<?php echo $query->found_posts; ?> Ergebnisse  Seite <?php echo $query->query['paged']; ?> von <?php echo $query->max_num_pages; ?>
    	
    	<div style="float:right;">
    	<?php sf_pagination_prev_next($query->query['paged'], $query->max_num_pages); ?>
    	<?php sf_pagination_numbers($query->query['paged'], $query->max_num_pages, " "); ?>
    
    	</div>
    	</div>
    	</div>
        </div>
    	
    	<?php
    }
    else
    {
    	echo "No Results Found";
    }
    ?>
    

    This is my results item, should be right?

Viewing 10 results - 81 through 90 (of 90 total)