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 6063403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:09:43+00:00 2026-05-23T09:09:43+00:00

I need help with a simple issue I’m having on a site built with

  • 0

I need help with a simple issue I’m having on a site built with ExpressionEngine 2.

I have a category which links to a “view” page using {title_permalink='product/view'}. On this page, I want to create a link to take the users “back” to the category (e.g. Back to Toys). How do I create this link?

For example, I would’ve thought this code would work:

{exp:channel:category_heading channel="project"}
    <p class="pfloatRight"><a href="#"> Back to {category_name}</a></p>
{/exp:channel:category_heading} 

But it doesn’t as ExpressionEngine doesn’t know which category the entry is in. I tried enabling related_categories_mode but it didn’t help.

Any ideas? I know this is a simple fix, I’m just not used to working with categories.

  • 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-23T09:09:43+00:00Added an answer on May 23, 2026 at 9:09 am

    If you don’t mind outputting all the categories an entry is assigned to, you can offer a link “back to a category” from your product view permalink page.

    Put the following code within your exp:channel:entries tag loop:

    <p class="pfloatRight">
        Back to
        {categories backspace="2"}
            <a href="{path="product/index"}">{category_name}</a>,
        {/categories}
    </p>
    

    Which would output something like:

    <p class="pfloatRight">
        Back to <a href="#">Category Name</a>, <a href="#">Category Name</a>
    </p>
    

    You’ll notice I placed the “Back to” text outside the {categories} variable pair so it doesn’t get repeated and used the backspace parameter to remove the comma from the last category.

    The apparent downside is that if there’s more than one category assigned to an entry, it may be confusing for the user to remember which category they navigated from.

    I’d argue that most people are accustomed to using their browser’s Back button rather than any on-page links, so trying to determine the actual category they came from may provide little return on investment.

    However, even if these “Back to Category” links aren’t necessarily useful to users, they do provide SEO benefits for people who may land on a product page from a search result and want to see more items in the same category.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.