I am attempting to setup the (single post) page with the title and content in the main content
<div>and have the custom fields, category, date etc.. display just to the right in the sidebar. I could manaully code this in, but it would disrupt the commentform as located before it are the
endif and endwhilecalls to end the loop.
Thus, is there a way in which I can resetup the postmeta(?) data for use in another location outside the loop in such a way that it could be setup to automatically retrieve the data per whichever post the user may be viewing?
Actually, wouldn’t it work to just store the category to a variable like
$temp_categoryand call that from a different location outside of the loop?
- The topic ‘Querying a post’s info in multiple locations within a page?’ is closed to new replies.