Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 1,191 through 1,200 (of 1,224 total)
  • Author
    Search Results
  • #6997

    Ross
    Keymaster

    Hey Manas

    Just had a look.

    The two problems you are experiencing are not to do with the plugin directly. I’ll answer below:

    1. Display: the display of search results is not showing up as a grid. This is the blog page: beta.trycompass.cf/mentors, which does show up as a grid. I have added custom css to make it show as a grid, in case that matters. (I changed the theme again).

    Customising your search results layout is out of scope of support for the plugin (I cannot setup everyones themes for them) however I will point you in the right direction. You must follow the instructions here:
    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax
    You must copy the template from Search & Filter plugin folder, to your theme, then you can modify results.php to display as a grid.

    2. The search results show up only for admins. If you sign in with the admin credentials above, the search results show up properly (though not in a grid.) But if you sign in as an ordinary user, the front page shows up instead, which is really weird.

    The plugin does not do anything to do with showing/hiding results as an admin, however this is a problem I have come across with Ajax in general and WordPress sites I have developed. Basically, the correct way to use Ajax with WP (in general) is to use this url: www.yoursite.com/wp-admin/admin-ajax.php – which this plugin uses – however some WP filters etc consider this an admin page.

    Do you have any custom scripts/plugins/filters which restrict access to the admin pages? I think they are being too greedy and “protecting” the WP Ajax url – which they should not.

    Hope that helps!

    Thanks
    Ross

    #6911

    Anonymous
    Inactive

    Hello there,

    I recently bought the PRO version and I’m almost there to the final implementation.

    Thing is,
    I want my results page layouted as my originally templated page from theme was.

    I got the ideia behind implementing it all trough a child folder and setting results.php.
    I also got the code from my theme template php file.
    Now I only have to merge those two together, but I’m having php difficulties…

    Can you guys help me out? I think with little tweaking I can layout the Search & Filter results page.

    Thanks a lot guys,
    Btw using Theme X.


    Anonymous
    Inactive

    Hi there,

    Same problem as mentioned above. I have found it impossible to get the php shortcodes to work on the same page with Ajax using the new Ajax system. I have used both search.php and …search-filter/results.php

    Please reply as soon as possible. This is urgent. This a company website.

    Thanks in advance.

    #6356

    Ross
    Keymaster

    Hey Tim I think I’m following you and in that case yes I think you’re right.

    Just to note, you can different results templates.

    Instead of having results.php you could have 18.php where the filename matches the ID of the search and filter widget – not sure if that helps you?

    Thanks

    #6255

    Anonymous
    Inactive

    That’s not what I want to do. But it should work if I made custom WP templates for each category that do not have the the loop to show post results and then use the shortcodes and modify the results.php to get the formatting I want, yes?

    #6251

    Ross
    Keymaster

    Hey again Tim

    You shouldn’t be placing the plugin and results ON a category page, it should have its own unique page.

    So do as I have – with the test page:

    http://www.yogabasics.com/yoga-poses-test/

    Now you do not get duplicates, but no the layout you want.

    The plugin comes with 1 default way of displaying results (this is the results template)

    What we need to do is modify the code from the results template to look the same as in your other layout – so we need to copy over some html.

    Before we do that though, can you follow the instructions at this link:

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax

    And copy over the results.php file to the correct location within your theme folder?

    Then I can help with the modification you want.

    Thanks

    #6101

    Ross
    Keymaster

    Hey Marjan

    I made a little test (link in next message)

    I think this is what you are after??

    To make customisations to the results, edit the file – wp-content/themes/theme-name/search-filter/results.php

    But I think this almost looks right?

    I’ll explain what I did (I am not familiar with ultimatum theme):

    1. Create a new page
    2. Create a page template just for this page in your theme folder (search-page.php)
    3. Set the page template of this page to the new one “S&F Search Page” (http://codex.wordpress.org/Page_Templates#Custom_Page_Template)
    4. Load a regular page (to get the styling), and view html source
    5. Copy over the basic structure of this page – just the main content area and sidebar in to the custom page template
    6. Then add the two shortcodes
      • in the main content area I added [searchandfilter id="949" show="results"]
      • in the sidebar area I added [searchandfilter id="949"]

    Then basically the page is done! I don’t know if there is a better way to do it using Ultimatum I haven’t used it before.

    So now you can edit the layout of the results – but it looks very close to the original!

    🙂

    #5915

    Anonymous
    Inactive

    Ok, I changed the theme to something else, but the new theme supports a grid layout as well. In other words, the “posts” section, i.e. the blog section of the website will be displayed as a grid.

    This is how I want the search results filtered by the plugin to display as well.

    I figured out how to copy the results.php file into the theme folder, but nothing is happening, the results display the same way as before.

    I get the feeling I’m missing something important here, but all the posts relating to customization of display predate the Ajax changes, so can’t get much help there!

    Please help, thanks!


    Anonymous
    Inactive

    I need only to show results from pages they use a specific template (my-template.php). How i must change the query inside results.php?

    #5876

    Anonymous
    Inactive

    I saw this in the support documentation:

    If you wish to customise the display of your results, a template file is included in the Search & Filter folder.

    1) Create a folder in your theme folder called search-filter.

    2) Copy the file wp-content\plugins\search-filter\templates\results.php from the templates folder in to your newly created folder wp-content\themes\your-theme-name-\search-filter\results.php

    Search & Filter will now use this template to display your results 🙂

    But I can’t seem to get this working…

    If I unzip my theme folder, add a folder called search-filter, and put the results.php in it, and then zip it again, it’s not installing at all when I upload the theme on to wordpress.

Viewing 10 results - 1,191 through 1,200 (of 1,224 total)