Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 981 through 990 (of 1,224 total)
  • Author
    Search Results

  • Anonymous
    Inactive

    Currently I am displaying my results in a list format and want each item to link to its file URL, but it currently links to the file attachment page. I have spent a long time searching for solutions but nothing.

    Here is the code I am working with in results.php:

    <div class="results">
    	<?php
    	while ($query->have_posts())
    	{
    		$query->the_post();
    		
    		?>
    					
    			<div class="thumbs">
    				
    			 <a href="<?php the_permalink(); ?>">• <?php the_title(); ?></a>
    		
    		<?php
    	}
    	?>
    	</div>
    	</div>
    #50970

    Anonymous
    Inactive

    I am using this plugin to display media on my website. I have separate pages for photos and documents. I have the photos page working well and manipulated results.php to display thumbnails that link to attachment pages. These thumbnails are displayed in a grid.

    I would like to have the documents page utilize a new template, a list rather than a grid. This can be done in the results.php file, however if I make any changes it happens in the photos page as well. Thank you!


    Trevor
    Participant

    What Display Results method are you using? If you are using the Shortcode method, then you need to follow the instructions on Customising the Results (about the file results.php) found on this page of the documentation:

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

    If you are using as an archive or Post Type Archive, those strings are provided by your theme.

    #50600

    In reply to: Style not being applie


    Anonymous
    Inactive

    Sorry – getting incredibly frustrated as this plugin is taking twice as long to implement as expected. I’ve copied over the results.php folder to

    wp-content\themes\divi-master\search-filter\

    and changes are also not being applied. This is my child theme.

    #49250

    Trevor
    Participant

    OK. I see. Thank you for that.

    Is the search working OK, but it is that the results don’t look right (appearance) and are missing some fields/data/media?

    If so, this can be fixed. The first step is to follow these instructions for Customising the Results (making a copy of the template results.php file):

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

    Then we will need to work together to get it to work. Skype would be easiest, if that is possible for you?

    #49171

    Trevor
    Participant

    This seems to be the function to perform pagination:

    hb_pagination_standard();

    It might need replacing with the pagination code that you might find in our example template (results.php) (in the templates folder of the plugin)?

    #49035

    In reply to: Hide tags in results


    Trevor
    Participant

    Once you have moved a copy of the results.php to the theme folder, it is easy to remove the lines for tags and categories.

    #48999

    Trevor
    Participant

    OK. Great progress made I hope you agree. The plugin that you were using, Media library assistant, seemed to be one of the issues. As soon as we changed that to the Enhanced Media Library the cache returned to normal speed and the categories and tags worked fine.

    Now you are building the results.php to meet your needs, using the example page from the theme as a guide.

    #48902

    Trevor
    Participant

    Did you read the documentation on the shortcodes method and the use of results.php in the theme folder?

    #48383

    Trevor
    Participant

    Hi, you you have URL’s for what you have, and maybe a sample page how you would like it to look?

    Did you make a custom results.php (as you show above) in your theme folder?

    (I popped back in after more than few beers 🙂 )

Viewing 10 results - 981 through 990 (of 1,224 total)