Why get_permalink($id) is not working?
-
Hi, I’ve found this unsolved thread and I have a similar problem:
I need to output the permalink ID to a variable and trying the get_permalink function
$permalinkid = get_permalink($post->ID);
Here returns the domain URL + the permalink ID and not only the permalink ID (?p=…)
Why?
thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Why get_permalink($id) is not working?’ is closed to new replies.