What is the best way of retrieving a specific post in Wordpress?
- by Steven
I need to retrieve a specific post to display on my websites front page.
To avoid hard coding the post ID, I've added a custom property where I add the post ID.
The following code displays the wanted post:
(The code is within the LOOP)
// Get content from specific post (in this case, Åpningstider post))
$openingHoursID =…