Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Call article by article id.
Is it possible to call an article by article id? For instance, linking to it using the ID as opposed to the full url?
Offline
Re: Call article by article id.
You can:
<txp:permlink id="123">some words</txp:permlink>
And if you need to “access” more info inside the article, you can:
<txp:article_custom id="123"><txp:permlink><txp:title /></txp:permlink></txp:article_custom>
Offline
Re: Call article by article id.
Thank you very much.
Offline
Re: Call article by article id.
Mike, another way of doing this is through Stef Dawson’s simple but splendid smd_short_url plugin – this has been getting a bit of attention recently as a responsible and sensible way of creating shortened Twitter-friendly links. This gives you urls in the format of site.com/id, where id is the article’s ID
Offline
Pages: 1