Add custom post above page content
-
Having a problem with a page template. What I’m trying to do is get the content from a custom field to output above the page content. In other words, this:
Page title
—
Custom field output
—
Page contentWhat it’s doing is outputting the three custom post type entries as described, but then when it’s time to do the regular page content, it outputs the three custom posts again, but this time formatted like the page content was supposed to be.
This is the code that I’m using to do this:
[code moderated - the forum limit for posting is 10 lines - for more, please use the pastebin]
What am I doing wrong? This should work...
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add custom post above page content’ is closed to new replies.