Support Forums

Looking for support? You can access the support system via your account.

Juliana Ruiz

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Juliana Ruiz in reply to:
    Search results questions
    #250734

    But I use that plugin to sort my categories in alphabetical order on the blog page, unless you know a different way? https://hceg.org/blog/

    Juliana Ruiz in reply to:
    Search results questions
    #250730

    Did not work 🙁 I tried to sort by both name and slug, also cleared the caches. Did not work.

    Juliana Ruiz in reply to:
    Search results questions
    #250548

    Hi Trevor thank you for the help- I tried adding the code to the top and replacing and it did not sort the tags alpahbetically. Where I am trying to accomplish this is the left side “Tags” filter on the resources page (https://hceg.org/resources/) before and after filtering.

    Here is the current code I updated on the search-filter/results.php file

    <?php
    /**
    * Search & Filter Pro
    *
    * Sample Results Template
    *
    * @package Search_Filter
    * @author Ross Morsali
    * @link https://searchandfilter.com
    * @copyright 2018 Search & Filter
    *
    * Note: these templates are not full page templates, rather
    * just an encaspulation of the your results loop which should
    * be inserted in to other pages by using a shortcode – think
    * of it as a template part
    *
    * This template is an absolute base example showing you what
    * you can do, for more customisation see the WordPress docs
    * and using template tags –
    *
    * http://codex.wordpress.org/Template_Tags
    *
    */

    function compare_tags_naturally($a, $b) {
    return strnatcmp($a->name, $b->name);
    }
    if ( $query->have_posts() )
    {
    ?>

    <div style=”text-align: right”>
    <?php global $searchandfilter;
    $sf_current_query = $searchandfilter->get(13622)->current_query();
    if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()==””)) { } else { ?>
    Found <?php echo $query->found_posts; ?> Results,
    <?php } ?>
    Page <?php echo $query->query[‘paged’]; ?> of <?php echo $query->max_num_pages; ?></div>

    <div class=”pagination”>

    <div class=”nav-previous”><?php next_posts_link( ‘Previous’, $query->max_num_pages ); ?></div>
    <div class=”nav-next”><?php previous_posts_link( ‘Next’ ); ?></div>
    <?php
    /* example code for using the wp_pagenavi plugin */
    if (function_exists(‘wp_pagenavi’))
    {
    echo “<br />”;
    wp_pagenavi( array( ‘query’ => $query ) );
    }
    ?>
    </div>

    <?php
    while ($query->have_posts())
    {
    $query->the_post();

    ?>
    <div>
    <h2>” target=”_blank” class=”read_more_link”><?php the_title(); ?></h2>

    <?php the_excerpt(); ?>
    <?php
    if ( has_post_thumbnail() ) {
    echo ‘<p>’;
    the_post_thumbnail(“small”);
    echo ‘</p>’;
    }
    ?>
    <p><?php the_category(); ?></p>
    <?php
    $unsorted_tags = get_the_tags();
    $tags = usort($unsorted_tags, ‘compare_tags_naturally’);
    ?>
    <p><?php echo implode(‘, ‘, $tags); ?></p>
    <p><small><?php the_date(); ?></small></p>

    </div>

    <hr />
    <?php
    }
    ?>
    Page <?php echo $query->query[‘paged’]; ?> of <?php echo $query->max_num_pages; ?><br />

    <div class=”pagination”>

    <div class=”nav-previous”><?php next_posts_link( ‘Previous’, $query->max_num_pages ); ?></div>
    <div class=”nav-next”><?php previous_posts_link( ‘Next’ ); ?></div>
    <?php
    /* example code for using the wp_pagenavi plugin */
    if (function_exists(‘wp_pagenavi’))
    {
    echo “<br />”;
    wp_pagenavi( array( ‘query’ => $query ) );
    }
    ?>
    </div>
    <?php
    }
    else
    {
    echo “No Results Found”;
    }
    ?>

    Juliana Ruiz in reply to:
    Search results questions
    #247736
    This reply has been marked as private.
    Juliana Ruiz in reply to:
    Search results questions
    #246684

    Also, is it possible in the settings somewhere to open up individual search results in a new tab? I want the filtered returned results to show up next to the filter, but if I select an individual post for example that comes up as part of the search results, can it open that post in a new tab? So that the original search results are still there on a different tab?

    Juliana Ruiz in reply to:
    Search results questions
    #246682
    This reply has been marked as private.
    Juliana Ruiz in reply to:
    Search results questions
    #245893

    Thank you trevor for your response. For #1 and #2, where do I put this code? am I replacing a code that already exists? I am new to coding and do not want to break it.

    #3- i do not see blank lines on the original content that the feed is displaying.

    https://hcegstage.wpengine.com/wp-content/uploads/Screen-Shot-2020-05-26-at-8.15.08-AM.png
    original post: https://hcegstage.wpengine.com/surviving-coronavirus-pandemic-thriving-on-the-other-side-rapid-innovation-telehealth/

    the same space is displaying in the search results for all of the posts/ resources it is displaying, and there are not blank lines at the beginning of the content to which i can see. could it be something with the display settings? is it trying to show an excerpt or something that is not there?

Viewing 7 posts - 1 through 7 (of 7 total)