Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:19:32+00:00 2026-05-27T23:19:32+00:00

Pagination link not working on expression engine exp:search results.Page does not display the new

  • 0

Pagination link not working on expression engine exp:search results.Page does not display the new result when pagination link is clicked.

 {exp:search:total_results}</b>Result(s) for <b>{exp:search:keywords} 
      {exp:search:search_results entry_id={entry_id}  
        switch="#000000|#003300"  status="Open" 
        dynamic="off"  orderby="date" sort="desc"} 

    {exp:search:search_results switch="resultRowOne|resultRowTwo" paginate="bottom"    limit="2"}

        <?php $articlePath = "article";?>
        {related_entries id="article_feature"}

          {if title == "Bay Blog"}<?php $articlePath = "blog";?>  
        {/related_entries} 

          <b><a href="{title_permalink="/blog/"}">{title}</a></b> from <em>{related_entries id="article_feature"}{title} {/related_entries}</em><br/>
          {if:else}

          <b><a href="{title_permalink="/article/"}">{title}</a></b> from <em>{related_entries id="article_feature"}{title} {/related_entries}</em><br/>
          {/if}     

          {exp:trunchtml chars="250" inline="..."}
                  {article_body}
           {/exp:trunchtml}
           {related_entries id="article_issue"}
            <a href="/issue/{entry_id}"> [ {title}] </a> {/related_entries}
            <br><br>
          {if no_results}
            Sorry!, Search result found!
        {/if} 
   {/exp:search:search_results}
{paginate}
        <div class='paginate'>
            <span class='pagecount'>{page_count}</span>&nbsp;
        </div>
{paginate} 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:19:33+00:00Added an answer on May 27, 2026 at 11:19 pm

    When returning search results, use the auto_path variable when building your URLs:

    <a href="{auto_path}">{title}</a>
    

    Unlike other path variables, this variable does not require the Template Group and Template Name to be specified.

    Instead, the path will automatically be determined by the Search Results URL setting for the channel in Channel Management.

    Admin > Channel Administration > Channels > Preferences:

    General Channel Preferences


    If you’re using ExpressionEngine’s Pages Module or Structure to create static pages, the following use case may be of help to you as well:

    {if page_url == ""}
        // If the Search Result is a Dynamic Page
        <a href="{auto_path}">{title}</a>
    {/if}
    
    {if page_url != ""}
        // If the Search Result is a Static Page
        <a href="{page_url}">{title}</a>
    {/if}
    

    You can also test to see what channel the search result is being fetched from and act on it conditionally:

    {if channel_name == "about"}
        <a href="{page_url}">{title}</a>
    {if:else}
        <a href="{auto_path}">{title}</a>
    {/if}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I search a pagination script/class/helper in PHP for an Array of data, not for
I'm using a pagination method for displaying search results returned from my database. I'm
Hey, I want to add a button(link), that when clicked will filter the pagination
I've got a fairly simple pagination algorithm here but it's not working the way
I'm trying to do query result pagination with hibernate and displaytag, and Hibernate DetachedCriteria
Cakephp 2.0 Pagination issue. How to pass arguments in pagination link? I passed the
So I've set up a pagination system similar to Twitter's where where 20 results
Currently working on something which uses ajax for some pagination. What I'm looking to
I have a mod rewrite rule for pagination of my content: RewriteRule ^content/page/([^/]*)$ /index.php?page=$1
I use of codeigniter and class (library) pagination in it, why not set in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.