Custom url is not working with drealty listing I am using Drealty module in Drupal 7. I have created custom url for properties.

I am getting path using;

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

This code is not working for me properly. For some properties it gives page not found but Property exists.
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.