Forums Forums Search Search Results for 'filter style'

Viewing 10 results - 251 through 260 (of 496 total)
  • Author
    Search Results
  • #148405

    Anonymous
    Inactive

    Here’s the current code for all-tips page.
    I didn’t need to use the linked article you gave me, the issue was I had it in the wrong place + message was not showing if the classes were in the settings.

    <?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
     *
     */
    
    if ( $query->have_posts() )
    {
    	?>
    	
    	<div class='search-filter-results-list'>
    	<?php
    		while ($query->have_posts())
    		{
    			$query->the_post();
    			
    			if (!rcp_user_can_access( get_current_user_id(), get_the_ID())) {         
    				break;
    			}
    			
                ?>
                <a name="tip<?php the_ID() ?>"></a>
    			<div class='search-filter-result-item'>
                <div class="reportEntryMeta">
    		    		<p><span class="date"><?php the_time('F j'); ?></span></p>
    		    </div>
                <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>	
    				<p><br /><?php the_content( ); ?></p>
    					<?php if( have_rows('read_more') ): ?>
    						</br></br><strong>Read More</strong></br>
    						<ul class="links">
    						<?php while( have_rows('read_more') ): the_row(); 
    							// vars
    							$linktitle = get_sub_field('link_title');
    							$linkname = get_sub_field('link_name');
    							$link = get_sub_field('link');
    							?>
    							<li class="link">
    								<strong><?php echo $linktitle ?> </strong><a href="<?php echo $link ?>"><?php echo $linkname ?></a>
    							</li>
    						<?php endwhile; ?>
    						</ul>
    					<?php endif; ?>
    				<?php 
    					if ( has_post_thumbnail() ) {
    						echo '<p>';
    						the_post_thumbnail("small");
    						echo '</p>';
    					}
    				?>
    				<p><?php the_category(); ?></p>
    				<p><?php the_tags(); ?></p>
    				<p><small><?php the_date(); ?></small></p>
    				
    				<hr />
    			</div>
    			
    			<?php
    		}
    
    	?>
    	</div>
    <?php
    }
    else
    {
    	if (!rcp_is_active()) {            ?>
    		<h2 style="text-align: center;">Want more Tip Sheets?</h2>
    		<p style="text-align: center;">Sign up for Trivium Premium and get access to the full Tip Sheet Archive</p>
    		<p style="text-align: center;"><strong><a href="http://wordpress-126708-362887.cloudwaysapps.com/get-access/" target="_blank" rel="noopener">Sign Up</a></strong></p>
    		<p style="text-align: center;">Already have an account? <a href="http://wordpress-126708-362887.cloudwaysapps.com/login" target="_blank" rel="noopener">Log In</a>.</p>
    		&nbsp;
    	<?php 
    	}
    
    	?>
    	<div class='search-filter-results-list' data-search-filter-action='infinite-scroll-end'>
    		<span>End of Results</span>
    	</div>
    	<?php
    }
    ?>
    #147205

    Trevor
    Participant

    I believe that this will become a lot easier in the next major release of our plugin, V3, due in 2018 (no ETA yet), and for now it does require some PHP coding. This thread discusses much the same issue:

    https://support.searchandfilter.com/forums/topic/how-to-style-the-search-data/

    One gotcha is that the terms come from an array (where if there is only one term, that is term 0 – as arrays start at 0 and not 1). If you have multiple terms you have to run through a loop to fetch them all.

    #146577

    In reply to: Taxonomy Breadcrumbs


    Trevor
    Participant

    It IS possible. It will be very much easier in V3 of our plugin, which we are currently coding for release next year.

    For now you would have to do some coding, and that would involve editing the PHP template file used for your results page. Which file that is depends on the Display results method you choose to use in our form settings.

    This thread from last year (the hidden posts are not relevant) discusses the same thing:

    https://support.searchandfilter.com/forums/topic/how-to-style-the-search-data/page/2/

    This post (not the thread, just the post) shows you how to look at the array of search filter values being used:

    https://support.searchandfilter.com/forums/topic/how-do-i-get-the-form-fieldvalues/

    #145613

    Anonymous
    Inactive

    Hi I got one more question here

    May I know how to change the font size and style of the filter

    as you can see here http://gowatch.asia/site1/?sfid=684

    the font are all bold and the size is very big, can I costume it ?

    Thanks a lot !

    #145393

    Anonymous
    Inactive

    Hey there,

    First time user today, so far it’s working well. I just need to style the results page. I have chosen to have posts filtered by category, however the output is not very nice.

    I have a few screenshots of the ideal set-up, but I cannot find any clear instructions in the docs on how to achieve something like this.

    Do you have any resources I can utilise or any assistance would be appreciated.

    Thank you.

    George

    My site can be found at: http://staging.wise-love.flywheelsites.com/browse/
    To view please use:
    Username: flywheel
    Password: apathetic-stew

    Inspiration: https://vossy.com/boutique-hotels/london-24178279
    My idea: https://imgur.com/a/Jt4c1
    Current display: http://staging.wise-love.flywheelsites.com/browse/?_sft_category=rugby-sevens (i will be removing the shortcode soon)

    #144839

    In reply to: search results


    Trevor
    Participant

    We do not have a guide on how to do that, but our documentation is here:

    https://www.designsandcode.com/documentation/search-filter-pro/getting-started/

    Are you able to send me a live link/URL to your search page so I can take a look?

    What theme are you using, and are you using a page builder to make/design/style the grid/list of results?


    Trevor
    Participant

    The style of the results depends on the Display method you use (as you say, you are using the Shortcode one right now). You would need to cutomise the results.php file, using php snippets from the WordPress Codex and other resources. Start here though:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    There is, for example, a free addon for Search & Filter pro for Visual Composer/Page Builder, which means you can use their Post grid element and then use their tools to style it. See this post:

    https://support.searchandfilter.com/forums/topic/can-we-change-template-desing/#post-136727

    #144189

    Anonymous
    Inactive

    Hi,

    Nice plugin. Just bought it.
    Only normally search results are shown in a grid and now more in a blog style.

    I am not good with hooks and actions, maybe you have a suggestion.

    This is now in m childtheme to see the results in a grid:
    (only not working with your plugin)

    function my_the_loop_args( $args ) {

    if ( is_search() ) {
    $args[‘context’] = ‘grid’;
    $args[‘class’] = ‘archive-loop’;
    }

    return $args;
    }
    add_filter(‘themeblvd_the_loop_args’, ‘my_the_loop_args’);

    Thanks.

    #144137

    Anonymous
    Inactive

    Hello,
    I have a client who has many categories, but has limited each category into it’s own shortcode to appear on specific pages.

    Is there a way with the dropdown or radio category filter to have the default category selected instead of all categories?

    Example screenshot:
    https://exclusiveimage.net/wp-content/uploads/2017/11/CAFS_radio_button_style.png

    #143424

    Trevor
    Participant

    It will require some coding skills, but it is not hard. You first need to read this page in our documentation.

    You can change the HTML, the style tags, delete stuff, add stuff in the copy of the results.php file.

    I think this is the code you need (I am not sure though):

    <?php echo wp_get_attachment_image( get_the_ID(), "thumb", "", "" );?>
    

    This is from some code I wrote I while ago, here is a sub sample of the whole thing:

    while ($query->have_posts()) {
      $query->the_post();
      $gallery_link_url = get_post_meta( attachment_url_to_postid(wp_get_attachment_image_url( get_the_ID(), "full", false )), $key = '_gallery_link_url', $single = true);
      if ($gallery_link_url == "") $gallery_link_url = "#";
      ?>
      <div>
        <h2><a href="<?php echo $gallery_link_url; ?>" target="_blank"><?php the_title(); ?></a></h2>
        <a href="<?php echo $gallery_link_url; ?>" target="_blank">
      <?php 
        echo '<span class="responsive">';
        echo wp_get_attachment_image( get_the_ID(), "thumb", "", "" );
        echo '</span>';
      ?>
      </a>
    		</div>
Viewing 10 results - 251 through 260 (of 496 total)