I have five portfolio meta fields set up in my theme. I wanted to know if there is any way of displaying a list of all portfolio items in a specific category and display a specific portfolio meta tag only for each entry.
For Example, the page i want to display would look something like this (where ‘Weight’ is the meta tag i want to display each time and ‘Apples’ is the category im using):
1. Cox Apple | Weight: 80g
2. Granny Smith Apple | Weight: 82g
3. Pink Lady Apple | Weight: 90g
Is there any way to do this? Can anyone point me in the right direction?
Yes, this can be done but requires some work on your end (depending on your php/wp coding skills you maybe need to hire a developer). You can eg create a new page template: http://codex.wordpress.org/Pages#Page_Templates and use the get_post_meta function: http://codex.wordpress.org/Function_Reference/get_post_meta in combination with the WP_Query: http://codex.wordpress.org/Class_Reference/WP_Query to create a custom loop which displays certain posts and the post meta values of these posts.
The topic ‘How to display a list of portfolio entries by a single Portfolio Meta Field’ is closed to new replies.