Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 611 through 620 (of 1,224 total)
  • Author
    Search Results
  • #142857

    Trevor
    Participant

    OK, I see what you mean on the grey tag links. You have made them as URLs. Instead you need to make them run a javascript and that javascript should set the required value in the tag field of the search field, and then submit the form (if it does not auto submit).

    The do_shortcode() that you use, you say that is inside the results.php file. Can you paste the contents of the results.php template file here; please place one code back ticks before and one after the code (the angled quote mark on the key to the left of the main keyboard ‘1’ key)?

    #142796

    Anonymous
    Inactive

    Thanks Trevor, first I know football on search form, works.
    I’d like to ajax reload if you click #football on results, grey colored.

    Second the star rating is part of a plugin yes. I do a do_shortcode() to triggered on results.php, how can I do it?

    th


    Trevor
    Participant

    Hi

    If you have not yet customised the results.php (as described here), then the code in this post will do the empty results set for you:

    https://support.searchandfilter.com/forums/topic/force-selection/#post-87657

    I will login and look right now. I will be back.

    #141606

    Trevor
    Participant

    Can you paste the contents of the results.php template file here; please use code back ticks before and after the code (the angled quote mark on the key to the left of the main keyboard ‘1’ key)?

    #139982

    Anonymous
    Inactive

    Hello, since days I am trying customising the results page, but don’t understand how to modify the php file in order to get the result I want. Is it possible to get some help here, or at least an advice about where to learn it?

    At this link the page: http://biancoprova.altervista.org/cerca-carrello-elevatore-usato/

    And at this link how the results should look: http://www.sycarr.it/en/risultati/i/NWg1SmxtTVFTQU85RDBJVEovZ3VBMzBUWVJ6NXFTWWQ3S05YTnZvb1BGcjNsWnowdWtXdDBtK3pJTlVvYTZqQWtDMWlMYU5OOTZUeWV0MEhKUVlWa1gwdGdkcGJ1bUdvRjR4QWlvdnJBa2JpOTNKeDJteWtGY2l1cDBjblZodHQ-

    PS Thank Trevor for the help with the search form, as you can see your help worked great!

    Thanks!
    Mattia

    #139694

    Anonymous
    Inactive

    Hi Trevor,

    Thanks to your amazing help, I was able to also make something like this work with that maps plugin you mention above.

    Here’s the maps code I placed on the results.php page in my child theme (the ACF field for the map ID is called “hotel_map_id”):

    <?php
    $map_sc_text='[wpgmza id=”5″ mashup=true mashup_ids=”‘;

    while ($query->have_posts())
    {
    $query->the_post();

    ?>
    <div>
    <h2>“><?php the_title(); ?></h2>

    <p><br /><?php the_excerpt(); ?> </p>
    <?php
    if ( has_post_thumbnail() ) {
    echo ‘<p>’;
    the_post_thumbnail(“small”);
    echo ‘</p>’;
    }
    ?>
    <p><?php the_category(); ?></p>
    <p><?php the_tags(); ?></p>

    </div>

    <hr />
    <?php

    $map_sc_text.=get_field(‘hotel_map_id’).’,’;
    }

    $map_sc_text.='” parent_id=”5″]’;
    do_shortcode($map_sc_text);

    ?>

    However, even though the functionality is perfect, I now get this error (only on the search and results page, not the whole site):

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/wp-google-maps-pro/wp-google-maps-pro.php on line 3570.

    Did you by any chance come across this issue when you were doing this? If so, how did you fix it?

    Thank you so so much!

    Maria

    #139636

    Trevor
    Participant

    The answers are yes and no, with caveats. The first depends on the Display result method that you are using, as that determines where the template being used comes from. If you are using the Shortcode method for displaying results, then that would be using the results.php template provided with our plugin.

    That can be modified using standard WordPress Codex functions to fetch the data you want. As to formatting that into a table, you would need to add HTML and CSS classes/IDs around the code to make it look as you wish.

    #139004

    Anonymous
    Inactive

    The grid results.php on the forum should work; I can tinker with it probably Monday.
    best,
    Jenny.

    #138880

    Trevor
    Participant

    Ah, OK. Can you send me a link to a page that already has a grid in you theme, or would the grid results.php that Jenny had already found (on our forum, one that I made for Genesis for a different user) not suit/work?

    #138032

    In reply to: Tags to include


    Anonymous
    Inactive

    Hi Trevor!

    I only have 6 pieces of test content that I am filtering on, so I doubt I’m maxing anything out. I’m working on this locally, so I’m not sure if the littlebizzy plugin is going to give you anything useful, but let me know if I should do that anyway.

    One thing I suspect it might be: I am using the shortcode method to display results, using a customized results.php template. Do I need to update that results template code to implement the tag filtering? (If so, do you happen to have any sample code that might help me get started?) The search filters at the top seem to be filtering properly for the tag that I chose, which corroborates my suspicion.

    thank you so much!

Viewing 10 results - 611 through 620 (of 1,224 total)