Get Permalink, Title and Excerpt for Any Post Anywhere Outside the Loop in WordPress
To get a permalink and Post Title outside of the standard WordPress post loop, you have to use the get_permalink() function. This function takes a post ID as argument, and returns the permalink: ID); ?>” >Read the article If you want to get the Post Title and excerpt too, you can use WordPress get_post()…