I call them with url_title vs. entry_id though- keeps the code more readable and is maybe just a shade easier to get working again should the client accidentally delete the entry.
As per Michael and a lot of other people on here I just go with using a weblog for holding ‘static’ types of data but I personally prefer to call them by using the entry_id instead. I find that a lot of the time clients like to change the url_title even though I tell them not to!! 😉
Using entry_id negates this problem as the entry_id will never change, that is of course unless they go and delete the entry itself!!
Therefore I usually use a global variable to hold the entry_id(s) and then if required (if a client does delete the entry - not happened yet thankfully 😉 ) I can just update that global variable and it is used within the entry_id=”{global_variable_here}” parameter and all works very quickly again.
I usually just put this method into place anyway just in case.
No one way is better than the other though. With what Michael has said this is definitely better if they delete the entry as all you have to do is re-create it with the same title again and it will work straight away although you may find yourself having to go through template code just to find out what it was called if you can’t remember it off the top of your head.
My way using entry_id is great as well as long as the client doesn’t delete the entry. Both have their merits as far as I can see. Up to the individual really.
Also using my method you can prevent against a client from deleting the entry in a few different ways. One of them being if they use a Stand-Alone Edit form. That way they can edit the entry to their hearts content but not actually delete it so a win-win situation there. 😊
Best wishes,
Mark