Sidebar pulling wrong custom field info
-
We have various page templates that pull in the content of the page, along with running a loop at the end that pulls in posts that are tagged or categorized in a particular way.
A sidebar is then pulled in displays the contact information (that is determined by a custom field). The problem is that we want that contact information to pull in a custom field from the page. Instead, since the loop is running to pull the 4 most recent posts – it will pull the contact information from the 4th post that is pulled in.
For example:
Page Content: About Mark Twain.
Related Posts: Pulls in stories that have contact information for John Steinbeck, Ayn Rand, F. Scott Fitzgerald and George Orwell.
Call Sidebar: It pulls in contact information for George Orwell. We want this to pull in contact information for the page (Mark Twain) not the last post to go through the loop.
- The topic ‘Sidebar pulling wrong custom field info’ is closed to new replies.