Custom url is not working with drealty listing
Using the url() function should give you what you need:

&lt;a href="&lt;?php print url("drealty_listing/$id"); ?&gt;"&gt;&lt;?php print t('More Detail'); ?&gt;&lt;/a&gt;

The url will be converted automatically to the alias.