get_permalink($id) returns empty link???
-
Hi, I have the same issue as was described in this ancient post:
https://www.ads-software.com/support/topic/href-echo-get_permalink-does-not-work?replies=6I use get_permalink() with a page ID as an argument. Instead of getting link to that page, I’m always getting empty link.
I know that the page with that ID does exist, because I’m also printing out get_the_title($id) right on the same line, and it gives me the expected title.
Is this a known issue? And if so, is there a workaround that you can recommend?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_permalink($id) returns empty link???’ is closed to new replies.