I use wpalchemy metaboxes for displaying portfolio. I have a custom post type for portfolio as posts.
I need to use it in a single post, where in the metaboxes are stored info about img urls and panoramic embed scripts, etc. So in the portfolio post when i view it i get all the needed info. no problems so far.
i get duplicate content from custom fields when I try to make a loop for cutom post type, where i try to display all posts(portfolio items) in list.
here is the code for the loop to display all the portfolio posts:
the result is that the
<img src="the_value(‘logourl’); ?>” />
puts the same image for all items in the loop.
for example: if i have looped 4 different portfolio posts displayed in a list and the newest has a “logourl” img, that img is showing for all 4 posts. but the other for has their own logourl metabox values, but these are not showing, because the first is showing for them all.
Sorry for my bad ENG.
and thakns in advance
You must be logged in to reply to this topic.