ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Search by entry id

April 14, 2012 4:10am

Subscribe [1]
  • #1 / Apr 14, 2012 4:10am

    Suraj Timalsina

    32 posts

    Hi,
    I need to just pull the entry id via search form in the front end. I looked at simple and advanced search and found out that searching entries by their entry ID is not possible. So, how do I go about searching an entry by it’s entry ID?

    Thank you.

  • #2 / Apr 15, 2012 10:12pm

    Man With A Peg

    124 posts

    You want the user to be able to type “150” into the search box and to find entry #150?

    If I am reading this correctly, all you need to do is {exp:channel:entries entry_id="150"}{/exp:channel:entries}. With a more complicated version where you want to search by entry_id and keywords, you may want to look at the {if no_results} tag pair.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases