Support Forums

The forums are closed and will be removed when we launch our new site.

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

Matthew Pollard

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Matthew Pollard in reply to:
    Search isn’t showing any results?
    #230521

    Hi,

    OK, I now understand that I need to use the Relevanssi to search by author. I have:

    1) enabled relevanssi on the advanced tab.
    2) I have ticked ‘Use custom fields for excerpts’ on relevannsi’s ‘excerpts & highlights’ tab
    3) On the indexing tab (in relevanssi’s settings) I have done the following:

    – ticked post type as ‘journal’
    – custom fields are set as ‘some’
    – I have entered ‘Author display names’ as the custom field.

    Is ‘Author display names’ incorrect for the custom field? As it still isn’t displaying any authors when searched. Thanks for your time!

    Matthew Pollard in reply to:
    Results are not displaying
    #226323

    Thanks, Trevor, it’s working now. Have a good evening!

    Matthew Pollard in reply to:
    Results are not displaying
    #226275

    OK. Thanks for the response.

    Matthew Pollard in reply to:
    Results are not displaying
    #226223
    This reply has been marked as private.
    Matthew Pollard in reply to:
    Results are not displaying
    #226209

    Hi Trevor,

    Thanks for the reply.

    OK. So I’m using a custom post type called ‘journal’. I would like to filter the archive page for this. The archive-journal.php file is below.

    If it’s useful to speak with me, I’m in the UK

    Thank you very much for your time, & have a good week.

    Archive-journal.php:

    <?php get_header(); ?>
    
    <div class="container">
    
      <?php echo do_shortcode('[searchandfilter id="1928"]'); ?>
    
    <div class="journal-desktop-tables-gvs">
      <div class="row  journal-columns-gvs-row">
            <div class="col-xl-1 col-lg-3 col-md-3  d-none d-xl-block col-sm-3 col-xs-3 journal-columns-gvs-title">
      <!-- url -->
    <b>Link </b>
      </div>
    
      <div class="col-xl-3 d-none d-xl-block col-lg-6 col-md-6  col-sm-6 col-xs-6 journal-columns-gvs-title">
      <!-- title -->
      <b> Title </b>
      </div>
    
      <div class="col-xl-2 d-none d-xl-block col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs-title">
      <!-- name -->
      <b> Author </b>
      </div>
    
      <div class="col-xl-1  d-none d-xl-block journal-columns-gvs-title journal-small-screen-hide">
      <!-- volume -->
      <b> Volume</b>
      </div>
    
      <div class="col-xl-1 d-none d-xl-block journal-columns-gvs-title journal-small-screen-hide">
      <!-- part -->
        <b> Part </b>
      </div>
    
      <div class="col-xl-1  d-none d-xl-block journal-columns-gvs-title journal-small-screen-hide">
      <!-- month -->
      <b> Month </b>
      </div>
    
      <div class="col-xl-1 d-none d-xl-block  journal-columns-gvs-title journal-small-screen-hide">
      <!-- year -->
        <b> Year </b>
      </div>
    
      <div class="col-xl-2  d-none d-xl-block journal-columns-gvs-title journal-small-screen-hide">
      <!-- keywords/tags -->
      <b> Keywords/Tags </b>
      </div>
    
    </div> <!-- close row -->
    </div> <!-- close journal-desktop-tables-gvs -->
    
    <?php $c = 0; ?>
    <?php
    if ( have_posts() ) {
    	while ( have_posts() ) {
    		the_post(); $c++;
    
        $data_target_collapsable_with_hash_gvs = '#'. get_the_ID(); //data target with hash
        $data_target_collapsable_without_hash_gvs = get_the_ID();   // data id without hash
        $data_aria_labelleby_heading_gvs = 'heading' . get_the_ID(); // aria-labelledby
      //  echo  ' ID with hash:' . $data_target_collapsable_with_hash_gvs;
        //    echo  ' ID withOUT hash:' . $data_target_collapsable_without_hash_gvs;
        //    echo ' Arialabelledby:' . $data_aria_labelleby_heading_gvs;
        ?>
    
    <div class="row journal-columns-results-gvs">
    
    <div class="col-xl-1  col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs">
    <!-- url -->
    <div class="mobile-only-journal-title-gvs"> LINK </div>
    <a href="<?php echo esc_url(the_field('url_journal')); ?>">Pdf link</a>
    </div>
    
    <div class="col-xl-3 col-lg-6 col-md-6  col-sm-6 col-xs-6 journal-columns-gvs">
    <!-- title -->
    <div class="mobile-only-journal-title-gvs"> TITLE </div>
    <?php	the_title(); ?>
    </div>
    
    <div class="col-xl-2 col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs">
    <!-- name -->
    <div class="mobile-only-journal-title-gvs"> AUTHOR </div>
    <?php the_field('first_name_journal'); ?>
    <?php the_field('surname_journal'); ?>
    </div>
    
    <!-- accordian start 1 -->
    <div id="accordion">
      <div class="card">
        <div class="card-header" id="heading-<?php the_ID(); ?>">
          <h5 class="mb-0">
            <button class="btn btn-link" data-toggle="collapse" data-target="#collapse-<?php the_ID(); ?>" aria-expanded="false" aria-controls="collapse-<?php the_ID(); ?>" id="collapsetbn">
             <span class="not-collapsed-gvs"> See more information - click here </span>        <span class="collapsed-gvs"> See less information </span>
            </button>
          </h5>
        </div>
    
        <div id="collapse-<?php the_ID(); ?>" class="collapse closed" aria-labelledby="heading-<?php the_ID(); ?>" data-parent="#accordion">
          <div class="card-body">
    
    <!-- accordian end 1 -->
    
    <div class="col-xl-1 col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs ">
    <!-- volume -->
    <div class="mobile-only-journal-title-gvs"> VOLUME </div>
    <?php the_field('volume'); ?>
    </div>
    
    <div class="col-xl-1 col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs">
    <!-- part -->
    <div class="mobile-only-journal-title-gvs"> PART </div>
    <?php the_field('part_journal'); ?>
    </div>
    
    <div class="col-xl-1 col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs">
    <!-- month -->
    <div class="mobile-only-journal-title-gvs"> MONTH </div>
    <?php the_field('month_journal'); ?>
    </div>
    
    <div class="col-xl-1  col-lg-4 col-md-4 col-sm-4 col-xs-4 journal-columns-gvs">
    <!-- year -->
    <div class="mobile-only-journal-title-gvs"> YEAR </div>
    <?php the_field('year_journal'); ?>
    </div>
    
    <div class="col-xl-2  col-lg-6 col-md-6 col-sm-6 col-xs-6 journal-columns-gvs">
    <!-- keywords/tags -->
    <div class="mobile-only-journal-title-gvs"> KEYWORD TAGS </div>
    
    <div class="desktop-only-journal-content-gvs">
    <?php $post_tags = get_the_tags();
    
    if ( $post_tags ) {
        foreach( $post_tags as $tag ) {
        echo $tag->name . ', ';
        }
    } ?>
    </div>
    
    </div>
    
    <!-- accordian end 2 -->
    </div>
    </div>
    </div>
    </div> <!-- close #accordion -->
    
    <!-- accordian end 2 -->
    
      <div class="col-xl-1 col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs desk-only ">
      <!-- volume -->
      <div class="mobile-only-journal-title-gvs"> VOLUME </div>
      <?php the_field('volume'); ?>
      </div>
    
      <div class="col-xl-1 col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs desk-only ">
      <!-- part -->
      <div class="mobile-only-journal-title-gvs"> PART </div>
      <?php the_field('part_journal'); ?>
      </div>
    
      <div class="col-xl-1 col-lg-3 col-md-3  col-sm-3 col-xs-3 journal-columns-gvs desk-only ">
      <!-- month -->
      <div class="mobile-only-journal-title-gvs"> MONTH </div>
      <?php the_field('month_journal'); ?>
      </div>
    
      <div class="col-xl-1  col-lg-4 col-md-4 col-sm-4 col-xs-4 journal-columns-gvs desk-only ">
      <!-- year -->
      <div class="mobile-only-journal-title-gvs"> YEAR </div>
      <?php the_field('year_journal'); ?>
      </div>
    
      <div class="col-xl-2  col-lg-6 col-md-6 col-sm-6 col-xs-6 journal-columns-gvs desk-only ">
      <!-- keywords/tags -->
      <div class="mobile-only-journal-title-gvs"> KEYWORD TAGS </div>
    
      <div class="desktop-only-journal-content-gvs">
      <?php $post_tags = get_the_tags();
    
      if ( $post_tags ) {
          foreach( $post_tags as $tag ) {
          echo $tag->name . ', ';
          }
      } ?>
      </div>
    
      </div>
    
    </div> <!-- close row -->
    
      <?php } // end while
    } // end if
    ?>
    
    <!-- accordion end -->
    
    </div> <!-- close container -->
    
    <?php get_footer(); ?>
    
    
Viewing 5 posts - 1 through 5 (of 5 total)