Getting shortcode to work when using get_post outside the normal loop
-
I am using get_post to pull content from pages to show on my front page template. I am using multiple instances of “if have posts, get posts” and calling an id number to a particular page. However, with this method none of the formating comes along. Also, things like short codes do not function either, everything just shows up as text.
Is there a way to make the content from get_post to show up corectly?
here is the test bench for the site:
https://hct.nathanbuchanan.com
Specifically I am trying to get some short code working in the “Core Values” section of the front page which is content I am pulling from the “Core Values” page found in the main menu
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Getting shortcode to work when using get_post outside the normal loop’ is closed to new replies.