Get current WordPress page then add #post ID to the end

Your answer should return: “ so from there you just do this:

$final_url = $URI.'#'.get_the_ID();

Which should echo http://mydomain.com/current/page#372 which is kinda good for linking. But if your looking for a “bookmarks” link it would be best practice to do this (inside the loop):

echo '<a href="'.the_permalink().'" title="'.the_title().'">'.the_title.'</a>';

Which will echo “Interesting Page” (note the title attribute gets stripped by the SE engine)

error code: 523