Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 1,161 through 1,170 (of 1,224 total)
  • Author
    Search Results
  • #13623

    Anonymous
    Inactive

    Hi Ross,

    Thanks! I took a look at the tutorial, and indeed my setup does follow these steps.

    I did as you asked and set up a non-ajax link here:

    http://www3.calvaryem.org/media/sermons-archive/results/page/2/?_sfm_is_this_a_sunday_school=0

    The filter seems to work fine without ajax…but comparing the source code of both, it seems like the header is all missing, which says to me that the custom results.php is indeed being used, but the custom results URL is not.

    I checked both the URL in the SF menu, as well as the shortcode in my results page, and both are correct (used copy/paste to set both, so can’t be any errors).

    Any ideas? Maybe the shortcode for some reason isn’t working?

    #13480

    In reply to: Grid


    Anonymous
    Inactive

    Thanks for your reply 🙂

    I find it quite difficult to make this grid template. Do you have a example results.php grid page that works?

    Thanks!

    #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!

Viewing 10 results - 1,161 through 1,170 (of 1,224 total)