Search Results for 'results.php'

Forums › Forums › Search › Search Results for 'results.php'

Viewing 10 results – 1,281 through 1,290 (of 1,344 total)
  • Author
    Search Results
  • #13234

    In reply to: Complex template query


    Anonymous
    Inactive

    Thanks for the reply Ross……I think the problem is that previously (before using the SP plugin or making any attempt to filter the results), I used the get_posts style of query in order to compare one of the meta keys holding a (expiration) date to the current date, and to not display results for those posts where the meta-value date had passed…..then I used a foreach loop and setup_postdata to access all the meta data. That query worked perfectly – returned results unless the date had passed. All was great until I was asked to add some live filtering of the results.

    And I did figure out (rather easily) how to use the meta data to setup the same comparison in the “advanced” setting in the SP plugin, so the SP query does weed out those posts whose meta date has passed, so all was good there – I did get the expected posts returned. The only thing was that the “results.php” file that displays the results has a custom query variable ($query->the_post) most likely using wp_query rather than get_posts, and that does not seem to work with setup_postdata – because as near as I can tell, setup_postdata only seems to work with ‘foreach’, not ‘while’ loops….and foreach seems only to work with get_posts.

    As mentioned, I’m not a coder, so there’s likely a better way to do what I’m trying to do, but it took me many, many days of research and testing to get my (old) query just right, it just wasn’t further filterable without your plugin.

    NOW I do have everything working just great, but using the ACF “get_field” and “the_field” instead of get_post_meta – formatting dates is working great too…..so really I’m a pretty happy camper today…..I just wish I was more skilled with programming, I might have found a cleaner way….

    But I really do love this plugin…..it’s very impressive. I’m off to give the free version (which I tested first) a great review on the repository and give a shout-out to the paid version, which is even better. I always do that when I find a worthy plugin. 🙂

    #13199

    Anonymous
    Inactive

    Thanks for the help.

    I’m actually trying to uses a portfolio template from the Avada theme to display my results. Unfortunately it doesn’t seem to be working.

    I have coped the ‘results.php’ file over the correct way.

    I’m asking it to display as shortcode on the same page. I have also used the code from’portfolio-three-column.php’ avada template and transferred that to the newly created results.php fle.

    However when going back to my site and clicking to search for an item nothing happens.

    I would just like to display the results as the themes template would normally.

    Please help. I’m truly stuck!

    #13183

    In reply to: Complex template query


    Anonymous
    Inactive

    Making some progress, but still having trouble.

    I did finally get the custom results template to work – I misunderstood the instructions and didn’t realize that the custom results template MUST stay named ‘results.php’ – unlike when one creates custom template files by post type (e.g. single-something.php).

    However while it does display the results in the correct format, the meta data is not showing up – previously in my custom loop I had to use a custom query (get_posts) to isolate the custom post type and use some of the meta data in the query, then used

    foreach ( $myposts as $post ) : setup_postdata( $post );

    Followed by my custom meta data variable definitions, which I could then use in structuring the format.

    Since I cannot use my custom query, the ‘loop’ is ignoring my meta data variables. How can I incorporate my custom fields if I cannot write the query for the loop?


    Ross
    Keymaster

    No problem – if you want to customise the results.php check the docs here – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax

    Thanks


    Anonymous
    Inactive

    Nevermind. Found the results.php page.

    Thanks again!!!

    #12807

    Anonymous
    Inactive

    Hi,

    I’d like to know if there is a way where I can use a filter to change what shows up in the results.php.

    I have a list of resources. Some resources are in English and others are in Gaelic. I have set an option on the user profiles to select one of the languages for the preferred content to be listed. On each of the content items there is also a language select option.

    What I’m wanting to do is use a filter to say if the users has selected english then only show the english content items.

    Thank you.

    #12559

    Anonymous
    Inactive

    Is there a way to display results in groups by category or by tag? I’m using shortcode with custom results.php.
    Thanks!

    #12300

    Anonymous
    Inactive

    Hi,

    In search-filter-pro/templates/results.php I commented out <br />

    <p><!–<br />–><?php the_content(); ?><p>

    It was annoying me.
    Is this OK to do?
    Thanks!

    #12288

    Anonymous
    Inactive

    Hello,

    I use Search&Filter for some custom taxonomies, created with “User Tags” plugin (https://wordpress.org/plugins/user-tags/)

    This plugin adds custom USER taxonomies. So the admin can add tags for users.

    The taxonomies and the tags are correctly displayed in the search form (also the numbering for each term is correct = the number of users that are assigned a specific tag), but no search results are displayed no matter what I choose in the form.

    I tried using both a shortcode in a page and also copying the results.php template from the Search&Filter plugin to the search-filter folder in my theme’s folder.

    I use a theme from YITH (Your Inspiration Themes), if that has anything to do with it…

    But I think there are 2 issues:

    1) The Search&Filter plugin doesn’t include users in its searches.
    I say this based on the choices I can make in the “General” section, when creating a search form. There are only available: Posts, Pages, Media, Products and a few other custom post types my theme added, but no users. 🙁

    To clarify something: the users I need to display are not authors, they are vendors (a user role created by another plugin I use, that allows me to create a marketplace environment).

    2) It might also be there some problem with the User Tags plugin itself, because this plugin also associates each tag with a template, listing all users that have that tag added in their profile.

    Please note that when using the free version of Search&Filter with User Tags search results are displayed, but only for the first field chosen, ignoring the other fields chosen after it (probably because of the way the “User Tags” plugin creates templates for each tag). But at least there were some results displaying.

    I really hope we will find a solution for this issue because the search results are very important for our site. Without them correctly displaying, the complex system we have worked to set up and all our efforts in building our site are practically in vain… 🙁

    Also, your plugin is very cool and we hope to be able to use it on our site. 🙂

    Thank you.

    #11709

    Ross
    Keymaster

    Hey Scott

    You can customise the results.php instead of hacking – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/#docs-new-ajax 🙂

    Also, I just added some new info the FAQs which I believe covers off some issues you were originally having, check the last question – http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/

    Glad it is up and running for you now.

    Thanks

Viewing 10 results – 1,281 through 1,290 (of 1,344 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.